Broaden compile(transformers=...) signature to accept scope-aware factories

This commit is contained in:
Nick Hollon
2026-04-20 16:34:14 -04:00
parent 221ab0c9ad
commit de72fb4b4b
+1 -1
View File
@@ -1045,7 +1045,7 @@ class StateGraph(Generic[StateT, ContextT, InputT, OutputT]):
interrupt_after: All | list[str] | None = None,
debug: bool = False,
name: str | None = None,
transformers: Sequence[Callable[[], Any]] | None = None,
transformers: Sequence[Callable[..., Any]] | None = None,
) -> CompiledStateGraph[StateT, ContextT, InputT, OutputT]:
"""Compiles the `StateGraph` into a `CompiledStateGraph` object.