@threadplane/langgraphInterfacev0.3.7

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

LangGraphLifecycle

subscribe · overload 1

subscribe(notify: () => void): () => void;

Parameters

notify · required
() => void

Returns

() => void