ADK.Artifact.GCS (ADK v0.0.1-alpha.1)

Copy Markdown View Source

Google Cloud Storage artifact backend.

Stores artifacts as objects in a GCS bucket using the JSON API via Req. Authentication uses Application Default Credentials (ADC) — either a service account JSON file pointed to by GOOGLE_APPLICATION_CREDENTIALS or Compute Engine metadata.

Path layout

gs://bucket/app_name/user_id/session_id/filename/v0
gs://bucket/app_name/user_id/session_id/filename/v1

Configuration

artifact_service: {ADK.Artifact.GCS, bucket: "my-bucket"}

Options

  • :bucket — GCS bucket name (required)
  • :credentials_file — path to service account JSON (defaults to GOOGLE_APPLICATION_CREDENTIALS)