Merge · Schema
RoutingMetadata
Metadata about how the request was routed.
IntegrationsPlatformUnified APIAgent HandlerLLM Gateway
Properties
| Name | Type | Description |
|---|---|---|
| policy_id | stringnull | |
| policy_name | stringnull | |
| strategy | stringnull | |
| intelligent_routing_used | boolean | |
| complexity_score | numbernull | ML-computed prompt complexity score (0-1) |
| adjusted_score | numbernull | Strategy-adjusted complexity score |
| selected_tier | integernull | |
| total_tiers | integernull | |
| routing_reason | stringnull | Human-readable explanation of the routing decision |
| model_requested | stringnull | |
| model_used | stringnull | The actual model selected by routing |
| cost_usd | numbernull | Estimated cost in USD computed from token usage and pricing data |
| latency | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/RoutingMetadata",
"title": "RoutingMetadata",
"type": "object",
"properties": {
"policy_id": {
"type": [
"string",
"null"
]
},
"policy_name": {
"type": [
"string",
"null"
]
},
"strategy": {
"type": [
"string",
"null"
]
},
"intelligent_routing_used": {
"type": "boolean",
"default": false
},
"complexity_score": {
"type": [
"number",
"null"
],
"format": "double",
"description": "ML-computed prompt complexity score (0-1)"
},
"adjusted_score": {
"type": [
"number",
"null"
],
"format": "double",
"description": "Strategy-adjusted complexity score"
},
"selected_tier": {
"type": [
"integer",
"null"
]
},
"total_tiers": {
"type": [
"integer",
"null"
]
},
"routing_reason": {
"type": [
"string",
"null"
],
"description": "Human-readable explanation of the routing decision"
},
"model_requested": {
"type": [
"string",
"null"
]
},
"model_used": {
"type": [
"string",
"null"
],
"description": "The actual model selected by routing"
},
"cost_usd": {
"type": [
"number",
"null"
],
"format": "double",
"description": "Estimated cost in USD computed from token usage and pricing data"
},
"latency": {
"oneOf": [
{
"$ref": "#/components/schemas/RoutingLatency"
},
{
"type": "null"
}
]
}
},
"description": "Metadata about how the request was routed."
}