langgraph/tutorials/multi_agent/multi-agent-collaboration/ #511
Replies: 25 comments 25 replies
-
awesome but how can we change to start to legal Team collaboration for searching and retrieving text ? |
Beta Was this translation helpful? Give feedback.
-
This tutorial cannot run on gpt-4o, will give bugs " keyerror: chart_generator". But works fine when use gpt-4-1106-preview. |
Beta Was this translation helpful? Give feedback.
-
Looks like gpt-3.5-turbo also causes the "KeyError: 'chart_generator'" and gpt-4 triggers rate limit issues: I'm too lazy to add code to handle rate limits but interestingly it works fine for "gpt-4-1106-preview" which is enough to prove out the concept. |
Beta Was this translation helpful? Give feedback.
-
me2:"KeyError: 'chart_generator'" |
Beta Was this translation helpful? Give feedback.
-
I'm using gpt-4-turbo and it works. But, when I tried swapping out the 'tavily_tool' for a duckduckgo search tool. Everything works perfectly retrieving information from the internet but then encounters the same error when generating the plot: KeyError: 'chart_generator' |
Beta Was this translation helpful? Give feedback.
-
For gpt-4o, change the following code to make it work: ...
research_agent = create_agent(
llm,
[tavily_tool],
system_message="You should provide accurate data for use, "
"and source code shouldn't be the final answer",
)
...
chart_agent = create_agent(
llm,
[python_repl],
system_message="Run the python code to display the chart.",
) |
Beta Was this translation helpful? Give feedback.
-
Has anyone encountered this error : |
Beta Was this translation helpful? Give feedback.
-
Your pipeline has a complicated yet effective automated process. But your sample invoke shows how it can get trapped in a local infinity loop between two Nodes/Agents. Beside using hard limits such as revision_number or tried_number to escape from such loop, do you have any architectural idea to solve such issues? |
Beta Was this translation helpful? Give feedback.
-
I've broken the graph to the to only SQLAgent, sql_tool_node and the end state. Here everything works as intended, so I am assuming the problem is in the router with passing of the state to the chart_generator. Does the chart_generator have to have access to the sql_tool_node in order to call py_repl_node to perform the plotting? And what does the router do? Here is my router:
|
Beta Was this translation helpful? Give feedback.
-
Got error: ValueError: status_code: 400 |
Beta Was this translation helpful? Give feedback.
-
You should format the json response that you display. It's really hard to follow. |
Beta Was this translation helpful? Give feedback.
-
I tried to customize this example with my own tools, but I see below error.
Any suggestions, please? |
Beta Was this translation helpful? Give feedback.
-
I am getting the following error when. running multi-agent-collobration.ipynb. Can someone help? Error code: 400 - {'error': {'message': "An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: call_NEv19stcIQYKEzIodrGshzRv", 'type': 'invalid_request_error', 'param': 'messages', 'code': None}} |
Beta Was this translation helpful? Give feedback.
-
I'm running into an error with this sample code and need some help figuring out how to fix it. ''' ''' |
Beta Was this translation helpful? Give feedback.
-
Hi folks: thanks for the tutorial. Here if I have a tool that gives the result as a pandas df (for e.g. dates and stock prices) and another that plots it (using matplotlib and not a REPL) then how do I "pass" the data (which is a df or lists) between the 2 tools? |
Beta Was this translation helpful? Give feedback.
-
Hi folks: thanks for the tutorial. I replaced the told above with the following - 1 that gives the dates and prices as a pandas df and another that plots it (using matplotlib and not a REPL). Will the data pass seamlessly between the 2?
Getting the following output. Is it a tool call issue or a data format (json vs pandas) issue?
|
Beta Was this translation helpful? Give feedback.
-
Hey guys I've been getting this error |
Beta Was this translation helpful? Give feedback.
-
Can we use LlamaCpp models to create an agent? |
Beta Was this translation helpful? Give feedback.
-
Hey I have a question about state. So we have messages and sender which is fine. Although if we have so many iterations and messages are stacking. So let's say after 14 iterations we have a messages that contains 14 elements. This is a dangerous scenerio in 2 cases.
Does state take care of it or we do have to control it in some sense ? |
Beta Was this translation helpful? Give feedback.
-
Everything except the AI message content is displayed. |
Beta Was this translation helpful? Give feedback.
-
In LangGraph, the string &npsb (which means space) is attached to the edge string, making it difficult to read. |
Beta Was this translation helpful? Give feedback.
-
File "/home/flyang/anaconda3/envs/LLMs/lib/python3.11/site-packages/openai/_base_client.py", line 1040, in _request
|
Beta Was this translation helpful? Give feedback.
-
Can I run this with Gemini 1.5 flash or Ollama? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the tutorial; however, why is there an additional incomplete image here? |
Beta Was this translation helpful? Give feedback.
-
Arent the edges from researcher to charter missing? |
Beta Was this translation helpful? Give feedback.
-
langgraph/tutorials/multi_agent/multi-agent-collaboration/
Build language agents as graphs
https://langchain-ai.github.io/langgraph/tutorials/multi_agent/multi-agent-collaboration/
Beta Was this translation helpful? Give feedback.
All reactions