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

Function _artifact_key

tests/unittests/cli/test_fast_api.py:243–248  ·  view source on GitHub ↗
(
      app_name: str, user_id: str, session_id: Optional[str], filename: str
  )

Source from the content-addressed store, hash-verified

241 artifacts: dict[str, list[dict[str, Any]]] = {}
242
243 def _artifact_key(
244 app_name: str, user_id: str, session_id: Optional[str], filename: str
245 ) -> str:
246 if session_id is None:
247 return f"{app_name}:{user_id}:user:{filename}"
248 return f"{app_name}:{user_id}:{session_id}:{filename}"
249
250 def _canonical_uri(
251 app_name: str,

Callers 7

save_artifactMethod · 0.85
add_artifactMethod · 0.85
load_artifactMethod · 0.85
list_versionsMethod · 0.85
delete_artifactMethod · 0.85
get_artifact_versionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected