langgraph/tutorials/multi_agent/hierarchical_agent_teams/ #521
Replies: 19 comments 18 replies
-
The 2nd test to "Write an outline for poem and then write the poem to disk." didn't seem to work with gpt-4o when I initially tried it. I retried using gpt-4 which seemed to work fine. I re-ran the test again using gpt-4o so that I could capture the stack trace and it actually worked the 2nd time around! I'm not 100% certain but I vaguely remember the error complaining about the function call format on the first run. Anyone else testing with gpt-4o may need to re-run a few times to get it to work correctly. Also, the last test to "Write a brief research report on the North American sturgeon. Include a chart." triggered rate limit errors when running with gpt-4o:
I'm too lazy to add code to correctly handle rate limits... I wasn't ever able to get the 3rd and final test to complete. gpt-4-1106-preview, gpt-4, and gpt-3.5-turbo all caused the same error on multiple runs: One time when running the last test with gpt-4-1106-preview I got the following error: I even went back and updated all of the teams to use gpt-4-1106-preview but the 3rd and final test never actually worked. I get the gist of things here and I understand that I may need to tweak things a bit with prompting but should I be concerned about reliability? So far while running the tutorials in the "Multi-Agent Systems" section things seem pretty brittle and very sensitive/dependent on specific model versions. Are there tricks to getting around this or do I just need to continue working through the other tutorials and learn other design patterns to account for these issues? |
Beta Was this translation helpful? Give feedback.
-
@gregorybarnes could you have a look at #608 and let me know if it fixes your problem? |
Beta Was this translation helpful? Give feedback.
-
great article. i created simple supervision agent system for arithmetic operation, just to get idea around. lets say, i have agent "addition", it has its tool to do the job. That tool requires two arguments to run the addition, seems like supervisor and agent stuck in loop during multi-turn conversation
any suggestion ? |
Beta Was this translation helpful? Give feedback.
-
In create_agent system_prompt will only include the first line:
should be :
|
Beta Was this translation helpful? Give feedback.
-
Why do we need to convert the messages to HumanMessage? Can it be just a BaseMessage? |
Beta Was this translation helpful? Give feedback.
-
What is the logic behind joining graph? Why does |
Beta Was this translation helpful? Give feedback.
-
i cannot see the text file it created |
Beta Was this translation helpful? Give feedback.
-
Hi, I am particularly interested in:
Any guidance or examples on this would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
-
When I use When I use OutputParserException: Could not parse function call: 'function_call'``` Do you know how to deal with this? |
Beta Was this translation helpful? Give feedback.
-
I got it working but have some questions on why it's working. Specifically, why the supervisor seems stuck in a loop and keeps picking the outline team over and over. It's almost like it cannot see the entire message queue or does not know when to "finish" It feels like it would be better to have it see the entire message queue and let each helper go once. It just loops. Am I missing something? |
Beta Was this translation helpful? Give feedback.
-
Hi guys , I'm trying to add memory to this hierarchical agent system but no success so far . Any idea on how to add memory to hierarchical agent system or multi-agent systems in general ? |
Beta Was this translation helpful? Give feedback.
-
Come someone explain the following snippet please? Is there any documentation for how this works?
|
Beta Was this translation helpful? Give feedback.
-
Just in case someone encounters a same error. The reason is in Graph.add_conditional_edges(self, source, path, path_map, then) it requests for name of the RunnableCallable |
Beta Was this translation helpful? Give feedback.
-
why? anyone help me Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): Process finished with exit code 1 |
Beta Was this translation helpful? Give feedback.
-
I'm currently in the process of hierarchical_agent_teams, which have been successfully completed. However, the llm was found to summarize and optimize the responses returned by the tool. Now I expect the result to be the output returned by the tool without any modifications. Are there any parameters that need to be configured? |
Beta Was this translation helpful? Give feedback.
-
After running this I keep getting
rather than what the expected output is. Does anyone know what's up with that? |
Beta Was this translation helpful? Give feedback.
-
Thank you, LangChain/LangGraph team, for the exclusive tutorial! I have a question about the logic behind selecting the next node (i.e., how the supervisor chooses the agent). Is the selection process solely determined by the system prompt, as shown below?system_prompt = (
|
Beta Was this translation helpful? Give feedback.
-
Thank you very much for the example. I tried to change only two things - search engine (duck) and LLM (ollama + llama3.1): from langchain_community.tools import DuckDuckGoSearchRun from langchain_ollama import ChatOllama and I'm getting the following error: python aaa.py I'm also not sure why I get the following two warnings at the beginning: /Users/namkyup/vsc/langgraph/aaa.py:111: SyntaxWarning: invalid escape sequence '`' and USER_AGENT environment variable not set, consider setting it to identify your requests. Any help would be highly appreciated! |
Beta Was this translation helpful? Give feedback.
-
this code has lots of issue why cant you fix it all ? |
Beta Was this translation helpful? Give feedback.
-
langgraph/tutorials/multi_agent/hierarchical_agent_teams/
Build language agents as graphs
https://langchain-ai.github.io/langgraph/tutorials/multi_agent/hierarchical_agent_teams/
Beta Was this translation helpful? Give feedback.
All reactions