MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeWiki / run_module_agent

Method run_module_agent

codewiki/src/be/backend.py:49–57  ·  view source on GitHub ↗

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,
    )

Source from the content-addressed store, hash-verified

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"):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected