Skip to main content

Google Gemini SDK with OmegaEngine governance

Project description

OmegaEngine Logo

gemini-omega

Google Gemini Integration with OmegaEngine Governance

PyPI npm License


✨ Features

  • 🤖 Drop-in Replacement — Same API as Google GenAI SDK
  • 🛡️ Multi-modal Governance — Text, images, audio, video
  • 📊 Response Filtering — Policy-based output control
  • 📈 Full Audit Trail — Log all Gemini interactions
  • Streaming Support — Governed streaming
  • 🔧 Function Calling — Validate tool executions

📦 Installation

pip install gemini-omega

🚀 Quick Start

from gemini_omega import GenerativeModel

model = GenerativeModel(
    model_name="gemini-1.5-pro",
    google_api_key="your-google-key",
    omega_api_key="your-omega-key",
    policy_id="gemini_policy",
)

response = model.generate_content("Explain black holes")

print(response.text)
print(response.omega_decision)  # "ALLOW"
print(response.omega_audit_id)  # "aud_xyz789"

🖼️ Multi-modal Governance

import PIL.Image

image = PIL.Image.open("document.jpg")

response = model.generate_content([
    "What's in this image?",
    image
])

# Image content is also governed
print(response.omega_decision)

📄 License

Licensed under the Apache License 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gemini_omega-0.2.0.tar.gz (560.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gemini_omega-0.2.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file gemini_omega-0.2.0.tar.gz.

File metadata

  • Download URL: gemini_omega-0.2.0.tar.gz
  • Upload date:
  • Size: 560.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for gemini_omega-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f32516697cdc1025062f61897e1410d468416e5a671cf9b8f0ec7e010d4a1ce0
MD5 18d2466c16e094a26b79b76cb7155ac2
BLAKE2b-256 e04232e7003a076bfb8b413999efc5ce7cfdd83608ce731f7bfb38be6bee3780

See more details on using hashes here.

File details

Details for the file gemini_omega-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: gemini_omega-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for gemini_omega-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5cd1796e50f912dad819bf1a0dcd0633307092b99b34137a413c3f683d5562b
MD5 d1b73e4ed1c8264a1279383659d2127a
BLAKE2b-256 34b7761ee0902bd1973c4216c92da13ca795a2cd2bd8867a9f1b42aca076aab2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page