Metadata-Version: 2.4
Name: anchor8
Version: 0.1.0
Summary: Python SDK for Anchor8 - The Cognitive Firewall
Home-page: https://anchor8.ai
Author: Anchor8
Author-email: hello@anchor8.ai
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.25.0
Requires-Dist: pydantic>=2.0.0
Provides-Extra: langchain
Requires-Dist: langchain>=0.1.0; extra == "langchain"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

 # Anchor8 SDK

The official Python client for Anchor8 AI.

## Installation

```bash
pip install Anchor8-sdk
```

## Basic Usage

```python
from Anchor8 import Anchor8Client

client = Anchor8Client(api_key="your-key", base_url="http://localhost:8000")

# Guard check
allowed, reason = client.check(
    agent_id="agent-007",
    tool_name="database_delete",
    arguments={"query": "DROP TABLE users"}
)

if allowed:
    print("Action allowed")
else:
    print(f"Action blocked: {reason}")
```

## Decorator Usage

```python
from Anchor8.decorators import guard

@guard(agent_id="my-agent")
def sensitive_operation(param):
    return "result"
```
