MCPcopy
hub / github.com/IBM/AssetOpsBench / __init__

Method __init__

src/agent/plan_execute/runner.py:100–108  ·  view source on GitHub ↗
(
        self,
        llm: LLMBackend,
        server_paths: dict[str, Path | str] | None = None,
    )

Source from the content-addressed store, hash-verified

98 """
99
100 def __init__(
101 self,
102 llm: LLMBackend,
103 server_paths: dict[str, Path | str] | None = None,
104 ) -> None:
105 super().__init__(llm, server_paths)
106 self._meter = _TokenMeter(llm)
107 self._planner = Planner(self._meter)
108 self._executor = Executor(self._meter, server_paths)
109
110 async def run(self, question: str) -> OrchestratorResult:
111 """Run the full plan-execute loop for a question.

Callers

nothing calls this directly

Calls 4

_TokenMeterClass · 0.85
PlannerClass · 0.85
ExecutorClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected