Skip to content

cycle

Send several prompts to agent in parallel and get the result of the calls as a json array

Arguments

Name Type Description
tool string A tool to execute.
args object The arguments to pass to the tool.
sleep number Sleep time between the cycle iterations in seconds. Default value is 1.
max_iterations number Max iterations to execute the cycle, to prevent the model from running indefinitely and burning all the credits. By default is 100. Use 0 for unlimited iterations.

Output

Type: unknown

The state of the last iteration.