route_query
Determines the optimal model and reasoning approach for an AgentForce question by evaluating dependency graph depth, from simple direct lookup to complex structured reasoning.
Instructions
Route an AgentForce question to the optimal model and reasoning approach via graph depth.
The CKG graph IS the router. AgentForce dependency chains (e.g. Einstein Trust Layer → Data Cloud → NVIDIA NIM → Resolution Criteria) have typed hops that signal reasoning complexity deterministically. No heuristic: the graph decides.
Routing table: hop_depth 1 → haiku · direct (simple concept lookup) hop_depth 2 → sonnet · generic_cot (moderate chain) hop_depth 3+ → opus · sparql_cot (deep dependency, structured reasoning)
Args: question: Concept name or natural language question about Salesforce AgentForce.
Returns: model_tier + reasoning_approach + why + context subgraph to inject before LLM call.
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": {
"question": "<question>"
},
"name": "route_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| question | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |