LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Graphs
    • Functional API
    • Pregel
    • Checkpointing
    • Storage
    • Caching
    • Types
    • Runtime
    • Config
    • Errors
    • Constants
    • Channels
    • Agents
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewGraphsFunctional APIPregelCheckpointingStorageCachingTypesRuntimeConfigErrorsConstantsChannelsAgents
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraphchannelslast_valueLastValueAfterFinish
    Class●Since v0.4

    LastValueAfterFinish

    Stores the last value received, but only made available after finish(). Once made available, clears the value.

    Copy
    LastValueAfterFinish(
        self,
        typ: Any,
        key: str = '',
    )

    Bases

    Generic[Value]BaseChannel[Value, Value, tuple[Value, bool]]

    Constructors

    constructor
    __init__
    NameType
    typAny
    keystr

    Attributes

    attribute
    value: Value | Any
    attribute
    finished: bool
    attribute
    ValueType: type[Value]

    The type of the value stored in the channel.

    attribute
    UpdateType: type[Value]

    The type of the update received by the channel.

    Methods

    method
    checkpoint
    method
    from_checkpoint
    method
    update
    method
    consume
    method
    finish
    method
    get
    method
    is_available

    Inherited fromBaseChannel

    Attributes

    Atyp: typAkey: key

    Methods

    Mcopy
    —

    Return a copy of the channel.

    View source on GitHub