view infinite_canvas/agent_response.h @ 282:6bd4a3990696 default tip

Add cross-platform canvas orchestration and typed composer Enable native ARM dependencies, macOS Copilot orchestration, portable service supervision, CPU dictation, and a shared N-key speak-or-type composer. Co-authored-by: Copilot <[email protected]> Copilot-Session: f68442b1-fa8f-46a0-9689-81710613bbd4
author MrJuneJune <me@mrjunejune.com>
date Thu, 20 Aug 2026 20:45:25 -0700
parents c57149ad216e
children
line wrap: on
line source

#ifndef INFINITE_CANVAS_AGENT_RESPONSE_H
#define INFINITE_CANVAS_AGENT_RESPONSE_H

#include "infinite_canvas/canvas.h"

#define CANVAS_AGENT_MAX_CREATED_ENTITIES 8

typedef struct {
    Canvas_Entity_Type type;
    char label[128];
    char text[CANVAS_ENTITY_TEXT_CAPACITY];
    Vector2 position;
    Vector2 size;
    int32 value;
    boolean has_position;
    boolean has_size;
    boolean has_value;
} Canvas_Agent_Entity_Spec;

typedef struct {
    char action[32];
    char presentation[32];
    uint32 conversation_id;
    char title[128];
    char response[CANVAS_ENTITY_TEXT_CAPACITY];
    Canvas_Agent_Entity_Spec entities[CANVAS_AGENT_MAX_CREATED_ENTITIES];
    uint32 entity_count;
} Canvas_Agent_Response;

boolean Canvas_Agent_Response_Parse(
    const char *p_json,
    Canvas_Agent_Response *p_response);

#endif