- LangChain: AgentLensCallbackHandler with auto-span creation for LLM calls, tool calls, chains, and agent decision logging - Dashboard: trace list with search, status filters, pagination - Dashboard: trace detail with Decision/Span/Event tabs - Dashboard: sidebar layout, responsive design, dark theme
AgentLens Python SDK
AgentLens provides observability for AI agents by tracing decisions, not just API calls.
Installation
pip install agentlens
Quick Start
from agentlens import init, trace
# Initialize AgentLens
init(api_key="your-api-key", endpoint="https://agentlens.vectry.tech")
# Trace your agent functions
@trace(name="research-agent")
async def research(topic: str) -> str:
return f"Researching: {topic}"
Features
- Decision Tracing: Log and visualize agent decisions with alternatives
- Context Awareness: Monitor context window utilization
- Cost Intelligence: Track token usage and costs per operation
- Integrations: Native support for LangChain and OpenAI
Documentation
Full documentation available at https://agentlens.vectry.tech/docs
License
MIT © 2026 Vectry