Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

farzanhossans_agentlens-0.2.0.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

farzanhossans_agentlens-0.2.0-py3-none-any.whl (31.8 kB view details)

Uploaded Python 3

File details

Details for the file farzanhossans_agentlens-0.2.0.tar.gz.

File metadata

  • Download URL: farzanhossans_agentlens-0.2.0.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for farzanhossans_agentlens-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4c0f2c8b0e8b100720e3f62b6d8014490fcb6a7964240adef86b6fcd512a0d17
MD5 384b7ad739c84b61e6e1dcfb626b18b6
BLAKE2b-256 da275d429b6441ec6535ac8c153f6860b15a234ead52a0b766c5f12cf9648ced

See more details on using hashes here.

File details

Details for the file farzanhossans_agentlens-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for farzanhossans_agentlens-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aaf4f19c22a925c16a29034baac4058637c7cbbc4ec21d2c8863c27881f249ac
MD5 ce5afb10d28a68d1155bc0dc42574411
BLAKE2b-256 a4de85161e497b72d51b64b49080b591af6b90b5a6442cc4548e3c19e9a6f4df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page