llm_reroute
Override the last routing decision when the wrong model was chosen, and log the correction to improve future routing quality.
Instructions
Override the last routing decision and record it for feedback learning.
Logs the correction to the database so future routing decisions for this
task type have lowered confidence. Use this when llm_route, llm_query,
llm_code, or any other tool chose the wrong model for your task.
Args:
to_tool: Which tool to use instead (e.g. "llm_analyze", "llm_code").
reason: Optional explanation — stored for routing quality improvement.
original_tool: The tool that made the wrong decision (auto-detected if omitted).
original_model: The model that was selected (for logging purposes).Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_tool | Yes | ||
| reason | No | ||
| original_tool | No | ||
| original_model | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |