(self, agents_dir: str)
| 70 | """ |
| 71 | |
| 72 | def __init__(self, agents_dir: str): |
| 73 | agents_path = Path(agents_dir).resolve() |
| 74 | is_single_agent = is_single_agent_directory(agents_path) |
| 75 | if is_single_agent: |
| 76 | self._is_single_agent = True |
| 77 | self._single_agent_name = agents_path.name |
| 78 | self.agents_dir = str(agents_path.parent) |
| 79 | else: |
| 80 | self._is_single_agent = False |
| 81 | self._single_agent_name = None |
| 82 | self.agents_dir = str(agents_path) |
| 83 | |
| 84 | self._original_sys_path = None |
| 85 | self._agent_cache: dict[str, Union[BaseAgent, App]] = {} |
| 86 | |
| 87 | @property |
| 88 | def is_single_agent(self) -> bool: |
nothing calls this directly
no test coverage detected