route
Choose exactly one next action from a predefined set, using the current state and optional instructions. Ideal when a decision is needed from a closed list, without executing the action.
Instructions
USE WHEN you need exactly one next action from a closed set of actions. DO NOT USE WHEN you need a topic/category label (use classify), an ordered rating (use score), or action execution. This suggests an action; it never executes it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| state | Yes | ||
| actions | Yes | ||
| instructions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| model | Yes | ||
| route | Yes | ||
| usage | Yes | ||
| answer | Yes | ||
| evaluation | Yes |