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

python
def loop_step(
    agent: Arc<crate::agent::Agent>,
    items: Vec<String>,
) -> crate::workflows::FlowStep

Parameters

ParamField Arc&lt;crate::agent::Agent&gt;

No description available.

ParamField Vec&lt;String&gt;

No description available.

Returns

ResponseField crate::workflows::FlowStep

The result of the operation.

Source

View on GitHub

praisonai/src/parity/workflow_aliases.rs at line 44


Related Documentation