AI Agent Observability SDK for Python
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file farzanhossans_agentlens-0.2.1.tar.gz.
File metadata
- Download URL: farzanhossans_agentlens-0.2.1.tar.gz
- Upload date:
- Size: 21.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba4e83c20fa5dd9c932ddfa591f9da952077c4ea4af5ce6bb282768f4cc4de2b
|
|
| MD5 |
a876579f6e09a6e6ab83296cdf872f49
|
|
| BLAKE2b-256 |
2f8a19580b29d27c9dee7e8cc0209c9133fa7b63e7ea7f8c96a32887274515b2
|
File details
Details for the file farzanhossans_agentlens-0.2.1-py3-none-any.whl.
File metadata
- Download URL: farzanhossans_agentlens-0.2.1-py3-none-any.whl
- Upload date:
- Size: 32.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4752af52dcb67eaf95c33b3830a4ab7e32c85262f5e6303cae26e6ad4f3a4cb7
|
|
| MD5 |
f447b8868c78a54aae5ae5908b55808f
|
|
| BLAKE2b-256 |
98f11ab6eb758cb315037c8e0013e13b8cf6094b15c499fa0c34fd427f3fcf20
|