arobi_classify_and_route
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 a named required capability, by measured quality under your explicit quality_exception policy, or by nothing. Also reports whether this work was already done. Set record=false to preview without writing to your ledger.
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 | ||
| record | No | Default true. false = answer without sealing. | |
| candidates | Yes | Routes with cost_per_1k_prompt_usd, cost_per_1k_completion_usd, capabilities, observed_success_rate, observed_sample_size. | |
| quality_exception | No | Optional. The only way a dearer route is chosen: its measured success must beat the cheapest capable route by min_success_uplift (0-1] with at least min_sample_size recorded runs on each side, optionally capped by max_premium_usd. | |
| required_capabilities | No |