arobi_classify_and_route
Classify a prompt and select the lowest-cost model route that meets required capabilities, flagging any premium justified by quality_exception policy before execution.
Instructions
Classify a prompt and choose the cheapest route capable of the work from your candidate set, reporting whether any cost above the cheapest capable route is justified by required_capabilities or an explicit quality_exception policy. Set record=false to preview without appending to the local chain.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>",
"candidates": "<candidates>"
},
"name": "arobi_classify_and_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Prompt text to classify and route. | |
| record | No | Default true. Set false to evaluate without sealing a chain record. | |
| candidates | Yes | Candidate models with id/model, cost_per_1k_prompt_usd, cost_per_1k_completion_usd, capabilities, observed_success_rate, and observed_sample_size. | |
| quality_exception | No | Optional policy allowing a higher-cost route only when its observed success rate beats the cheapest capable route by min_success_uplift with at least min_sample_size samples on each side. | |
| required_capabilities | No | Capabilities a candidate must advertise to be considered capable. |