A little language.
A useful decision.
Pick an example. See what comes back.
Connect a key to make it your own.
Which team should handle this request?
Does the customer need action today?
How frustrated is the customer?
Their SDKs.
This mock’s URL.
Use the current official TypeSafe JavaScript or Python SDK unchanged. Set baseURL (JavaScript) or base_url (Python) to https://typesafe.severin-marcombes.com and pass your provider key as apiKey or api_key. Your systemOne / system_one calls stay the same.
npm install @typesafe-ai/sdkCode follows your selected playground example.
Cerebras is recommended. The examples use CEREBRAS_API_KEY; you can also supply an OpenAI or Anthropic key.
curl "https://typesafe.severin-marcombes.com/v1/systemone" \
-H "Authorization: Bearer $CEREBRAS_API_KEY" \
-H 'Content-Type: application/json' \
--data '{
"model": "jev-latest",
"state": "I was charged twice for my subscription. Please refund the extra payment — I need this sorted out today.",
"questions": {
"department": {
"type": "choice",
"instructions": "Which team should handle this request?",
"criteria": {
"billing": "Payments, invoices and refunds",
"technical": "Bugs, outages and integrations",
"sales": "Pricing and new purchases"
}
},
"urgent": {
"type": "noul",
"instructions": "Does the customer need action today?"
},
"frustration": {
"type": "score",
"instructions": "How frustrated is the customer?",
"criteria": [
"Calm",
"Frustrated",
"Very angry"
]
}
}
}'“Make yourself
at home.”
Lights, temperature, music. Just say what you want. Watch one request become a set of decisions—and a home that responds.
Step inside the smart home ↗Recreated from TypeSafe’s smart home demo.
Virtual devices. Mock API decisions.
Choice
Pick from possibilities.
Route to the right next step.
"choice": "billing"Noul
A yes-or-no question.
With room for uncertainty.
"noul": 0.94Score
Describe your scale.
Get a nuanced position on it.
"score": 1.08Models judge.
Your code decides.
Probability estimates and confidence come from your chosen model. This mock does not reproduce TypeSafe’s model, quality or calibration.