Route a chat completion
route_chatSend a chat completion through Conduit Router: policy-checked, budget-checked, metered, and audit-receipted. Uses your own stored provider keys (BYOK). Pin a model as "provider:model" or let your standing terms choose.
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": {
"messages": "<messages>"
},
"name": "route_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Optional pin: "provider:model" (e.g. "groq:llama-3.3-70b-versatile"), "custom:<endpoint_id>:<model>", or a bare catalog model id. | |
| messages | Yes | OpenAI-shaped messages: [{role, content}] with role system|user|assistant|tool. | |
| max_tokens | No | Optional cap on the completion's output tokens. | |
| task_profile | No | Optional routing profile: reasoning (deepest models), tool-use, or bulk (cheapest/fastest). Defaults to your standing terms. |