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

Decisions

Decisions answer typed questions about application state, returning structured values and probabilities instead of free-form text. Use them for classification, routing, and scoring.

To explore available models, visit cortecs.ai and filter by the Decision tag.

Choose a request format

Decisions format
System One format

Endpoint used

/v1/decisions

/v1/systemone

Input field

input

state

Questions

Array, with a name for each question in these examples

Object keyed by question ID

Question types

predicate, choice, score

noul, choice, score

Response answers

Array

Object keyed by question ID

Yes/no result

probability

noul

/v1/decisions also accepts System One requests (state and a questions object). The response follows the request format. /v1/systemone accepts only the System One format.

Choose the format your application uses. Cortecs handles the selected provider's upstream route and format. Limits depend on the selected provider.

Decisions example

import requests

payload = {
    "model": "<MODEL_NAME>",
    "input": "The cold-storage room is at 9 degrees Celsius. The maximum allowed temperature is 5 degrees Celsius.",
    "questions": [
        {
            "type": "predicate",
            "name": "inspect",
            "instructions": "Does the cold-storage room need inspection?"
        }
    ]
}

response = requests.post(
    "https://api.cortecs.ai/v1/decisions",
    headers={"Authorization": "Bearer <API_KEY>"},
    json=payload,
)
response.raise_for_status()
print(response.json())

Example answers field (values vary by model and input):

System One example

Example answers field (values vary by model and input):

Last updated