Find answers from the community

Updated 2 months ago

Workflow

At a glance

The community member asked how to handle parallel agent calls in AgentWorkflow, using the @step(num_workers=3) syntax. Another community member responded that there is no concept of parallel agent calls, as only one agent is active at a given time. However, they noted that tool calls, if asynchronous, and the agent predicting multiple outputs, can run in parallel.

The original poster then assumed they should still use workflow for parallelization, and the other community members agreed, suggesting it could be used as a superset and nested to achieve the desired parallelization.

question on AgentWorkflow -> how can i handle parallel agent calls ? like @step(num_workers=3)
L
l
5 comments
There isn't really a concept of parallel agent calls (one agent is active at a given time)

Tool calls, if async, and the agent predicts multiple, are always run in parallel though
Thx @Logan M appreciate it. So then I assume I should still use workflow for parallelization
probably as a superset
yea, you could definitely nest that way
awesome thx. Have a great day.
Add a reply
Sign up and join the conversation on Discord