Skip to content

0.3.30

Choose a tag to compare

@github-actions github-actions released this 14 Apr 21:15
73b3535

langgraph 0.3.30

Summary of Changes

  • Improved streaming support for Command objects by properly handling unwrapping in responses #4250
  • Refactored Pydantic model update handling to improve code maintainability and reduce duplication #4255

Detailed Changes

langgraph.pregel.messages.StreamMessagesHandler

  • Added support for properly handling Command objects in streaming responses by extracting the .update value #4250
  • This allows Command objects to be used more seamlessly in streaming contexts, both as individual responses and when contained in sequences

langgraph.utils.fields.get_update_as_tuples

  • Added new utility function to extract update fields from Pydantic models as tuples #4255
  • Consistently handles both Pydantic v1 and v2 models
  • Preserves behavior of only updating values that differ from defaults or are explicitly set

langgraph.graph.state.StateGraph

  • Refactored internal _get_updates function to use the new get_update_as_tuples utility, reducing code duplication #4255

langgraph.types.Command

  • Updated internal _update_as_tuples method to use the new centralized utility function #4255