读 manifest JSON,返回 AgentManifest。
(self, agent_id: str)
| 318 | # -------------------------------------------------------- |
| 319 | |
| 320 | def get_status(self, agent_id: str) -> AgentManifest: |
| 321 | """读 manifest JSON,返回 AgentManifest。""" |
| 322 | manifest_file = self._store_dir / f"{agent_id}.json" |
| 323 | if not manifest_file.exists(): |
| 324 | raise FileNotFoundError(f"agent manifest not found: {agent_id}") |
| 325 | data = json.loads(manifest_file.read_text(encoding="utf-8")) |
| 326 | return AgentManifest.model_validate(data) |
| 327 | |
| 328 | # -------------------------------------------------------- |
| 329 | # list_agents — 列出所有 agent |
no outgoing calls
no test coverage detected