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 have replaced the tables and schema nodes with custom nodes, where I have a function with the @tool decorator, a node, which takes the state and runs the function using some of the state variables and writes to messages.
I am aware that this method is different to using a ToolNode and binding tools to a node and using the create_tool_node_with_fallback function featured in the above quickstart. But is using a ToolNode advised? What are the advantages?
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.
-
I have constructed a graph similar to the SQL agent graph found here:
https://langchain-ai.github.io/langgraph/tutorials/sql-agent/
I have replaced the tables and schema nodes with custom nodes, where I have a function with the @tool decorator, a node, which takes the state and runs the function using some of the state variables and writes to messages.
I am aware that this method is different to using a ToolNode and binding tools to a node and using the create_tool_node_with_fallback function featured in the above quickstart. But is using a ToolNode advised? What are the advantages?
Beta Was this translation helpful? Give feedback.
All reactions