Metadata-Version: 2.5
Name: kobil-agent-audit
Version: 1.2.0
Summary: Audit, Observability & Human-in-the-Loop for the KOBIL AI Trust Platform
License-Expression: LicenseRef-KOBIL-Agent-Trust-SDK-1.0
License-File: LICENSE
Keywords: agent,ai-security,audit,ciba,compliance,human-in-the-loop,kobil,observability,siem,token-tracking
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: respx>=0.21; extra == 'dev'
Description-Content-Type: text/markdown

# kobil-agent-audit (Python)

Python mirror of the `@uveysservetoglu/kobil-agent-audit` TypeScript SDK — audit,
observability, and human-in-the-loop for the KOBIL AI Trust Platform.

Behavioral 1:1 port of the TypeScript package in `../src`. The TypeScript
source is the reference specification; the Python code reproduces its logic,
HTTP wire format, and error semantics. `AuditConfig` is a snake_case dataclass
(developer surface); the entity types (AuditEvent, TokenTrackingEntry, …) are
camelCase dicts because they are the literal JSON exchanged with the platform.

## Install (dev)

```bash
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
```

## Test

```bash
pytest
```

## Usage

```python
import asyncio
from kobil_agent_audit import KobilAgentAudit

audit = KobilAgentAudit(
    platform_url="https://platform.kobil.com",
    agent_id="my-agent",
    api_token="tok",
)

audit.log_action("call_tool", "weather-api", "success", {"temp": 72})

async def main():
    await audit.destroy()  # flushes remaining events

asyncio.run(main())
```
