Closed SENVENHUHU closed 1 month ago
@SENVENHUHU could you please confirm that the tool calling is working for you with a minimal example? perhaps just use a simple from langgraph.prebuilt import create_react_agent
to test it.
also, we recommend using prebuilt implementation of ToolNode
(from langgraph.prebuilt import ToolNode
), as well as bind_tools
instead of bind_functions
@vbarda Below is the result I got when I tested using from langgraph.prebuilt import create_react_agent. ================================ Human Message =================================
How much is the Morimaki Beef Burger? ================================== Ai Message ================================== Tool Calls: get_mojuan_price (call_J0Vq9xz6rBZD0MhExKmOh4yR) Call ID: call_J0Vq9xz6rBZD0MhExKmOh4yR Args: name: Morimaki Beef Burger ================================= Tool Message ================================= Name: get_mojuan_price
66 ================================== Ai Message ==================================
The Morimaki Beef Burger costs 66.
So I think the tool call was successful, however, the problem still hasn't been resolved. I would like to ask how to replicate the Multi-Agent Collaboration example using other models instead of the GPT model.
@SENVENHUHU you would likely need to customize the prompts as well as use more powerful models (note that the notebook is using gpt4) -- not all tool calling models will work equally well out of box
going to close, since this is not a langgraph issue, but feel free to open a discussion on this
@SENVENHUHU can you give me sample code with firefunciton-v2 working with react? i still can't implement it after reading the information
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
I want to know how to use other models, or open-source large models in a multi-agent system.
System Info
langchain-community 0.2.6 langchain-core 0.2.10 langchain-experimental 0.0.62 langchain-fireworks 0.1.4 langchain-groq 0.1.5 langchain-openai 0.1.10 langchain-text-splitters 0.2.0 langchainhub 0.1.20 langdetect 1.0.9 langgraph 0.1.5