mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 09:01:17 +00:00
* Add lefthook formatter checks * Fix SDK mode hydration * Stabilize SDK mode integration test
117 lines
2.3 KiB
JSON
117 lines
2.3 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"$id": "https://sandbox-agent/schemas/pi.json",
|
|
"title": "Pi RPC Schema",
|
|
"definitions": {
|
|
"RpcEvent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"sessionId": {
|
|
"type": "string"
|
|
},
|
|
"messageId": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/RpcMessage"
|
|
},
|
|
"assistantMessageEvent": {
|
|
"$ref": "#/definitions/AssistantMessageEvent"
|
|
},
|
|
"toolCallId": {
|
|
"type": "string"
|
|
},
|
|
"toolName": {
|
|
"type": "string"
|
|
},
|
|
"args": {},
|
|
"partialResult": {},
|
|
"result": {
|
|
"$ref": "#/definitions/ToolResult"
|
|
},
|
|
"isError": {
|
|
"type": "boolean"
|
|
},
|
|
"error": {}
|
|
},
|
|
"required": ["type"]
|
|
},
|
|
"RpcMessage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"role": {
|
|
"type": "string"
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"AssistantMessageEvent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"delta": {
|
|
"type": "string"
|
|
},
|
|
"content": {},
|
|
"partial": {},
|
|
"messageId": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"ToolResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"RpcResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "response"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"success": {
|
|
"type": "boolean"
|
|
},
|
|
"data": {},
|
|
"error": {}
|
|
},
|
|
"required": ["type"]
|
|
},
|
|
"RpcCommand": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "command"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"command": {
|
|
"type": "string"
|
|
},
|
|
"params": {}
|
|
},
|
|
"required": ["type", "command"]
|
|
}
|
|
}
|
|
}
|