LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    LangGraph Store
    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
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph.storebaseGetOp
    Class●Since v1.0

    GetOp

    Copy
    GetOp()

    Bases

    NamedTuple

    Used in Docs

    • Aerospike integrations

    Attributes

    View source on GitHub
    attribute
    namespace: tuple[str, ...]

    Hierarchical path that uniquely identifies the item's location.

    Examples
    ("users",)  # Root level users namespace
    ("users", "profiles")  # Profiles within users namespace
    attribute
    key: str

    Unique identifier for the item within its specific namespace.

    Examples
    "user123"  # For a user profile
    "doc456"  # For a document
    attribute
    refresh_ttl: bool

    Whether to refresh TTLs for the returned item.

    If no TTL was specified for the original item(s), or if TTL support is not enabled for your adapter, this argument is ignored.

    Operation to retrieve a specific item by its namespace and key.

    This operation allows precise retrieval of stored items using their full path (namespace) and unique identifier (key) combination.

    Examples

    Basic item retrieval:

    GetOp(namespace=("users", "profiles"), key="user123")
    GetOp(namespace=("cache", "embeddings"), key="doc456")