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.storebaseembedget_text_at_path
    Function●Since v2.0

    get_text_at_path

    Extract text from an object using a path expression or pre-tokenized path.

    Copy
    get_text_at_path(
        obj: Any,
        path: str | list[str],
    ) -> list[str]
    • Simple paths: "field1.field2"
    • Array indexing: "[0]", "[*]", "[-1]"
    • Wildcards: "*"
    • Multi-field selection: "{field1,field2}"
    • Nested paths in multi-field: "{field1,nested.field2}"

    Parameters

    NameTypeDescription
    obj*Any

    The object to extract text from

    path*str | list[str]

    Either a path string or pre-tokenized path list.

    View source on GitHub