Routing Condition Protocol • Rust AI Agent SDK
RoutingConditionProtocol: Extended protocol for conditions that support routing to targets. This extends ConditionProtocol with the ability to return target tasks/steps based…
RoutingConditionProtocol
Defined in the conditions module.
Rust AI Agent SDK
Extended protocol for conditions that support routing to targets. This extends ConditionProtocol with the ability to return target tasks/steps based on the condition evaluation.
Methods
get_target
fn get_target(&self, context: &HashMap<String, serde_json::Value>) -> Vec<String>Get the target tasks/steps based on condition evaluation. # Arguments * context – Dictionary containing variables for evaluation. # Returns List of target task/step names to route to. Returns empty list if no match found.
Parameters:
| Name | Type |
|---|---|
context | &HashMap<String |
serde_json | :Value> |
Source
View on GitHubpraisonai/src/conditions/mod.rs at line 0