# build_tree

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/callbacks/tracers/wandb/build_tree)

Builds a nested dictionary from a list of runs.
:param runs: The list of runs to build the tree from.
:return: The nested dictionary representing the langchain Run in a tree
    structure compatible with WBTraceTree.

## Signature

```python
build_tree(
    runs: List[Dict[str, Any]],
) -> Dict[str, Any]
```

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/callbacks/tracers/wandb.py#L220)