langgraph/how-tos/tool-calling-errors/ #1039
Replies: 7 comments 9 replies
-
My prebuilt ToolNode did not catch any errors. |
Beta Was this translation helpful? Give feedback.
-
In the recommendation scenario, for example, if a user asks "Do you have a cup?", this will start a SQL tool call, and then the agent will give a reply based on the tool call results. But if the user asks again "No patterned ones", can the agent understand that the parameters of the SQL tool call are updated based on the previous conversation? In other words, in the next round of conversation, can the LLM see the tool call information of the previous round or the input and output of any intermediate steps? |
Beta Was this translation helpful? Give feedback.
-
great example, switching to more capable model on failure, very nice |
Beta Was this translation helpful? Give feedback.
-
Using with chat models: llm = ChatOpenAI( tools = [get_weather, get_coolest_cities] llm_with_tools.invoke("what's the weather in sf?").tool_calls tool_calls return nothing: [] |
Beta Was this translation helpful? Give feedback.
-
how can I use complex tools defined as a class inherited from BaseTool? I have 'environment' as an instance initialized ahead and used in my tool node. |
Beta Was this translation helpful? Give feedback.
-
How can we use the MapReduce approach here? For instance, when asked, "What's the weather in the coolest cities?" and NYC and SF are identified as the coolest cities, the get_weather tool fetches the weather for each city sequentially. Since these tasks are independent, can we parallelise this process using MapReduce? |
Beta Was this translation helpful? Give feedback.
-
Can i use two nodes for manage my tools and how? For example use one toolNode for weather tool and other for the list. I tried to do this but when i execute the code I only got a bunch of xml tags and not content of the tool. |
Beta Was this translation helpful? Give feedback.
-
langgraph/how-tos/tool-calling-errors/
Build language agents as graphs
https://langchain-ai.github.io/langgraph/how-tos/tool-calling-errors/
Beta Was this translation helpful? Give feedback.
All reactions