support multi ToolNode to have the function calls in parallel. #2394
Michael-YongWang
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
@Michael-YongWang you would need custom node functions for each of your nodes, something like this: search_tool_node = ToolNode(search_tools)
def call_search_tools(state):
# update last AI message to contain only search tool calls
filtered_messages = {"messages": <updated message>}
return search_tool_node.invoke(filtered_messages) let me know if this makes sense |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have multiple ToolNode, some need to be interrupted before calling. When have multiple function calls, how to send the tools to the ToolNode that contains the tool in parallel?
currently, I send all the function calls to all the ToolNode which gives error.
Beta Was this translation helpful? Give feedback.
All reactions