More API doc hacking

This commit is contained in:
Cyber MacGeddon 2024-12-28 15:18:05 +00:00
parent 4b699159fe
commit 2e6356d2b8
2 changed files with 79 additions and 19 deletions

View file

@ -69,3 +69,63 @@ e.g.
}
```
For a multi-part response, a number of responses are provided with the
same ID until the final message which has the `complete` field set to
true.
e.g.
Request:
```
{
"id": "blrqotfefnmnh7de-20",
"service": "agent",
"request": {
"question": "What does NASA stand for?"
}
}
```
Responses:
```
{
"id": "blrqotfefnmnh7de-20",
"response": {
"thought": "I need to query a knowledge base"
},
"complete": false
}
```
```
{
"id": "blrqotfefnmnh7de-20",
"response": {
"observation": "Based on the provided text, NASA stands for National Aeronautics and Space Administration."
},
"complete": false
}
```
```
{
"id": "blrqotfefnmnh7de-20",
"response": {
"thought": "I now know the final answer"
},
"complete": false
}
```
```
{
"id": "blrqotfefnmnh7de-20",
"response": {
"answer": "National Aeronautics and Space Administration"
},
"complete": true
}
```