compile(
self,
checkpointer: Checkpointer = None,
*,
cache: BaseCache | None | Name | Type | Description |
|---|---|---|
checkpointer | Checkpointer | Default: NoneA checkpoint saver object or flag. If provided, this If If Important: When a checkpointer is enabled, you should pass a
The |
interrupt_before | All | list[str] | None | Default: NoneAn optional list of node names to interrupt before. |
interrupt_after | All | list[str] | None | Default: None |
debug | bool | Default: False |
name | str | None | Default: None |
Compiles the StateGraph into a CompiledStateGraph object.
The compiled graph implements the Runnable interface and can be invoked,
streamed, batched, and run asynchronously.
An optional list of node names to interrupt after.
A flag indicating whether to enable debug mode.
The name to use for the compiled graph.