Mercurial
comparison infinite_canvas/agent_service.h @ 280:49e9e591c9bb
Add persistent dictation, prewarmed WebRTC speech input, Copilot SDK routing, animated conversation lifecycle controls, parking, and architecture coverage.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Tue, 18 Aug 2026 19:14:53 -0700 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 279:b3b547563ec7 | 280:49e9e591c9bb |
|---|---|
| 1 #ifndef INFINITE_CANVAS_AGENT_SERVICE_H | |
| 2 #define INFINITE_CANVAS_AGENT_SERVICE_H | |
| 3 | |
| 4 #include "dowa/dowa.h" | |
| 5 #include "infinite_canvas/canvas.h" | |
| 6 | |
| 7 #define CANVAS_AGENT_RESPONSE_CAPACITY 16384 | |
| 8 | |
| 9 typedef enum { | |
| 10 CANVAS_AGENT_IDLE = 0, | |
| 11 CANVAS_AGENT_WORKING, | |
| 12 CANVAS_AGENT_READY, | |
| 13 CANVAS_AGENT_ERROR, | |
| 14 } Canvas_Agent_Status; | |
| 15 | |
| 16 typedef struct { | |
| 17 Dowa_Arena *p_arena; | |
| 18 void *p_native; | |
| 19 Canvas_Agent_Status status; | |
| 20 char response[CANVAS_AGENT_RESPONSE_CAPACITY]; | |
| 21 char error[512]; | |
| 22 } Canvas_Agent_Service; | |
| 23 | |
| 24 boolean Canvas_Agent_Service_Init( | |
| 25 Canvas_Agent_Service *p_service, | |
| 26 Dowa_Arena *p_arena); | |
| 27 boolean Canvas_Agent_Service_Submit( | |
| 28 Canvas_Agent_Service *p_service, | |
| 29 const char *p_prompt, | |
| 30 const char *p_context); | |
| 31 Canvas_Agent_Status Canvas_Agent_Service_Poll( | |
| 32 Canvas_Agent_Service *p_service, | |
| 33 char *p_response, | |
| 34 size_t response_capacity, | |
| 35 char *p_error, | |
| 36 size_t error_capacity); | |
| 37 void Canvas_Agent_Service_Shutdown(Canvas_Agent_Service *p_service); | |
| 38 | |
| 39 #endif |