feat: add agent response scheduler

This commit is contained in:
2026-07-01 23:50:38 +01:00
parent 952f8e4fb0
commit af4df2cd2c
33 changed files with 1690 additions and 505 deletions

View File

@@ -1,8 +1,3 @@
export interface SendMessageResult {
message: string
conversationId: string
}
export type AgentEvent =
| { type: "conversation_started"; conversationId: string }
| { type: "message_created"; text: string }
@@ -11,8 +6,11 @@ export type AgentEvent =
| { type: "message_finished" }
| { type: "message_failed"; error: string }
export type UserEvent = { type: "typing" }
export interface AgentServerApi {
sendMessage(message: string): Promise<SendMessageResult>
sendMessage(message: string): Promise<boolean>
notify(event: UserEvent): void
ping(): "pong"
}