Catalog PyPI
PACKAGE EXPLORERView in registry

agentlens-observe

PyPI

Debug AI agents visually — self-hosted, open-source observability SDK

agentsaidebuggingllmobservabilitytracing
Versions collected1
Direct dependencies11From release 0.6.0
Last observed20 Oct, 22:34 UTC

README

Version 0.6.0 documentation

agentlens-observe

Debug AI agents visually — Python SDK for AgentLens, the self-hosted AI agent observability platform.

Install

pip install agentlens-observe

Quick Start

import agentlens

agentlens.configure(server_url="http://localhost:8000")

@agentlens.trace(name="ResearchAgent")
def run_agent(query: str) -> str:
    with agentlens.span("web_search", "tool_call") as s:
        result = search(query)
        s.set_output(result)
        s.set_cost("gpt-4o", input_tokens=500, output_tokens=200)
    return summarize(result)

run_agent("Latest AI research papers")
# → Traces stream to your AgentLens dashboard

Features

  • 2-line integration — @agentlens.trace decorator + agentlens.span() context manager
  • Fire-and-forget — never blocks your agent (daemon thread transport)
  • Async-safe — uses contextvars.ContextVar for trace propagation
  • Cost tracking — built-in pricing for 12+ models (GPT-4o, Claude, etc.)
  • Framework integrations — LangChain, CrewAI

Framework Integrations

LangChain / LangGraph

from agentlens.integrations.langchain import AgentLensCallbackHandler
agent.run("task", callbacks=[AgentLensCallbackHandler()])

CrewAI

from agentlens.integrations.crewai import patch_crewai
patch_crewai()  # Auto-instruments all Crew runs

License

MIT — see LICENSE

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.6.01 Mar 202611

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
tranhoangtu-it/agentlens-observe

Shared repository data · GitHub

License detected in repository
Not collected

Repository

ACCESSIBLE
tranhoangtu-it/agentlens

Shared repository data · GitHub

License detected in repository
MIT
License branch / ref
main
Last push
6 Apr 2026
Archived
No
Contributor identities
— · partial collection

Public sponsor counts have not been collected. These signals belong to the repository owner.

Downloads & popularity

1count
Gauge · observed snapshots22 Oct 2026
10.50
2026-10-22: 1 · observed 2026-10-22T10:16:36.1661447Z
22 Oct22 Oct

github · 1 observations shown. Missing days are unknown.

View observed values
Date / source periodValueObserved at
2026-10-2212026-10-22T10:16:36.1661447Z

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:34 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:512b1e3cd6812da319da790b9519c21e99677e441454c27285728d838ec1118e