Interface ThreadState<ValuesType>

interface ThreadState<ValuesType> {
    checkpoint: Checkpoint;
    created_at: Optional<string>;
    metadata: Metadata;
    next: string[];
    parent_checkpoint: Optional<Checkpoint>;
    tasks: ThreadTask[];
    values: ValuesType;
}

Type Parameters

Properties

checkpoint: Checkpoint

Checkpoint of the thread state

created_at: Optional<string>

Time of state creation

metadata: Metadata

Metadata for this state

next: string[]

The next nodes to execute. If empty, the thread is done until new input is received

parent_checkpoint: Optional<Checkpoint>

The parent checkpoint. If missing, this is the root checkpoint

tasks: ThreadTask[]

Tasks to execute in this step. If already attempted, may contain an error

values: ValuesType

The state values