For the complete documentation index, see llms.txt. This page is also available as Markdown.

Decisions

Create Decision

post

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 user field is required and may name any existing user.

  • API key: usage and spend bind to the key's own user; a user naming a different user is rejected with 403 unless mismatch rejection is off.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Body

A decisions request: typed questions to answer about one state.

imagesstring[] · max: 16 · nullableOptional

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.

modelstringRequired

Decision provider and model, e.g. 'typesafe:jev-latest'

stateany ofRequired

The content the questions are about

stringOptional
or
or
userstring · nullableOptional

User ID for usage attribution; not sent upstream

Responses
200

Successful Response

application/json

The provider's answers, keyed like the request's questions.

modelstringRequired
Other propertiesanyOptional
post/api/v1/decisions
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"
}

Create Systemone Decision

post

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Body

A decisions request: typed questions to answer about one state.

imagesstring[] · max: 16 · nullableOptional

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.

modelstringRequired

Decision provider and model, e.g. 'typesafe:jev-latest'

stateany ofRequired

The content the questions are about

stringOptional
or
or
userstring · nullableOptional

User ID for usage attribution; not sent upstream

Responses
200

Successful Response

application/json

The provider's answers, keyed like the request's questions.

modelstringRequired
Other propertiesanyOptional
post/api/v1/systemone
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?