Skip to main content

Genkit Google Cloud Plugin

Export Genkit telemetry to Google Cloud Trace, Cloud Monitoring, and Cloud Logging.

Installation

uv add genkit-google-cloud genkit-google-genai

Usage

from genkit import Genkit
from genkit_google_cloud import enable_google_cloud_telemetry
from genkit_google_genai import GoogleAI

enable_google_cloud_telemetry(project_id='my-project')

ai = Genkit(plugins=[GoogleAI()], model=GoogleAI.gemini_model('gemini-flash-latest'))

Requires Google Cloud Application Default Credentials (ADC) or explicit credentials.

Sessions on Firestore

FirestoreSessionStore persists agent sessions durably: every turn is stored as a snapshot, sessions survive restarts and resume across processes, and status subscriptions enable features like a cross-process stop button.

from genkit.exp import Genkit
from genkit_google_cloud.exp import FirestoreSessionStore

ai = Genkit()
store = FirestoreSessionStore()  # uses Application Default Credentials
agent = ai.define_agent(name='assistant', store=store)

Notes:

  • Data lives under three collection roots derived from collection (default genkit-sessions, plus -shards and -pointers). Delete all three together when cleaning up.
  • Multi-tenant apps pass snapshot_path_prefix to derive a per-tenant path segment from call context.
  • After a regenerate/branch, resume a specific branch by snapshot_id; session_id lookup follows the most recently written branch.
  • See the class docstring for costs, limits, and lifecycle details.

Release files for genkit-google-cloud 0.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for genkit-google-cloud 0.12.0
File Size Uploaded
genkit_google_cloud-0.12.0.tar.gz 70.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for genkit-google-cloud 0.12.0
File Interpreter ABI Platform
genkit_google_cloud-0.12.0-py3-none-any.whl Python 3 none any Details

Total release size: 134.2 kB

Release files / genkit_google_cloud-0.12.0.tar.gz

Download URL genkit_google_cloud-0.12.0.tar.gz
Size 70.9 kB
Tags Source
SHA-256 checksum
How to use checksums
eb99567eacc634bd2af154bc9909c9818514d635492cd91fa44b020525f5e66c
BLAKE2b-256 checksum
How to use checksums
faa4fc5dfdf44c94815ea077e12104b5ed6ba594b680297dfea087e753832389
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / genkit_google_cloud-0.12.0-py3-none-any.whl

Download URL genkit_google_cloud-0.12.0-py3-none-any.whl
Size 63.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae9ac9945258d9270393bb21053aefe1ba334e762055a4dc27e5032fd7ca5ba5
BLAKE2b-256 checksum
How to use checksums
baaec30011fba539ace93334d8cf02b7cfdf97c0144bd9f9752f0d11e29b9249
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.12.0 This release

2 release files

0.10.0

2 release files

0.9.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page