Decisions
Answer typed questions (noul, choice, score) about a state.
model is <provider>:<model>, where the provider is a decision_providers entry, for example typesafe:jev-latest or openrouter:typesafe/jev-1.13.
Authentication modes:
Master key: the
userfield is required and may name any existing user.API key: usage and spend bind to the key's own user; a
usernaming a different user is rejected with 403 unless mismatch rejection is off.
Enter your API key here (sent as Otari-Key header).
A decisions request: typed questions to answer about one state.
Images for a vision decision model, as data URLs (data:image/...;base64,...). An extension llama-server supports; a provider that does not refuses the request.
Decision provider and model, e.g. 'typesafe:jev-latest'
The content the questions are about
User ID for usage attribution; not sent upstream
Successful Response
The provider's answers, keyed like the request's questions.
Validation Error
POST /api/v1/decisions HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 200
{
"model": "typesafe:jev-latest",
"questions": {
"urgency": {
"instructions": "Does this message express urgency?",
"type": "noul"
}
},
"state": "The Stripe integration has failed for 3 days and I'm losing sales."
}{
"answers": {
"ANY_ADDITIONAL_PROPERTY": {
"choice": "text",
"confidence": 1,
"legend": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"noul": 1,
"probabilities": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"score": 1,
"type": "text",
"ANY_ADDITIONAL_PROPERTY": "anything"
}
},
"model": "text",
"usage": {
"cost": 1,
"input_tokens": 0,
"output_tokens": 0,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
}Answer typed questions at the path TypeSafe's SDK and llama-server use.
Identical to POST /api/v1/decisions; point the client's base URL at the gateway's /api.
Enter your API key here (sent as Otari-Key header).
A decisions request: typed questions to answer about one state.
Images for a vision decision model, as data URLs (data:image/...;base64,...). An extension llama-server supports; a provider that does not refuses the request.
Decision provider and model, e.g. 'typesafe:jev-latest'
The content the questions are about
User ID for usage attribution; not sent upstream
Successful Response
The provider's answers, keyed like the request's questions.
Validation Error
POST /api/v1/systemone HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 200
{
"model": "typesafe:jev-latest",
"questions": {
"urgency": {
"instructions": "Does this message express urgency?",
"type": "noul"
}
},
"state": "The Stripe integration has failed for 3 days and I'm losing sales."
}{
"answers": {
"ANY_ADDITIONAL_PROPERTY": {
"choice": "text",
"confidence": 1,
"legend": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"noul": 1,
"probabilities": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"score": 1,
"type": "text",
"ANY_ADDITIONAL_PROPERTY": "anything"
}
},
"model": "text",
"usage": {
"cost": 1,
"input_tokens": 0,
"output_tokens": 0,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
}Last updated
Was this helpful?
