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

Function _get_tmp_agent_root

src/google/adk/cli/fast_api.py:206–211  ·  view source on GitHub ↗
(app_root: Path, app_name: str)

Source from the content-addressed store, hash-verified

204 return file_path
205
206 def _get_tmp_agent_root(app_root: Path, app_name: str) -> Path:
207 tmp_agent_root = app_root / "tmp" / app_name
208 resolved_tmp_agent_root = tmp_agent_root.resolve()
209 if not resolved_tmp_agent_root.is_relative_to(app_root):
210 raise ValueError(f"Invalid tmp path for app: {app_name!r}")
211 return tmp_agent_root
212
213 def copy_dir_contents(source_dir: Path, dest_dir: Path) -> None:
214 dest_dir.mkdir(parents=True, exist_ok=True)

Callers 6

cleanup_tmpMethod · 0.85
ensure_tmp_existsMethod · 0.85
builder_buildMethod · 0.85
cleanup_tmpFunction · 0.85
ensure_tmp_existsFunction · 0.85
builder_buildFunction · 0.85

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected