langchain_community.callbacks.tracers.wandb
.truncate_run_iterative¶
- langchain_community.callbacks.tracers.wandb.truncate_run_iterative(runs: List[Dict[str, Any]], keep_keys: Tuple[str, ...] = ()) List[Dict[str, Any]] [source]¶
- Utility to truncate a list of runs dictionaries to only keep the specified
keys in each run.
- Parameters
runs (List[Dict[str, Any]]) – The list of runs to truncate.
keep_keys (Tuple[str, ...]) – The keys to keep in each run.
- Returns
The truncated list of runs.
- Return type
List[Dict[str, Any]]