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
    PythonlanggraphpregelprotocolPregelProtocol
    Class●Since v0.2

    PregelProtocol

    Copy
    PregelProtocol()

    Bases

    Runnable[InputT, Any]Generic[StateT, ContextT, InputT, OutputT]

    Methods

    Inherited fromRunnable(langchain_core)

    Attributes

    AnameAInputTypeAOutputTypeAinput_schemaAoutput_schema
    View source on GitHub
    Aconfig_specs

    Methods

    Mget_nameMget_input_schemaMget_input_jsonschemaMget_output_schemaMget_output_jsonschemaMconfig_schemaMget_config_jsonschemaMget_promptsMpipeMpickMassignMbatchMbatch_as_completedMabatchMabatch_as_completedMastream_logMastream_eventsMtransformMatransformMbindMwith_listenersMwith_alistenersMwith_typesMwith_retryMmapMwith_fallbacksMas_tool
    method
    with_config
    method
    get_graph
    method
    aget_graph
    method
    get_state
    method
    aget_state
    method
    get_state_history
    method
    aget_state_history
    method
    bulk_update_state
    method
    abulk_update_state
    method
    update_state
    method
    aupdate_state
    method
    stream
    method
    astream
    method
    invoke
    method
    ainvoke