{"slug": "typesafe-compatible-decision-models-beta-now-available-for-telnyx-inference", "title": "TypeSafe-Compatible Decision Models (Beta) Now Available for Telnyx Inference", "summary": "Telnyx released Decision Models (Beta), a TypeSafe-compatible inference endpoint at POST /v2/ai/typesafe/v1/systemone that evaluates shared context against up to 64 named questions and returns typed answers in a single request. The endpoint supports three answer types — choice (2 to 64 options), noul (yes/no), and score (ordered rubric) — and can combine all three in one call, with Telnyx noting scores are relative preferences across supplied choices rather than calibrated probabilities, so thresholds need tuning against real examples. TypeSafe System One API users can migrate requests in the supported subset by pointing their SDK at Telnyx with a Telnyx API key.", "body_md": "[Contact us](https://telnyx.com/contact-us)\n\n[Log in](https://portal.telnyx.com)\n\nVoice AI agents and production automations spend most of their decision-making on small structured calls: route this ticket, flag this incident, score this urgency. Telnyx Inference now offers [Decision Models (Beta)](https://developers.telnyx.com/docs/inference/decision-models), a TypeSafe-compatible endpoint that returns those decisions as typed answers in a single request.\n\n`POST /v2/ai/typesafe/v1/systemone` evaluates shared context against up to 64 named questions and returns typed answers. It supports a subset of the TypeSafe System One API request format and preserves its typed answer shapes.`choice` selects a category from 2 to 64 options, `noul` evaluates a yes/no condition, and `score` rates input on an ordered rubric. A single request can combine all three.`https://api.telnyx.com/v2/ai/typesafe` and existing `system_one()` calls in the supported subset keep the same method and answer accessors with a Telnyx API key.\nRouting, flagging, and scoring are the most common judgment calls in production software, and teams usually build them by hand: prompt, parse, retry, repeat. Decision Models (Beta) returns typed answers with relative scores and confidence in one structured response, so application logic reads a field instead of parsing free text; scores are relative preferences across the supplied choices, not calibrated probabilities, so review thresholds need tuning against real examples. TypeSafe compatibility means teams on the TypeSafe System One API can migrate requests in the supported subset by pointing the SDK at Telnyx. Agents and automations make many small decisions per run, and this is the API surface for them, tuned for cost and latency as beta continues.\n\n```\ncurl --fail-with-body --max-time 100 \\\n  'https://api.telnyx.com/v2/ai/typesafe/v1/systemone' \\\n  -H \"Authorization: Bearer $TELNYX_API_KEY\" \\\n  -H 'Content-Type: application/json' \\\n  --data '{\n    \"state\": \"Our production calls are failing. Every customer is affected.\",\n    \"questions\": {\n      \"team\": {\n        \"type\": \"choice\",\n        \"instructions\": \"Choose the team that should handle this incident.\",\n        \"criteria\": {\n          \"billing\": \"Payments and refunds\",\n          \"technical_support\": \"Service faults and technical problems\",\n          \"sales\": \"New purchases\"\n        }\n      },\n      \"production_incident\": {\n        \"type\": \"noul\",\n        \"instructions\": \"Does the message describe an active production incident?\"\n      },\n      \"urgency\": {\n        \"type\": \"score\",\n        \"instructions\": \"Rate operational urgency.\",\n        \"criteria\": [\"Low\", \"Normal\", \"High\", \"Critical\"]\n      }\n    }\n  }'\n```\n\nThe response returns `model`, `answers`, and `usage` at the top level. Abbreviated sample:\n\n```\n{\n  \"model\": \"telnyx-managed\",\n  \"answers\": {\n    \"team\": {\"type\": \"choice\", \"choice\": \"technical_support\", \"confidence\": 0.982},\n    \"production_incident\": {\"type\": \"noul\", \"noul\": 0.999},\n    \"urgency\": {\"type\": \"score\", \"score\": 2.997, \"legend\": {\"0\": \"Low\", \"1\": \"Normal\", \"2\": \"High\", \"3\": \"Critical\"}}\n  },\n  \"usage\": {\"input_tokens\": 267, \"output_tokens\": 4}\n}\n```\n\nValues vary per request. See the docs for the full response schema.\n\n**Learn more** in the [Decision Models (Beta) docs](https://developers.telnyx.com/docs/inference/decision-models) or the [API reference](https://developers.telnyx.com/api-reference/decision-models/evaluate-decision-models-typesafe-compatible).", "url": "https://wpnews.pro/news/typesafe-compatible-decision-models-beta-now-available-for-telnyx-inference", "canonical_source": "https://telnyx.com/release-notes/decision-models-beta", "published_at": "2026-09-22 00:00:00+00:00", "updated_at": "2026-10-06 19:47:36.517892+00:00", "lang": "en", "topics": ["ai-products", "ai-tools", "large-language-models", "ai-agents", "developer-tools"], "entities": ["Telnyx", "Telnyx Inference", "Decision Models (Beta)", "TypeSafe", "TypeSafe System One API"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/typesafe-compatible-decision-models-beta-now-available-for-telnyx-inference", "markdown": "https://wpnews.pro/news/typesafe-compatible-decision-models-beta-now-available-for-telnyx-inference.md", "text": "https://wpnews.pro/news/typesafe-compatible-decision-models-beta-now-available-for-telnyx-inference.txt", "jsonld": "https://wpnews.pro/news/typesafe-compatible-decision-models-beta-now-available-for-telnyx-inference.jsonld"}}