Route
Defined in the Workflows module.Rust AI Agent SDK Route pattern - conditional branching
Fields
| Name | Type | Description |
|---|---|---|
condition | Box<dyn Fn(&str) -> bool + Send + Sync> | Condition function |
if_true | Arc<Agent> | Agent to use if condition is true |
if_false | Option<Arc<Agent>> | Agent to use if condition is false |

