# truncate_run_iterative

> **Function** in `langchain_community`

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

Utility to truncate a list of runs dictionaries to only keep the specified
    keys in each run.
:param runs: The list of runs to truncate.
:param keep_keys: The keys to keep in each run.
:return: The truncated list of runs.

## Signature

```python
truncate_run_iterative(
    runs: List[Dict[str, Any]],
    keep_keys: Tuple[str, ...] = (),
) -> List[Dict[str, Any]]
```

---

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