LangGraph.js API Reference
    Preparing search index...

    Interface ChannelProtocol<ValueType, UpdateType, CheckpointType>

    interface ChannelProtocol<
        ValueType = unknown,
        UpdateType = unknown,
        CheckpointType = unknown,
    > {
        lc_graph_name: string;
        UpdateType: UpdateType;
        ValueType: ValueType;
        checkpoint(): undefined | CheckpointType;
        fromCheckpoint(checkpoint?: CheckpointType): this;
        get(): ValueType;
        update(values: UpdateType[]): void;
    }

    Type Parameters

    • ValueType = unknown
    • UpdateType = unknown
    • CheckpointType = unknown
    Index

    Properties

    lc_graph_name: string

    The name of the channel.

    UpdateType: UpdateType
    ValueType: ValueType

    Methods

    • Return a new identical channel, optionally initialized from a checkpoint. Can be thought of as a "restoration" from a checkpoint which is a "snapshot" of the channel's state.

      Parameters

      Returns this

    • Update the channel's value with the given sequence of updates. The order of the updates in the sequence is arbitrary.

      Parameters

      Returns void

      if the sequence of updates is invalid.