# TranscriptStore

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/hooks/transcript/TranscriptStore)

Append-only JSONL transcript projections owned by the client process.

## Signature

```python
TranscriptStore(
    self,
    root: Path,
    *,
    retention_revisions: int = DEFAULT_RETENTION_REVISIONS,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `root` | `Path` | Yes | Directory that will contain per-thread transcript files. |
| `retention_revisions` | `int` | No | Maximum prior `.bak-*` revisions retained per transcript after each rewrite. (default: `DEFAULT_RETENTION_REVISIONS`) |

## Constructors

```python
__init__(
    self,
    root: Path,
    *,
    retention_revisions: int = DEFAULT_RETENTION_REVISIONS,
) -> None
```

| Name | Type |
|------|------|
| `root` | `Path` |
| `retention_revisions` | `int` |


## Properties

- `root`
- `retention_revisions`

## Methods

- [`thread_path()`](https://reference.langchain.com/python/deepagents-code/hooks/transcript/TranscriptStore/thread_path)
- [`agent_path()`](https://reference.langchain.com/python/deepagents-code/hooks/transcript/TranscriptStore/agent_path)
- [`append_messages()`](https://reference.langchain.com/python/deepagents-code/hooks/transcript/TranscriptStore/append_messages)
- [`materialize()`](https://reference.langchain.com/python/deepagents-code/hooks/transcript/TranscriptStore/materialize)
- [`revision()`](https://reference.langchain.com/python/deepagents-code/hooks/transcript/TranscriptStore/revision)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/2069079e09546060f5b52b2cd4f0e3c813e820f3/libs/code/deepagents_code/hooks/transcript.py#L152)