You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm new to LangGraph and am trying to implement a solution for the following use case:
In my workflow, I receive a query, and based on that query, multiple agents are triggered to fetch data from different knowledge bases. One issue I'm facing is that the execution of all these agents can take a significant amount of time. Currently, I have to wait for all agents to complete before I can return the results.
Is there a way to send the results of each agent as soon as it finishes execution, rather than waiting for all agents to complete? This would help reduce the overall time taken for all agents to run and allow the results to be rendered in the UI as they arrive.
If possible, an example code snippet showing how to implement this would be very helpful.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm new to LangGraph and am trying to implement a solution for the following use case:
In my workflow, I receive a query, and based on that query, multiple agents are triggered to fetch data from different knowledge bases. One issue I'm facing is that the execution of all these agents can take a significant amount of time. Currently, I have to wait for all agents to complete before I can return the results.
Is there a way to send the results of each agent as soon as it finishes execution, rather than waiting for all agents to complete? This would help reduce the overall time taken for all agents to run and allow the results to be rendered in the UI as they arrive.
If possible, an example code snippet showing how to implement this would be very helpful.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions