Skip to content

Switchyard lets LLM applications route traffic across models and providers while preserving native OpenAI and Anthropic API compatibility - enabling flexible model selection, benchmarking, and cost/performance optimization.

Rust
1.1 KB
Raw Blame
{
  "type": "json_schema",
  "json_schema": {
    "name": "EscalationVerdict",
    "strict": true,
    "schema": {
      "type": "object",
      "properties": {
        "escalate": {
          "type": "boolean",
          "description": "True when the run is likely doomed without escalation to the strong tier."
        },
        "category": {
          "type": "string",
          "enum": ["none", "repetition", "false_progress", "drift", "desperation", "capability_gap"],
          "description": "The single trouble pattern supporting escalation, or none when escalation is false."
        },
        "new_evidence": {
          "type": "boolean",
          "description": "True only when the newest assistant turn or its resulting tool output adds evidence for the named trouble pattern."
        },
        "reason": {
          "type": "string",
          "description": "One short sentence naming the trouble pattern, or stating why the run is progressing."
        }
      },
      "required": ["escalate", "category", "new_evidence", "reason"],
      "additionalProperties": false
    }
  }
}