mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
parent
587be985a0
commit
a79b373342
7 changed files with 130 additions and 0 deletions
|
|
@ -134,6 +134,29 @@ Response:
|
|||
{"type": "response", "command": "abort", "success": true}
|
||||
```
|
||||
|
||||
#### clear_queue
|
||||
|
||||
Remove queued steering and follow-up messages and return their text.
|
||||
|
||||
```json
|
||||
{"type": "clear_queue"}
|
||||
```
|
||||
|
||||
Response:
|
||||
```json
|
||||
{
|
||||
"type": "response",
|
||||
"command": "clear_queue",
|
||||
"success": true,
|
||||
"data": {
|
||||
"steering": ["Change direction"],
|
||||
"followUp": ["Summarize when finished"]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
To implement interactive Esc behavior, send `clear_queue` before `abort`, then restore the returned text in the client editor. `abort` continues queued messages when they remain in the session.
|
||||
|
||||
#### new_session
|
||||
|
||||
Start a fresh session. Can be cancelled by a `session_before_switch` extension event handler.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue