build_tree#

langchain_community.callbacks.tracers.wandb.build_tree(runs: List[Dict[str, Any]]) Dict[str, Any][source]#

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.

Parameters:

runs (List[Dict[str, Any]])

Return type:

Dict[str, Any]