laya_route
Determine task difficulty and required model tier, tools, or human review before executing scheduled jobs or expensive agent turns, providing an act or escalate signal to balance cost and quality.
Instructions
Cheap-vs-specialist routing for a task description: difficulty, which model tier fits, whether tools or human review are needed, plus an act/escalate signal. Use before firing a scheduled job or an expensive agent turn to decide the cost/quality tradeoff.
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": {
"task": "<task>"
},
"name": "laya_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| timeout_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |