How to batch sub-graph calls #2764
Replies: 1 comment
-
Send API seems to work fine. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am writing a multi-agent system, with the following agents (simplified version):
The sub-agent processes a file and an objective function, and returns a list of snippets.
The parent class has a list of files and a list of objective. It need to execute SubAgent on each of the file (with it's equivalent objective, based on index).
With
state.add_node("subagent", generate_sub_agent())
, I am able to fuse the 2 graphs into one. How do I process all the files in ParentAgentState.files in parallel?Is send an appropriate API to use here?
Beta Was this translation helpful? Give feedback.
All reactions