# get_text_at_path

> **Function** in `langgraph.store`

📖 [View in docs](https://reference.langchain.com/python/langgraph.store/base/embed/get_text_at_path)

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

## Signature

```python
get_text_at_path(
    obj: Any,
    path: str | list[str],
) -> list[str]
```

## Description

!!! info "Path types handled"
- Simple paths: "field1.field2"
- Array indexing: "[0]", "[*]", "[-1]"
- Wildcards: "*"
- Multi-field selection: "{field1,field2}"
- Nested paths in multi-field: "{field1,nested.field2}"

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `obj` | `Any` | Yes | The object to extract text from |
| `path` | `str \| list[str]` | Yes | Either a path string or pre-tokenized path list. |

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/916025d2f6d9f6ddb2628bd248bc4f3db632d9a8/libs/checkpoint/langgraph/store/base/embed.py#L233)