Resolve which model one turn should use
Cost/complexity-aware cascade router: resolves which model the next turn should use given the agent’s config.model_routing policy plus optional turn signals — confidence, requires_tool_use, context_tokens, classifier_score (each one optional; absence simply never trips the escalation rule that reads it) escalate from the policy’s cheap default to its stronger model. Returns { model, tier, policy_enabled, escalated, triggered }, where tier is cheap | strong | primary — primary means routing is disabled and the decision is exactly the agent’s configured model, so unconfigured agents see no behaviour change. triggered lists which escalation rules fired, making the per-turn choice auditable. Internal service-to-service read (X-Internal-Token), mirroring GET /agents//model-chain.
Authorizations
Dashboard JWT token from Clerk
Headers
Sandbox opt-in for Clerk-session-authenticated requests. Set to true to route the call through the test-mode pipeline: no real provider delivery, no credits deducted, response meta.test_mode: true. Ignored for live API keys (dv_live_sk_*) — server-to-server clients must use a test-prefixed key (dv_test_sk_*) to exercise sandbox. Test-prefixed keys unconditionally enable sandbox regardless of this header.
true, false Path Parameters
Response
Successful response.