LangGraphLifecycleSource
An observable LangGraphLifecycle; useAgent and useSyncExternalStore accept it.
import type { LangGraphLifecycleSource } from '@threadplane/langgraph';Declaration
export interface LangGraphLifecycleSource {
getSnapshot(): LangGraphLifecycle;
subscribe(notify: () => void): () => void;
}Members
getSnapshot · overload 1
getSnapshot(): LangGraphLifecycle;Returns
LangGraphLifecyclesubscribe · overload 1
subscribe(notify: () => void): () => void;Parameters
notify· required() => void
Returns
() => void