pypi langgraph-sdk 0.2.15

latest releases: 0.3.14, 0.3.13, 0.3.12...
5 months ago

langgraph 0.2.15

Summary of Changes

  • Fixed edge case in StateGraph to allow connecting directly to the END node without having to add it explicitly first (#1478)
  • Enhanced create_react_agent to accept a ToolNode instance directly, enabling reuse of tool configurations (#1451)
  • Improved JSON serialization of tool outputs to properly handle non-ASCII characters (#1505)

Detailed Changes

langgraph.graph.state.StateGraph

  • Fixed an edge case in add_edge method to allow connecting directly to the END node without having to add it explicitly first. This makes the API more consistent since END is a reserved key, not a regular node. (#1478)

langgraph.prebuilt.chat_agent_executor.create_react_agent

  • Enhanced the function to accept a ToolNode instance directly in addition to ToolExecutor or a list of tools
  • This allows reusing an existing ToolNode configuration when creating a new agent, making workflows more modular (#1451)
  • Updated internal logic to properly extract tool classes from the provided ToolNode when needed

langgraph.prebuilt.tool_node

  • Improved str_output function to properly handle non-ASCII characters when formatting tool outputs by setting ensure_ascii=False in JSON serialization (#1505)
  • This ensures better display of international characters, emojis, and other non-ASCII content in tool results

Don't miss a new langgraph-sdk release

NewReleases is sending notifications on new releases.