feat: support interrupt protocol

This commit is contained in:
He Tao
2025-04-15 16:36:02 +08:00
parent 83a4b668b7
commit 92606fbd4c
4 changed files with 37 additions and 22 deletions

View File

@@ -49,26 +49,20 @@ curl --location 'http://localhost:8000/api/chat/stream' \
"messages": [
{
"role": "user",
"content": "what is mcp?"
"content": "make the last step be comprehensive"
}
],
"thread_id": "test_thread_2",
"auto_accepted_plan": false,
"feedback": "[EDIT PLAN] make the last step be comprehensive"
"interrupt_feedback": "edit_plan"
}
```
### Accepted the plan
### Accept the plan
```
{
"messages": [
{
"role": "user",
"content": "what is mcp?"
}
],
"thread_id": "test_thread_2",
"auto_accepted_plan": false,
"feedback": "[ACCEPTED]"
"interrupt_feedback": "accepted"
}
```