# TurnTrace

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/turn_trace/TurnTrace)

Keep sibling invocation roots alive until the thread starts another turn.

## Signature

```python
TurnTrace(
    self,
    roots: dict[str, RunTree] = dict(),
)
```

## Constructors

```python
__init__(
    self,
    roots: dict[str, RunTree] = dict(),
) -> None
```

| Name | Type |
|------|------|
| `roots` | `dict[str, RunTree]` |


## Properties

- `roots`

## Methods

- [`update()`](https://reference.langchain.com/python/deepagents-code/turn_trace/TurnTrace/update)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/efa9f5364b83e9367ea57d9c21b15b4d81fdcb7a/libs/code/deepagents_code/turn_trace.py#L23)