Google Gemini SDK with OmegaEngine governance
Project description
gemini-omega
Google Gemini Integration with OmegaEngine Governance
✨ 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) # "APPROVE"
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gemini_omega-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gemini_omega-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1a5c2f368dbd586b04b3834fa15bf2475a8a7f712b16cf1998082c614cf912b
|
|
| MD5 |
e1a7ae0c0725e054d4746d110a6e03fa
|
|
| BLAKE2b-256 |
4ca67ccaabb55bc7a078c6b64cf7e2e9610ce16cd057d5ac8602a04c30332840
|