repeat • Rust AI Agent SDK

repeat: Create a repeat workflow step Executes the agent a fixed number of times. # Arguments * `agent` – The agent to execute * `times` – Number of times to…

repeat

Function

</div>

This function is defined in the workflow_aliases module.

Create a repeat workflow step Executes the agent a fixed number of times. # Arguments agent – The agent to execute times – Number of times to repeat

Signature

python
def repeat(agent: Arc<crate::agent::Agent>, times: usize) -> crate::workflows::FlowStep

Parameters

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

No description available.

ParamField usize

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 82