Run the per-module agent loop. Returns the updated module_tree dict.
(
self,
module_name: str,
components: Dict[str, "Node"],
core_component_ids: List[str],
module_path: List[str],
working_dir: str,
)
| 47 | "input_tokens", |
| 48 | "output_tokens", |
| 49 | "prompt_tokens", |
| 50 | "completion_tokens", |
| 51 | "total_tokens", |
| 52 | "cache_read_tokens", |
| 53 | "cache_write_tokens", |
| 54 | "requests", |
| 55 | "cost_usd", |
| 56 | ): |
| 57 | value = getattr(usage, key, None) |
| 58 | if isinstance(value, (int, float)) and not isinstance(value, bool): |
| 59 | out[key] = value |
| 60 | if not out and hasattr(usage, "model_dump"): |
no outgoing calls
no test coverage detected