mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 08:03:39 +00:00
Update SDK and RPC docs, remove outdated files
- Remove hooks-v2.md, session-tree.md, UNRELEASED_OLD.md - sdk.md: Update hook API (sendMessage, appendEntry, registerCommand, etc.) - sdk.md: Update SessionManager with tree API - sdk.md: Update AgentSession interface - rpc.md: Fix attachments -> images in prompt command
This commit is contained in:
parent
a9479458ee
commit
d36e0ea2ab
5 changed files with 84 additions and 915 deletions
|
|
@ -36,9 +36,9 @@ Send a user prompt to the agent. Returns immediately; events stream asynchronous
|
|||
{"id": "req-1", "type": "prompt", "message": "Hello, world!"}
|
||||
```
|
||||
|
||||
With attachments:
|
||||
With images:
|
||||
```json
|
||||
{"type": "prompt", "message": "What's in this image?", "attachments": [...]}
|
||||
{"type": "prompt", "message": "What's in this image?", "images": [{"type": "image", "source": {"type": "base64", "mediaType": "image/png", "data": "..."}}]}
|
||||
```
|
||||
|
||||
Response:
|
||||
|
|
@ -46,7 +46,7 @@ Response:
|
|||
{"id": "req-1", "type": "response", "command": "prompt", "success": true}
|
||||
```
|
||||
|
||||
The `attachments` field is optional. See [Attachments](#attachments) for the schema.
|
||||
The `images` field is optional. Each image uses `ImageContent` format with base64 or URL source.
|
||||
|
||||
#### queue_message
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue