mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-08 10:47:52 +02:00
Apply patch [skip ci]
This commit is contained in:
@@ -1231,7 +1231,7 @@ def create_react_agent(
|
||||
)
|
||||
# Add individual tool nodes instead of a single tools node
|
||||
for tool in tool_classes:
|
||||
workflow.add_node(tool.name, ToolExecutor(tool))
|
||||
workflow.add_node(tool.name, ToolExecutor(tool, handle_tool_errors=True, messages_key="messages"))
|
||||
|
||||
# Optionally add a pre-model hook node that will be called
|
||||
# every time before the "agent" (LLM-calling node)
|
||||
@@ -1378,3 +1378,4 @@ __all__ = [
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user