Skip to content

0.3.1

Compare
Choose a tag to compare
@vbarda vbarda released this 27 Feb 15:30
· 188 commits to main since this release
7580ad6

LangGraph v0.3

prebuilt module was moved into a separate package (langgraph-prebuilt) bundled with langgraph

  • langgraph-prebuilt is a default dependency of langgraph - no user action needed
  • this change will allows us to grow our prebuilt offerings without changes to the core langgraph library

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

Deprecations:

Removed in v0.3:

  • langgraph.prebuilt.tool_executor (ToolInvocation / ToolExecutor)- use langgraph.prebuilt.tool_node.ToolNode instead
  • messages_modifier parameter for create_react_agent - use prompt instead