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) # "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
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 Distribution
gemini_omega-0.3.0.tar.gz
(561.3 kB
view details)
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.3.0.tar.gz.
File metadata
- Download URL: gemini_omega-0.3.0.tar.gz
- Upload date:
- Size: 561.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86f580915965d3d4d08b834a8a842c9246542115e6a3940453df8b6f4522b472
|
|
| MD5 |
fd448da3ae9cfc05a6b1339ecf307278
|
|
| BLAKE2b-256 |
d3781801970fa79c8372b276f36e7dccc4fe9197cbb92ac50f4998ac6e2970ae
|
File details
Details for the file gemini_omega-0.3.0-py3-none-any.whl.
File metadata
- Download URL: gemini_omega-0.3.0-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48c663be11fa1f3ebaa71190ed8c514e9c6448c0fef0a2c2c3b301aa1a472ab5
|
|
| MD5 |
d9abb69bccdab8f4e4e5cb269d9862bb
|
|
| BLAKE2b-256 |
8a84571ef9d6dba27e170798ab00cc73c9fc3c9e392d0b3d6905b994c580fb3c
|