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 is part of the G1 shim wedge from evalops/platform#1133. It ships the Python package and conformance surface while llm-gateway grows Google-native endpoint coverage.

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.

Gateway Status

llm-gateway currently exposes OpenAI-compatible /v1/chat/completions and /v1/responses. This shim establishes the Google package contract and metadata injection layer; full import-only parity depends on gateway-side Google adapter support.

Metadata

Release files for evalops-google-generativeai 0.2.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.2.0
File Size Uploaded Provenance Actions
evalops_google_generativeai-0.2.0.tar.gz 3.6 kB Without provenance Details for evalops_google_generativeai-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 6.7 kB

Release files / evalops_google_generativeai-0.2.0.tar.gz

Download URL evalops_google_generativeai-0.2.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8b7f5cbe93156a56559cf18bf2d7b02e714a9c20f066fcd1637c3ed8976ab4a5
BLAKE2b-256 checksum
How to use checksums
3ea62890efdfb6fcf184bb58c0bb0ca14e1ae5a852bb8d6e48c67b01955b3f23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

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

Download URL evalops_google_generativeai-0.2.0-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4896277abb846663bdc2fb610f02079aaa0a58ffff39eeae5fcccd7c2f9e4c94
BLAKE2b-256 checksum
How to use checksums
c59ef9ec5e07ce3331542b3c28179ee841aed0fe8326b0cb18de07b996a644d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for evalops-google-generativeai 0.2.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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