Skip to main content

evalops-google-generativeai

Drop-in google-generativeai shim for stamping EvalOps organization scope, principal attribution, trace IDs, and provider references onto Google Generative AI calls.

This package wraps the official Google Generative AI SDK so teams can route model calls through EvalOps with minimal code changes.

Python

pip install evalops-google-generativeai
import evalops_google_generativeai as genai

genai.configure(
    organization_id="org_123",
    principal="user:ada@example.com",
)

model = genai.GenerativeModel("gemini-2.0-flash")
response = model.generate_content("hello")

Environment

  • EVALOPS_API_KEY or GOOGLE_API_KEY: Platform-issued bearer token.
  • EVALOPS_ORGANIZATION_ID: organization scope stamped into requests.
  • EVALOPS_PRINCIPAL: optional actor string for audit attribution.
  • EVALOPS_TRACE_ID: optional trace correlation ID.
  • EVALOPS_LLM_GATEWAY_GOOGLE_URL: Google-compatible gateway base URL.
  • EVALOPS_LLM_GATEWAY_URL: fallback gateway base URL.
  • EVALOPS_PROVIDER_ENVIRONMENT: defaults to prod.
  • EVALOPS_PROVIDER_CREDENTIAL_NAME: optional provider ref credential name.
  • EVALOPS_PROVIDER_TEAM_ID: optional provider ref team ID.

Provider References

Set provider reference environment variables when a request should select a specific provider credential. Organizations with default provider routing can omit those values and keep the vendor SDK call shape.

Metadata

Release files for evalops-google-generativeai 0.4.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 evalops-google-generativeai 0.4.0
File Size Uploaded
evalops_google_generativeai-0.4.0.tar.gz 19.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for evalops-google-generativeai 0.4.0
File Interpreter ABI Platform
evalops_google_generativeai-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.1 kB

Release files / evalops_google_generativeai-0.4.0.tar.gz

Download URL evalops_google_generativeai-0.4.0.tar.gz
Size 19.8 kB
Tags Source
SHA-256 checksum
How to use checksums
eaeb5aa973711c032a1b26c3dc45ab756fe8b083eb67034f1100b7c178de4311
BLAKE2b-256 checksum
How to use checksums
4ee9547b4788d226104911f92f7b60de3d6491b8153a5a568400684d74590e5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 3, 2026.

Transparency log

Release files / evalops_google_generativeai-0.4.0-py3-none-any.whl

Download URL evalops_google_generativeai-0.4.0-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6fbf765767166f73b95862b1751c145e90c6dd3b1d1c9625389f7276373805f3
BLAKE2b-256 checksum
How to use checksums
cbaf383006a142c2c5a89b2b6511a77f21af158c5ae8974deb0115ae5d7c858f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 3, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.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