Skip to content
Most AI tasks no longer need a frontier model Read launch post

TypeSafe → SIE

SIE serves TypeSafe’s System One API at POST /v1/systemone. Code written with the TypeSafe SDK runs on SIE unchanged: noul, choice and score questions, text, object and conversation states, models.list() and the async client. You point the SDK at SIE and name an SIE decision model.

client = TypeSafeClient(model="jev-latest")
client = TypeSafeClient(
api_key="sk-sie-…",
base_url="https://api.superlinked.com",
model="fastino/GLiNER2.5-Decide",
)

The Python and TypeScript SDKs both read the three TYPESAFE_* variables, so code that builds its client from the environment needs no edit at all. The base URL is the API root: the SDK adds /v1/systemone itself.

from typesafe_sdk import Choice, Noul, Score, TypeSafeClient
TICKET = "I was charged twice for my March invoice. Please refund one of the charges today."
with TypeSafeClient(model="jev-latest") as client:
response = client.system_one(
state=TICKET,
questions={
"spam": Noul(instructions="Is this message unsolicited spam?"),
"intent": Choice(
instructions="What does the customer want?",
criteria={
"billing": "payments, invoices or refunds",
"technical": "something is broken",
"other": None,
},
),
"urgency": Score(
instructions="How urgent is this request?",
criteria=["can wait", "this week", "today"],
),
},
)
print(response.nouls["spam"].noul)
print(response.choices["intent"].choice)
print(response.scores["urgency"].score)

Only the client changes. The questions and the way you read the answers stay as they are.

from typesafe_sdk import Choice, Noul, Score, TypeSafeClient
TICKET = "I was charged twice for my March invoice. Please refund one of the charges today."
with TypeSafeClient(
api_key="sk-sie-…",
base_url="https://api.superlinked.com",
model="fastino/GLiNER2.5-Decide",
) as client:
response = client.system_one(
state=TICKET,
questions={
"spam": Noul(instructions="Is this message unsolicited spam?"),
"intent": Choice(
instructions="What does the customer want?",
criteria={
"billing": "payments, invoices or refunds",
"technical": "something is broken",
"other": None,
},
),
"urgency": Score(
instructions="How urgent is this request?",
criteria=["can wait", "this week", "today"],
),
},
)
print(response.nouls["spam"].noul)
print(response.choices["intent"].choice)
print(response.scores["urgency"].score)

Browse decision models for model sizes, measured accuracy and GPU results. The catalog is the model inventory; this guide describes the /v1/systemone request contract.

Use the catalog’s availability and deployment instructions to choose a model for SIE Serverless or your own server. Changing the model preserves the API shape, but changes its probabilities and resource requirements.

Each model has a fixed token window. That window includes the state and the question text processed in a row; models differ in how they group questions. The Perplexity, Qwen and Gemma decision profiles are qualified for rows up to 8,192 tokens. Oversized inputs fail without truncation. Check the model’s window before moving a workload from another provider.

  • Model names. SIE takes its own model ids and has no aliases such as jev-latest. Set the model on the client, in TYPESAFE_DEFAULT_MODEL, or per call with model=.
  • Score levels. A score question takes 1 to 10 levels.
  • Input that does not fit. SIE refuses a state or question set that does not fit the model’s window with 422, which the Python SDK raises as TypeSafeUnprocessableEntityError. It never truncates text. Use a model with a longer window for long states.
  • Other models. models.list() lists every model the server serves. A system_one call with a model that does not answer typed questions gets 422.
  • Loading. A model that is still loading answers 503 with a Retry-After header.

GLiNER2.5-Decide is a 340M-parameter encoder, so a CPU serves it:

docker run -p 8080:8080 ghcr.io/superlinked/sie-server:latest-cpu-transformers5
export TYPESAFE_BASE_URL=http://localhost:8080
export TYPESAFE_DEFAULT_MODEL=fastino/GLiNER2.5-Decide
export TYPESAFE_API_KEY=local # a local server checks no key

The first request downloads and loads the model. The systemone-local example in the SIE repository runs the TypeSafe SDK through every feature that reaches the server and reports each case.

Also calling OpenAI’s Decisions API? See OpenAI Decisions → SIE.

Talk to us

Tell us about your use case and we'll get back to you shortly.