farzanhossans-agentlens
Python SDK for AgentLens — AI agent observability.
Distribution name: farzanhossans-agentlens (PyPI). Import path: agentlens.
Installation
pip install farzanhossans-agentlens
Quick start — one line auto-traces every LLM call
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()
with AgentLens.trace("classify-intent") as span:
result = call_llm(prompt)
span.set_output(result)
Optional extras
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.
Metadata
Release files for farzanhossans-agentlens 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| farzanhossans_agentlens-0.2.1.tar.gz | 21.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| farzanhossans_agentlens-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 53.9 kB
Release files / farzanhossans_agentlens-0.2.1.tar.gz
| Download URL | farzanhossans_agentlens-0.2.1.tar.gz |
|---|---|
| Size | 21.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba4e83c20fa5dd9c932ddfa591f9da952077c4ea4af5ce6bb282768f4cc4de2b
|
|
BLAKE2b-256 checksum How to use checksums |
2f8a19580b29d27c9dee7e8cc0209c9133fa7b63e7ea7f8c96a32887274515b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / farzanhossans_agentlens-0.2.1-py3-none-any.whl
| Download URL | farzanhossans_agentlens-0.2.1-py3-none-any.whl |
|---|---|
| Size | 32.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4752af52dcb67eaf95c33b3830a4ab7e32c85262f5e6303cae26e6ad4f3a4cb7
|
|
BLAKE2b-256 checksum How to use checksums |
98f11ab6eb758cb315037c8e0013e13b8cf6094b15c499fa0c34fd427f3fcf20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|