ThreadState
LangGraph SDK checkpoint snapshot containing state values, next nodes, metadata, parent checkpoint, and pending tasks.
import type { ThreadState } from '@threadplane/langgraph';Declaration
interface ThreadState<ValuesType = DefaultValues> {
checkpoint: Checkpoint;
created_at: Optional<string>;
metadata: Metadata;
next: string[];
parent_checkpoint: Optional<Checkpoint>;
tasks: Array<ThreadTask>;
values: ValuesType;
}Type parameters
ValuesTypeDefault:DefaultValues
Members
checkpoint
Checkpoint of the thread state
checkpoint: Checkpoint;created_at
Time of state creation
created_at: Optional<string>;metadata
Metadata for this state
metadata: Metadata;next
The next nodes to execute. If empty, the thread is done until new input is received
next: string[];parent_checkpoint
The parent checkpoint. If missing, this is the root checkpoint
parent_checkpoint: Optional<Checkpoint>;tasks
Tasks to execute in this step. If already attempted, may contain an error
tasks: Array<ThreadTask>;values
The state values
values: ValuesType;