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
    Pythonlanggraphutilsconfig
    Module●Since v0.2

    config

    Backwards compat imports for config utilities, to be removed in v1.

    Functions

    function
    ensure_config

    Return a config with all keys, merging any provided configs.

    function
    patch_configurable
    function
    get_config
    function
    get_store

    Access LangGraph store from inside a graph node or entrypoint task at runtime.

    Can be called from inside any StateGraph node or functional API task, as long as the StateGraph or the entrypoint was initialized with a store, e.g.:

    # with StateGraph
    graph = (
        StateGraph(...)
        ...
        .compile(store=store)
    )
    
    # or with entrypoint
    @entrypoint(store=store)
    def workflow(inputs):
        ...
    Async with Python < 3.11

    If you are using Python < 3.11 and are running LangGraph asynchronously, get_store() won't work since it uses contextvar propagation (only available in Python >= 3.11).

    View source on GitHub