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:
Mario Zechner 2025-12-31 00:46:52 +01:00
parent a9479458ee
commit d36e0ea2ab
5 changed files with 84 additions and 915 deletions

View file

@ -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