A node for executing tools in LangGraph workflows.
Handles tool execution patterns including function calls, state injection, persistent storage, and control flow. Manages parallel execution, error h
Annotation for injecting graph state into tool arguments.
This annotation enables tools to access graph state without exposing state management details to the language model. Tools annotated with `In
Annotation for injecting persistent store into tool arguments.
This annotation enables tools to access LangGraph's persistent storage system without exposing storage details to the language model. To
Runtime context automatically injected into tools.
This is distinct from Runtime (from langgraph.runtime), which is injected
into graph nodes and middleware. ToolRuntime inclu
The response provided by a human to an interrupt, which is returned when graph execution resumes.
The state of the agent.
A node that validates all tools requests from the last AIMessage.
It can be used either in StateGraph with a 'messages' key.
This node does not actually run the tools, it onl
Configuration that defines what actions are allowed for a human interrupt.
This controls the available interaction options when the graph is paused for human input.
Represents a request for human action within the graph execution.
Contains the action type and any associated arguments needed for the action.
Represents an interrupt triggered by the graph that requires human intervention.
This is passed to the interrupt function when execution is paused for human input.
Conditional routing function for tool-calling workflows.
This utility function implements the standard conditional logic for ReAct-style
agents: if the last AIMessage contains tool calls, route to
Creates an agent graph that calls tools in a loop until a stopping condition is met.
This function is deprecated in favor of
create_agent from