LangGraphSnapshot
Backend-private extension; the core snapshot remains backend-independent.
import type { LangGraphSnapshot } from '@threadplane/langgraph';Declaration
export type LangGraphSnapshot<TTools extends {
[K in keyof TTools]: ToolContract;
} = Record<string, ToolContract>, TState = unknown> = Omit<AgentSnapshot<TTools, TState>, 'interrupts' | 'subagents' | 'checkpoints'> & {
readonly history: readonly LangGraphHistoryEntry[] | undefined;
readonly state: LangGraphSnapshotState<TState> | undefined;
readonly stateIssues?: readonly string[];
readonly retainedRun?: {
readonly runId: string;
};
readonly interrupts: readonly LangGraphInterrupt[];
readonly subgraphs: readonly LangGraphSubgraph[];
readonly subagents: readonly LangGraphSubagent[];
readonly checkpoints?: readonly LangGraphCheckpoint[];
readonly messageCheckpoints?: Readonly<Record<string, string>>;
readonly branchTree?: LangGraphBranchTree;
readonly branch?: string;
readonly toolProgress?: readonly LangGraphToolProgress[];
readonly langGraphMessages?: readonly LangGraphWireMessage[];
readonly messageMetadata?: Readonly<Record<string, LangGraphMessageMetadata>>;
readonly loading?: true;
readonly queue?: readonly LangGraphQueuedRun[];
};Type parameters
TTools{ [K in keyof TTools]: ToolContract; }Default:Record<string, ToolContract>TStateDefault:unknown