Get Target • AI Agent SDK
get_target: Get the target tasks/steps based on condition evaluation.
get_target
Method
</div>
This is a method of the RoutingConditionProtocol class in the protocols module.
Get the target tasks/steps based on condition evaluation.
Signature
def get_target(context: Dict[str, Any]) -> List[str]Parameters
ParamField
Dict[str, Any]Dictionary containing variables for evaluation.
Returns
ResponseField
List[str]List of target task/step names to route to. Returns empty list if no match found.
Source
View on GitHubpraisonaiagents/conditions/protocols.py at line 81