Loop Step • Rust AI Agent SDK
loop_step: Create a loop workflow step Creates a loop step with an agent and items to iterate over. # Arguments * `agent` – The agent to execute for each item *…
loop_step
Function
</div>
This function is defined in the workflow_aliases module.
Create a loop workflow step Creates a loop step with an agent and items to iterate over. # Arguments agent – The agent to execute for each item items – Items to iterate over
Signature
def loop_step(
agent: Arc<crate::agent::Agent>,
items: Vec<String>,
) -> crate::workflows::FlowStepParameters
ParamField
Arc<crate::agent::Agent>No description available.
ParamField
Vec<String>No description available.
Returns
ResponseField
crate::workflows::FlowStepThe result of the operation.
Source
View on GitHubpraisonai/src/parity/workflow_aliases.rs at line 44