feat: add conversation storage (#140)

This commit is contained in:
2026-06-16 20:16:03 +01:00
committed by GitHub
parent 95f6c99f19
commit e11051b04b
23 changed files with 3457 additions and 396 deletions

View File

@@ -35,6 +35,7 @@ interface AgentDebugHttpHandlersDeps {
const AgentAskRequestBody = type({
"+": "reject",
message: "string",
"conversationId?": "string",
})
export function registerAgentHttpHandlers(
@@ -82,6 +83,7 @@ async function handleAgentAsk(c: Context<Env>) {
const session = await sessionManager.getOrCreate(user.id)
const response = await collectQueryAgentResponse(session.agent, {
message: parsed.message,
conversationId: parsed.conversationId,
})
return c.json(response)
} catch (err) {