Hierarchy (view full)

Constructors

Properties

storage: Record<string, Record<string, Record<string, [Uint8Array, Uint8Array, undefined | string]>>>
writes: Record<string, [string, string, unknown][]>

Methods

  • Parameters

    • threadId: string
    • checkpointNs: string
    • Optional parentCheckpointId: string

    Returns Promise<SendProtocol[]>

  • 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

    • current: undefined | number
    • _channel: ChannelProtocol<unknown, unknown, unknown>

    Returns number

  • 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>