Mercurial
comparison infinite_canvas/agent_service_stub.c @ 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 #include "infinite_canvas/agent_service.h" | |
| 2 | |
| 3 #include <stdio.h> | |
| 4 #include <string.h> | |
| 5 | |
| 6 boolean Canvas_Agent_Service_Init( | |
| 7 Canvas_Agent_Service *p_service, | |
| 8 Dowa_Arena *p_arena) | |
| 9 { | |
| 10 memset(p_service, 0, sizeof(*p_service)); | |
| 11 p_service->p_arena = p_arena; | |
| 12 p_service->status = CANVAS_AGENT_IDLE; | |
| 13 return TRUE; | |
| 14 } | |
| 15 | |
| 16 boolean Canvas_Agent_Service_Submit( | |
| 17 Canvas_Agent_Service *p_service, | |
| 18 const char *p_prompt, | |
| 19 const char *p_context) | |
| 20 { | |
| 21 (void)p_prompt; | |
| 22 (void)p_context; | |
| 23 snprintf( | |
| 24 p_service->error, | |
| 25 sizeof(p_service->error), | |
| 26 "Copilot SDK orchestration is not available on this platform yet"); | |
| 27 p_service->status = CANVAS_AGENT_ERROR; | |
| 28 return TRUE; | |
| 29 } | |
| 30 | |
| 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 { | |
| 38 (void)p_response; | |
| 39 (void)response_capacity; | |
| 40 Canvas_Agent_Status status = p_service->status; | |
| 41 if (status == CANVAS_AGENT_ERROR) { | |
| 42 snprintf(p_error, error_capacity, "%s", p_service->error); | |
| 43 p_service->status = CANVAS_AGENT_IDLE; | |
| 44 } | |
| 45 return status; | |
| 46 } | |
| 47 | |
| 48 void Canvas_Agent_Service_Shutdown(Canvas_Agent_Service *p_service) | |
| 49 { | |
| 50 (void)p_service; | |
| 51 } |