Dynamic breakpoints Guide
Dynamic breakpoints Review We discussed motivations for human-in-the-loop: (1) Approval - We can interrupt our agent, surface state to a user, and allow the user to accept an action (2) Debugging - We can rewind the graph to reproduce or avoid issues (3) Editing - You can modify the state We covered breakpoints as a general way to stop the graph at specific steps, which enables use-cases like Approval We also showed how to edit graph state, and introduce human feedback. Goals Breakpoints are set by the developer on a specific node during graph compilation. But, sometimes it is helpful to allow the graph **dynamically interrupt** itself! This is an internal breakpoint, and can be achieved using NodeInterrupt. This has a few specific benefits: (1) You can do it conditionally (from inside a node based on developer-defined logic). (2) You can communicate to the user why it's interrupted (by passing whatever you want to the NodeInterrupt). Let's create a graph where a NodeInterrupt is thrown based on the length of the input.
When to use Dynamic breakpoints
Dynamic breakpoints Review We discussed motivations for human-in-the-loop: (1) Approval - We can interrupt our agent, surface state to a user, and allow the user to accept an action (2) Debugging - We can rewind the graph to reproduce or avoid issues (3) Editing - You can modify the state We covered breakpoints as a general way to stop the graph at specific steps, which enables use-cases like Approval We also showed how to edit graph state, and introduce human feedback. Goals Breakpoints are set by the developer on a specific node during graph compilation. But, sometimes it is helpful to allow the graph **dynamically interrupt** itself! This is an internal breakpoint, and can be achieved using NodeInterrupt. This has a few specific benefits: (1) You can do it conditionally (from inside a node based on developer-defined logic). (2) You can communicate to the user why it's interrupted (by passing whatever you want to the NodeInterrupt). Let's create a graph where a NodeInterrupt is thrown based on the length of the input.
How to use Dynamic breakpoints
Dynamic breakpoints is a autonomous loop agent built on the LangGraph framework. Set it up from the source repository, configure your model credentials, and invoke it for tasks that match its description. Review the safety profile below before running it against production data or systems.
Safety profile
Autonomy
Semi-autonomous
Sandbox-aware
No declared sandbox guidance
Network access
Unspecified
Filesystem access
Unspecified