Documentation Index
Fetch the complete documentation index at: https://tech.illasoft.com/llms.txt
Use this file to discover all available pages before exploring further.
Kira 没有独立的
DELETE /agent/message 端点。删除一条 AI 消息及其之后全部内容通过 POST /agent/streaming 的 anchorMessageId 参数级联执行。机制
调用POST /agent/streaming 时携带 anchorMessageId:
src/hono/agent/index.ts:276-341):
- 查
anchorMessageId.created_at DELETE FROM messages WHERE thread_id = ? AND created_at > anchor.created_atDELETE FROM thread_version WHERE thread_id = ? AND created_at > anchor.created_at- 从被删除的 version 中
extractVideoTaskIds/extractMusicTaskIds purgeVideoTasks/purgeMusicTasks发video|music/task.cancelledInngest event- Redis
SET cancel:{taskId} 1 EX 3600 deleteStorageFiles(userId, affectedFileIds)清理 Storage(非阻塞)
/agent/streaming SSE 流,以 anchor 为新分支起点。
取消正在运行的任务
被删除 version 里的pending / processing 任务:
- Inngest cleanup function 退款 + 通知
failed / cancelled - Worker 每个 step 开头检查 Redis cancel key,命中即
throw NonRetriableError