Metadata-Version: 2.4
Name: aegis-runtime
Version: 0.3.0
Summary: Zero-trust deterministic flight controller for AI agents: circuit breakers, state locks, atomic rollbacks, and SHA-256 audit logs.
License: MIT
Keywords: ai,agents,security,llm,guardrails,deterministic,runtime
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: groq
Requires-Dist: groq>=0.9.0; extra == "groq"
Dynamic: license-file

## 🔌 Universal Agent Adapters (OpenAI, Anthropic, Groq, LangGraph & n8n)

```python
from aegis_runtime import AegisRuntime, AegisAgentAdapter

aegis = AegisRuntime()

@aegis.guard(sets_state={"customer_verified": True})
def verify_customer(email: str) -> str:
    """Verify customer identity before sensitive actions."""
    return f"Verified {email}"

@aegis.guard(requires_state={"customer_verified": True})
def issue_refund(amount: float, email: str) -> str:
    """Issue a refund to a verified customer."""
    return f"Refunded \${amount} to {email}"

adapter = AegisAgentAdapter(aegis)

# 1. Export schemas for OpenAI / Groq / LangGraph or Anthropic
openai_tools = adapter.to_openai_tools()
anthropic_tools = adapter.to_anthropic_tools()

# 2. Safely execute incoming LLM tool calls or n8n webhook payloads
response = adapter.execute_tool_call("issue_refund", '{"amount": 500, "email": "user@example.com"}')
```
