Skip to main content

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.

Release files for gemini-omega 0.3.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 gemini-omega 0.3.0
File Size Uploaded
gemini_omega-0.3.0.tar.gz 561.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gemini-omega 0.3.0
File Interpreter ABI Platform
gemini_omega-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 572.1 kB

Release files / gemini_omega-0.3.0.tar.gz

Download URL gemini_omega-0.3.0.tar.gz
Size 561.3 kB
Tags Source
SHA-256 checksum
How to use checksums
86f580915965d3d4d08b834a8a842c9246542115e6a3940453df8b6f4522b472
BLAKE2b-256 checksum
How to use checksums
d3781801970fa79c8372b276f36e7dccc4fe9197cbb92ac50f4998ac6e2970ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / gemini_omega-0.3.0-py3-none-any.whl

Download URL gemini_omega-0.3.0-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48c663be11fa1f3ebaa71190ed8c514e9c6448c0fef0a2c2c3b301aa1a472ab5
BLAKE2b-256 checksum
How to use checksums
8a84571ef9d6dba27e170798ab00cc73c9fc3c9e392d0b3d6905b994c580fb3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

1 release file

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