Metadata-Version: 2.4
Name: langgraph-omega
Version: 0.1.0
Summary: OmegaEngine governance integration for langgraph-omega
Project-URL: Homepage, https://omegaengine.ai
Project-URL: Repository, https://github.com/TheArkhitect/Omegaengine
Author-email: OmegaEngine <team@omegaengine.ai>
License-Expression: Apache-2.0
License-File: LICENSE
Keywords: ai-safety,governance,llm,omegaengine
Requires-Python: >=3.8
Requires-Dist: httpx>=0.24.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == 'dev'
Description-Content-Type: text/markdown

<p align="center">
  <img src="logo.png" alt="OmegaEngine Logo" width="200" height="200">
</p>

<h1 align="center">langgraph-omega</h1>

<p align="center">
  <strong>LangGraph Integration for OmegaEngine</strong>
</p>

<p align="center">
  <a href="https://pypi.org/project/langgraph-omega/"><img src="https://img.shields.io/pypi/v/langgraph-omega?color=blue&label=PyPI" alt="PyPI"></a>
  <a href="https://github.com/TheArkhitect/Omegaengine/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-blue" alt="License"></a>
</p>

---

## ✨ Features

- 🕸️ **Graph-level Governance** — Control entire agent workflows
- 🔗 **Node Validation** — Validate each graph node execution
- 🔄 **State Guards** — Monitor state transitions
- 📊 **Execution Tracing** — Full audit of graph execution
- 🛡️ **Conditional Overrides** — Policy-based routing

---

## 📦 Installation

```bash
pip install langgraph-omega
```

---

## 🚀 Quick Start

```python
from langgraph.graph import StateGraph
from langgraph_omega import OmegaGraph

# Define your graph
workflow = StateGraph(AgentState)
workflow.add_node("research", research_agent)
workflow.add_node("write", write_agent)
workflow.add_edge("research", "write")

# Wrap with governance
governed_graph = OmegaGraph(
    workflow.compile(),
    omega_api_key="your-omega-key",
    policy_id="agent_workflow",
)

# All node executions are governed
result = governed_graph.invoke({"input": "Write about AI"})
```

---

## 🔗 Node-level Governance

```python
from langgraph_omega import governed_node

@governed_node(policy_id="research_policy")
def research_agent(state):
    # Node execution is validated
    return {"research": "..."}

workflow.add_node("research", research_agent)
```

---

## 📄 License

Licensed under the [Apache License 2.0](LICENSE).
