systemprompt-models 0.1.22

Shared data models and types for systemprompt.io OS
Documentation
pub mod agui {
    pub const RUN_STARTED: &str = "RUN_STARTED";
    pub const RUN_FINISHED: &str = "RUN_FINISHED";
    pub const RUN_ERROR: &str = "RUN_ERROR";
    pub const STEP_STARTED: &str = "STEP_STARTED";
    pub const STEP_FINISHED: &str = "STEP_FINISHED";
    pub const TEXT_MESSAGE_START: &str = "TEXT_MESSAGE_START";
    pub const TEXT_MESSAGE_CONTENT: &str = "TEXT_MESSAGE_CONTENT";
    pub const TEXT_MESSAGE_END: &str = "TEXT_MESSAGE_END";
    pub const TOOL_CALL_START: &str = "TOOL_CALL_START";
    pub const TOOL_CALL_ARGS: &str = "TOOL_CALL_ARGS";
    pub const TOOL_CALL_END: &str = "TOOL_CALL_END";
    pub const TOOL_CALL_RESULT: &str = "TOOL_CALL_RESULT";
    pub const STATE_SNAPSHOT: &str = "STATE_SNAPSHOT";
    pub const STATE_DELTA: &str = "STATE_DELTA";
    pub const MESSAGES_SNAPSHOT: &str = "MESSAGES_SNAPSHOT";
    pub const CUSTOM: &str = "CUSTOM";
}

pub mod a2a {
    pub const TASK_SUBMITTED: &str = "TASK_SUBMITTED";
    pub const TASK_STATUS_UPDATE: &str = "TASK_STATUS_UPDATE";
    pub const ARTIFACT_CREATED: &str = "ARTIFACT_CREATED";
    pub const ARTIFACT_UPDATED: &str = "ARTIFACT_UPDATED";
    pub const AGENT_MESSAGE: &str = "AGENT_MESSAGE";
    pub const INPUT_REQUIRED: &str = "INPUT_REQUIRED";
    pub const AUTH_REQUIRED: &str = "AUTH_REQUIRED";
    pub const JSON_RPC_RESPONSE: &str = "JSON_RPC_RESPONSE";
    pub const JSON_RPC_ERROR: &str = "JSON_RPC_ERROR";
}

pub mod system {
    pub const CONTEXT_CREATED: &str = "CONTEXT_CREATED";
    pub const CONTEXT_UPDATED: &str = "CONTEXT_UPDATED";
    pub const CONTEXT_DELETED: &str = "CONTEXT_DELETED";
    pub const CONTEXTS_SNAPSHOT: &str = "CONTEXTS_SNAPSHOT";
    pub const CONNECTED: &str = "CONNECTED";
    pub const HEARTBEAT: &str = "HEARTBEAT";
}

pub mod jsonrpc {
    pub const MESSAGE_SEND: &str = "SendMessage";
    pub const MESSAGE_STREAM: &str = "SendStreamingMessage";
    pub const TASKS_GET: &str = "GetTask";
    pub const TASKS_CANCEL: &str = "CancelTask";
    pub const TASKS_RESUBSCRIBE: &str = "SubscribeToTask";
    pub const AGENT_GET_CARD: &str = "GetExtendedAgentCard";
    pub const PUSH_CONFIG_SET: &str = "CreateTaskPushNotificationConfig";
    pub const PUSH_CONFIG_GET: &str = "GetTaskPushNotificationConfig";
    pub const PUSH_CONFIG_LIST: &str = "ListTaskPushNotificationConfigs";
    pub const PUSH_CONFIG_DELETE: &str = "DeleteTaskPushNotificationConfig";
}

pub mod protocol {
    pub const AGUI: &str = "agui";
    pub const A2A: &str = "a2a";
    pub const SYSTEM: &str = "system";
}