Skip to main content

loop_step

Function
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::FlowStep

Parameters

agent
Arc<crate::agent::Agent>
required
No description available.
items
Vec<String>
required
No description available.

Returns

Returns
crate::workflows::FlowStep
The result of the operation.

Source

View on GitHub

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