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 |
transformers | Sequence[Callable[[tuple[str, ...]], Any]] | 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.
Optional sequence of StreamTransformer classes or
configured factories. Classes and factories are instantiated
per run whenever stream_events(version="v3") / astream_events(version="v3") is called and are
propagated to subgraph scopes. Custom factories should follow
the standard StreamTransformer constructor shape by
accepting scope as their first argument. Appended after the
built-in stream transformers.