OmegaEngine governance integration for autogen-omega
Project description
autogen-omega
Microsoft AutoGen Integration for OmegaEngine
Documentation • Playground • Issues
✨ Features
- 🤖 Agent Wrapper — Add governance to any AutoGen agent
- 🔄 Conversation Guard — Monitor multi-agent dialogues
- 🛡️ Tool Execution Control — Validate tool calls before execution
- 📊 Group Chat Monitoring — Oversee entire agent teams
- ⚡ Human-in-the-Loop — Automatic escalation on policy triggers
📦 Installation
pip install autogen-omega
🚀 Quick Start
Governed Assistant Agent
from autogen import AssistantAgent, UserProxyAgent
from autogen_omega import OmegaAssistantAgent
# Create a governed agent
assistant = OmegaAssistantAgent(
name="analyst",
system_message="You are a financial analyst.",
omega_api_key="your-omega-api-key",
policy_id="finance_policy",
llm_config={"model": "gpt-4"}
)
user_proxy = UserProxyAgent(
name="user",
human_input_mode="NEVER",
)
# Start governed conversation
user_proxy.initiate_chat(
assistant,
message="Analyze this investment opportunity..."
)
Group Chat with Governance
from autogen import GroupChat, GroupChatManager
from autogen_omega import OmegaGroupChatManager
# Create your agents
researcher = OmegaAssistantAgent(name="researcher", ...)
analyst = OmegaAssistantAgent(name="analyst", ...)
writer = OmegaAssistantAgent(name="writer", ...)
# Governed group chat
group_chat = GroupChat(
agents=[researcher, analyst, writer],
messages=[],
)
manager = OmegaGroupChatManager(
groupchat=group_chat,
omega_api_key="your-omega-api-key",
policy_id="team_policy",
)
# All agent interactions are monitored
user_proxy.initiate_chat(manager, message="Research and write a report...")
🛡️ Tool Execution Control
Validate tool/function calls before execution:
from autogen_omega import OmegaToolValidator
validator = OmegaToolValidator(
omega_api_key="your-omega-api-key",
policy_id="tool_safety",
)
@validator.guard
def execute_sql(query: str) -> str:
"""Execute SQL query - governed by OmegaEngine"""
return db.execute(query)
# SQL queries are validated before execution
# Dangerous queries like DROP TABLE are blocked
📊 Conversation Auditing
Every agent message is logged:
from autogen_omega import OmegaConversationLogger
logger = OmegaConversationLogger(
omega_api_key="your-omega-api-key",
session_id="session_123",
)
# Attach to agents
assistant.register_hook("on_message", logger.log)
# Access full conversation audit
audit = logger.get_audit()
print(f"Messages: {audit.message_count}")
print(f"Policy violations: {audit.violations}")
🎯 Use Cases
| Use Case | How It Helps |
|---|---|
| Research Teams | Ensure agents stay on topic |
| Code Generation | Prevent malicious code execution |
| Document Processing | Protect sensitive data |
| Customer Service | Enforce response policies |
📄 License
Licensed under the Apache License 2.0.
Built with ❤️ by the OmegaEngine team
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 autogen_omega-0.1.0-py3-none-any.whl.
File metadata
- Download URL: autogen_omega-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.7 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 |
b869682083e0c452eb4ac82fe347709b8c2c76830839afa2ef3c8c3491be9175
|
|
| MD5 |
9a75fcbfa4fe0366efe5010b2a2c4942
|
|
| BLAKE2b-256 |
884ff63b69f0680b9e3e125a06fbbbbcaa3448ce98f33d756447f06367fdb78b
|