decisions

Create Systemone Decision

Changed on

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.

post/api/v1/systemone

Request

  • The document declares no server URL.
  • Auth: one of:
    • API key in header Otari-Key
    • API key in header x-api-key

Request body

imagesstring[] nullable

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.

modelstring required

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

questionsobject required

Questions, keyed by answer name

userstring nullable

User ID for usage attribution; not sent upstream

Example request

{
  "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."
}

Response

Successful Response

answersobject required
modelstring required

Changes