ask-ava-sync
restish dci ask-ava-sync
Send a question to Ava and receive a synchronous response. Returns the full answer as a single string once generation is complete.
Request
Content-Type: application/json
Schema
{
"type": "object",
"properties": {
"question": {
"type": "string",
"description": "The question to ask Ava."
}
},
"required": [
"question"
]
}
Responses
200 (application/json)
OK - Ava response returned.
{
"type": "string"
}
400 (application/json)
Bad Request - The server cannot process the request, often due to a malformed request.
{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}
401 (application/json)
Unauthorized - Invalid API key.
{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}