DictCondition
Defined in the conditions module.Rust AI Agent SDK Dictionary-based condition for routing. Maps values to target tasks/steps.
Fields
| Name | Type | Description |
|---|---|---|
variable | String | Variable name to check |
routes | HashMap<String | Mapping of values to target tasks |
default | Vec<String> | Default targets if no match |
Methods
new
| Name | Type |
|---|---|
variable | impl Into<String> |
when
| Name | Type |
|---|---|
value | impl Into<String> |
targets | Vec<String> |
default_targets
| Name | Type |
|---|---|
targets | Vec<String> |
Source
View on GitHub
praisonai/src/conditions/mod.rs at line 191
