Class BaseCheckpointSaver<V>Abstract

Type Parameters

  • V extends string | number = number

Hierarchy (view full)

Constructors

Properties

Methods

  • Parameters

    • config: RunnableConfig<Record<string, any>>

    Returns Promise<undefined | Checkpoint<string, string>>

  • Generate the next version ID for a channel.

    Default is to use integer versions, incrementing by 1. If you override, you can use str/int/float versions, as long as they are monotonically increasing.

    Parameters

    Returns V

  • Parameters

    • config: RunnableConfig<Record<string, any>>

    Returns Promise<undefined | CheckpointTuple>

  • Parameters

    Returns AsyncGenerator<CheckpointTuple, any, unknown>

  • Parameters

    Returns Promise<RunnableConfig<Record<string, any>>>

  • Store intermediate writes linked to a checkpoint.

    Parameters

    • config: RunnableConfig<Record<string, any>>
    • writes: PendingWrite<string>[]
    • taskId: string

    Returns Promise<void>