Metadata-Version: 2.4
Name: farzanhossans-agentlens
Version: 0.2.1
Summary: AI Agent Observability SDK for Python
Project-URL: Homepage, https://agentlens.dev
Project-URL: Repository, https://github.com/farzanhossan/agentlens
Project-URL: Issues, https://github.com/farzanhossan/agentlens/issues
Author-email: Farzan Hossan <farzanhossans@gmail.com>
License: MIT License
        
        Copyright (c) 2024 Farzan Hossan
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: agent,ai,anthropic,llm,observability,openai
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Requires-Dist: eval-type-backport>=0.2.0; python_version < '3.10'
Requires-Dist: httpx>=0.27.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: typing-extensions>=4.11.0
Provides-Extra: all
Requires-Dist: anthropic>=0.24.0; extra == 'all'
Requires-Dist: openai>=1.0.0; extra == 'all'
Requires-Dist: requests>=2.28.0; extra == 'all'
Provides-Extra: anthropic
Requires-Dist: anthropic>=0.24.0; extra == 'anthropic'
Provides-Extra: dev
Requires-Dist: mypy>=1.9.0; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
Requires-Dist: pytest>=8.1.0; extra == 'dev'
Requires-Dist: requests>=2.28.0; extra == 'dev'
Requires-Dist: responses>=0.25.0; extra == 'dev'
Requires-Dist: respx>=0.21.0; extra == 'dev'
Requires-Dist: ruff>=0.4.0; extra == 'dev'
Provides-Extra: openai
Requires-Dist: openai>=1.0.0; extra == 'openai'
Provides-Extra: requests
Requires-Dist: requests>=2.28.0; extra == 'requests'
Description-Content-Type: text/markdown

# farzanhossans-agentlens

Python SDK for [AgentLens](https://agentlens.dev) — AI agent observability.

Distribution name: `farzanhossans-agentlens` (PyPI). Import path: `agentlens`.

## Installation

```bash
pip install farzanhossans-agentlens
```

## Quick start — one line auto-traces every LLM call

```python
from agentlens import AgentLens

AgentLens.init(api_key="proj_xxx.hmac", project_id="<your-project-uuid>")

# That's it — every httpx / requests call to OpenAI, Anthropic, Gemini,
# Cohere, or Mistral is now traced automatically. No decorators needed.
```

## Grouping calls with `trace()`

```python
with AgentLens.trace("classify-intent") as span:
    result = call_llm(prompt)
    span.set_output(result)
```

## Optional extras

```bash
pip install farzanhossans-agentlens[requests]   # requests support (httpx is built-in)
pip install farzanhossans-agentlens[openai]     # SDK-level OpenAI patcher
pip install farzanhossans-agentlens[anthropic]  # SDK-level Anthropic patcher
pip install farzanhossans-agentlens[all]        # everything
```

## Documentation

Full documentation at [docs.agentlens.dev](https://docs.agentlens.dev).
