comparison infinite_canvas/agent_response.h @ 281:c57149ad216e default tip

Copilot-Session: f68442b1-fa8f-46a0-9689-81710613bbd4
author MrJuneJune <me@mrjunejune.com>
date Tue, 18 Aug 2026 22:18:15 -0700
parents
children
comparison
equal deleted inserted replaced
280:49e9e591c9bb 281:c57149ad216e
1 #ifndef INFINITE_CANVAS_AGENT_RESPONSE_H
2 #define INFINITE_CANVAS_AGENT_RESPONSE_H
3
4 #include "infinite_canvas/canvas.h"
5
6 #define CANVAS_AGENT_MAX_CREATED_ENTITIES 8
7
8 typedef struct {
9 Canvas_Entity_Type type;
10 char label[128];
11 char text[CANVAS_ENTITY_TEXT_CAPACITY];
12 Vector2 position;
13 Vector2 size;
14 int32 value;
15 boolean has_position;
16 boolean has_size;
17 boolean has_value;
18 } Canvas_Agent_Entity_Spec;
19
20 typedef struct {
21 char action[32];
22 char presentation[32];
23 uint32 conversation_id;
24 char title[128];
25 char response[CANVAS_ENTITY_TEXT_CAPACITY];
26 Canvas_Agent_Entity_Spec entities[CANVAS_AGENT_MAX_CREATED_ENTITIES];
27 uint32 entity_count;
28 } Canvas_Agent_Response;
29
30 boolean Canvas_Agent_Response_Parse(
31 const char *p_json,
32 Canvas_Agent_Response *p_response);
33
34 #endif