MCPcopy Index your code
hub / github.com/google/adk-python / __init__

Method __init__

src/google/adk/cli/utils/agent_loader.py:72–85  ·  view source on GitHub ↗
(self, agents_dir: str)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 2

resolveMethod · 0.45

Tested by

no test coverage detected