Get agent configuration by name Args: agent_name: Agent name Returns: Agent: Agent instance or None if not found
(self, agent_name: str)
| 524 | raise |
| 525 | |
| 526 | async def get(self, agent_name: str) -> Optional[Agent]: |
| 527 | """Get agent configuration by name |
| 528 | |
| 529 | Args: |
| 530 | agent_name: Agent name |
| 531 | |
| 532 | Returns: |
| 533 | Agent: Agent instance or None if not found |
| 534 | """ |
| 535 | agent_config = self._agent_configs.get(agent_name) |
| 536 | if agent_config is None: |
| 537 | return None |
| 538 | return agent_config.instance if agent_config.instance is not None else None |
| 539 | |
| 540 | async def get_info(self, agent_name: str) -> Optional[AgentConfig]: |
| 541 | """Get agent info by name |
no outgoing calls
no test coverage detected