Metadata-Version: 2.4
Name: agenteval_sdk
Version: 0.2.0
Summary: Telemetry and Observability SDK for AI Agents
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: flask>=2.0

# agenteval_sdk

A lightweight SDK to log agent traces to the AgentEval ingestion endpoint.

## Usage

```python
from agenteval_sdk import trace, log_trace

@trace
def my_handler(x):
    return x * 2

log_trace(
    trace_id="demo-123",
    input_text="hello",
    output_text="world",
    latency_ms=120,
    tokens_used=42,
    status="NEW",
)
```

The SDK honors an environment variable `AGENTEVAL_API_URL`; otherwise it defaults to `http://ingestion:5000/trace`. You can also pass `url=` explicitly to `log_trace`.
