LangGraph v0.3.0
Breaking changes
prebuilt
module was moved into a separate pip-installable package (langgraph-prebuilt
).
Since langgraph-prebuilt
is implemented as namespace package, you can import all of the prebuilt components (e.g., create_react_agent
, ToolNode
, etc) the same way as before:
from langgraph.prebuilt import create_react_agent, ToolNode
Make sure to run pip install langgraph-prebuilt
to be able to import the prebuilt components
Deprecations:
Removed in v0.3:
langgraph.prebuilt.tool_executor
- uselanggraph.prebuilt.tool_node.ToolNode
insteadmessages_modifier
parameter forcreate_react_agent
- useprompt
instead