LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    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

    LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph-sdk_asyncstoreStoreClient
    Class●Since v0.3

    StoreClient

    Copy
    StoreClient(
        self,
        http: HttpClient,
    )

    Constructors

    Attributes

    Methods

    View source on GitHub
    constructor
    __init__
    NameType
    httpHttpClient
    attribute
    http: http
    method
    put_item

    Store or update an item.

    method
    get_item

    Retrieve a single item.

    method
    delete_item

    Delete an item.

    method
    search_items

    Search for items within a namespace prefix.

    method
    list_namespaces

    List namespaces with optional match conditions.

    Client for interacting with the graph's shared storage.

    The Store provides a key-value storage system for persisting data across graph executions, allowing for stateful operations and data sharing across threads.

    Example
    client = get_client(url="http://localhost:2024")
    await client.store.put_item(["users", "user123"], "mem-123451342", {"name": "Alice", "score": 100})