mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 08:03:39 +00:00
Fix sdk.md and rpc.md to match actual API
- Remove incorrect prompt(AppMessage) overload - Change AppMessage to AgentMessage - Change null to undefined for optional returns - sendHookMessage returns Promise<void> - Update rpc.md for entryId change
This commit is contained in:
parent
8fb936853b
commit
ee64d29487
2 changed files with 9 additions and 10 deletions
|
|
@ -491,7 +491,7 @@ If a hook cancelled the switch:
|
|||
Create a new branch from a previous user message. Can be cancelled by a `before_branch` hook. Returns the text of the message being branched from.
|
||||
|
||||
```json
|
||||
{"type": "branch", "entryIndex": 2}
|
||||
{"type": "branch", "entryId": "abc123"}
|
||||
```
|
||||
|
||||
Response:
|
||||
|
|
@ -530,8 +530,8 @@ Response:
|
|||
"success": true,
|
||||
"data": {
|
||||
"messages": [
|
||||
{"entryIndex": 0, "text": "First prompt..."},
|
||||
{"entryIndex": 2, "text": "Second prompt..."}
|
||||
{"entryId": "abc123", "text": "First prompt..."},
|
||||
{"entryId": "def456", "text": "Second prompt..."}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue