DATE:
AUTHOR:
The LangChain Team
LangGraph

🐍 LangGraph Python: Dynamic breakpoints, error tracking in checkpointer, and custom configs

DATE:
AUTHOR: The LangChain Team

We’ve rolled out new features and improvements to LangGraph Python, designed to streamline your workflows:

  1. Dynamic Breakpoints for Human-in-the-Loop:
    We've added support for dynamic breakpoints, making it easier to create custom human-in-the-loop flows. Now, any node can raise an Interrupt exception, allowing interrupts to be conditional on the current graph state. Users can attach data to these interrupts, enabling actions like listing options for human intervention. Learn more.

  2. Error Tracking in Checkpointer:
    Errors thrown by nodes during graph execution are now stored in the checkpointer and can be accessed when fetching a thread's state or history. This feature is available in the library and API/Cloud, with Studio support coming in September.

  3. Custom Config for Graphs:
    Users can now attach custom configuration (metadata, callbacks, tags, etc.) to graphs used in Studio and Cloud through the .with_config() method on compiled graphs, enhancing flexibility and customization.

  4. Simplified State Replaying:
    Replaying a past state is now more straightforward—no need to "fork the thread" first. Users can simply pick a state from history and replay it directly.

These updates enhance control, error management, and flexibility, making it easier to manage and debug your LangGraph workflows.

Powered by LaunchNotes