Metadata-Version: 2.5
Name: rungated
Version: 0.10.0
Summary: Python SDK for the Rungated runtime AI agent firewall
Project-URL: Homepage, https://rungated.com
Project-URL: Documentation, https://docs.rungated.com
Author: Rungated
License: Apache-2.0
License-File: LICENSE
License-File: NOTICE
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Security
Requires-Python: >=3.9
Requires-Dist: httpx>=0.25
Provides-Extra: anthropic
Requires-Dist: anthropic>=0.40; extra == 'anthropic'
Provides-Extra: dev
Requires-Dist: anthropic; extra == 'dev'
Requires-Dist: langchain-core; extra == 'dev'
Requires-Dist: langgraph; extra == 'dev'
Requires-Dist: openai; extra == 'dev'
Requires-Dist: openai-agents; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Requires-Dist: pyyaml; extra == 'dev'
Provides-Extra: langgraph
Requires-Dist: langchain-core>=0.3; extra == 'langgraph'
Requires-Dist: langgraph>=0.2; extra == 'langgraph'
Provides-Extra: openai
Requires-Dist: openai>=1.40; extra == 'openai'
Provides-Extra: openai-agents
Requires-Dist: openai-agents>=0.1; extra == 'openai-agents'
Provides-Extra: yaml
Requires-Dist: pyyaml>=6; extra == 'yaml'
Description-Content-Type: text/markdown

# rungated

Python SDK for the Rungated runtime AI agent firewall.

```python
from rungated import Rungated, protect

ab = Rungated(gateway="http://127.0.0.1:8080", agent_id="finance-agent", agent_key="...")

client = ab.openai()
reply = client.chat.completions.create(model="gpt-4o", messages=[{"role": "user", "content": "hi"}])

@protect(ab, name="get_invoice", server="finance-mcp")
def get_invoice(invoice_id: str) -> dict: ...
```

Every function has an async twin prefixed with `a` (`adecide`, `acheck_tool`, `acheck_result`, `ascan`, `arestore`).

Adapters live in `rungated.integrations`: `langgraph` (`RungatedToolNode`, `protect_tools`) and `openai_agents` (`protect_function_tools`, `use_gateway`).

Environment variables: RUNGATED_GATEWAY, RUNGATED_AGENT, RUNGATED_AGENT_KEY, RUNGATED_TOKEN, RUNGATED_API_KEY, RUNGATED_SESSION.
