Skip to main content

The debugger for AI agents — add 2 lines, replay every run, get the plain-English root cause and exact fix in 30 seconds.

Project description

vorlo-trace

The debugger for AI agents. Add 2 lines of code to see exactly which step of your agent failed, the plain-English root cause, and the exact fix — in 30 seconds.

Works with LangChain and the OpenAI Agents SDK.

Quick Start

pip install vorlo-trace

LangChain

import vorlo_trace
from langchain.agents import create_tool_calling_agent, AgentExecutor

# 1. Initialize Vorlo (or set VORLO_API_KEY env var)
vorlo_trace.init(api_key="vrlo_your_key_here", agent_name="my-agent")

# 2. Add the handler to your agent
handler = vorlo_trace.get_handler()
result = agent_executor.invoke(
    {"input": "Check my latest emails"},
    config={"callbacks": [handler]}
)

OpenAI Agents SDK

import vorlo_trace
from agents import Agent, Runner

# 1. Initialize Vorlo (or set VORLO_API_KEY env var)
vorlo_trace.init(api_key="vrlo_your_key_here", agent_name="my-agent")

# 2. Instrument once — every Runner.run() is traced from here on
vorlo_trace.instrument_openai_agents()

result = await Runner.run(agent, "Check my latest emails")

Tool calls, handoffs between agents, and triggered guardrails all appear as numbered steps — failures carry a plain-English diagnosis and fix.

That's it. Open vorlo.dev to see every step your agent took, with:

  • Step Replay — chronological view of every tool call
  • Root Cause — plain English explanation, not raw HTTP errors
  • Fix Hints — specific, actionable steps to resolve the issue
  • LLM Reasoning — why the agent made each decision

What You See

Without Vorlo:

ToolError: 403

With Vorlo:

Stripe token expired after retry chain caused stale auth context.
Your Stripe OAuth token was issued 23h ago — Stripe tokens expire at 24h.
Fix: Reconnect your Stripe account in Settings → Integrations.

How It Works

Vorlo wraps your agent's callback system. It captures:

  1. Every tool call (input, output, latency)
  2. Every LLM reasoning step (chain of thought)
  3. Every error (translated to plain English with fix hints)
  4. Cross-step context (what data flowed between steps)

All sends are fire-and-forget — Vorlo never slows or crashes your agent, even if the Vorlo server is unreachable.

Features

  • 2-line integration — works with any LangChain agent or the OpenAI Agents SDK
  • Sensor/Actuator classification — reads vs writes, clearly labeled
  • Cross-step root cause — understands data flow between steps
  • OTel-compatible — trace_id, span_id for enterprise export
  • Zero impact — async sends, daemon threads, silent failures

MCP server — debug from inside your editor

The package ships an MCP server (vorlo-mcp), so Claude Code / Cursor / any MCP client can ask Vorlo "why did my last run fail?" without leaving the editor:

pip install vorlo-trace
claude mcp add vorlo --env VORLO_API_KEY=vrlo_... -- vorlo-mcp
# or without installing first:
claude mcp add vorlo --env VORLO_API_KEY=vrlo_... -- uvx --from vorlo-trace vorlo-mcp

Tools: why_did_my_last_run_fail, get_session_diagnosis, list_recent_sessions, get_failure_clusters.

Configuration

vorlo_trace.init(
    api_key="vrlo_...",             # or set VORLO_API_KEY env var
    server_url="https://...",       # or set VORLO_SERVER_URL env var
    agent_name="order-processor",   # shown in dashboard
    verify_ssl=True,                 # or set VORLO_VERIFY_SSL=false for local proxy testing
)

Environment Variables

Variable Description
VORLO_API_KEY Your Vorlo API key
VORLO_SERVER_URL Custom server URL (default: production)
VORLO_VERIFY_SSL Set to false only for local corporate proxy testing
VORLO_DEBUG Set to 1 for debug logging to stderr

License

MIT — see LICENSE

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

vorlo_trace-0.4.0.tar.gz (43.1 kB view details)

Uploaded Source

Built Distribution

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

vorlo_trace-0.4.0-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

Details for the file vorlo_trace-0.4.0.tar.gz.

File metadata

  • Download URL: vorlo_trace-0.4.0.tar.gz
  • Upload date:
  • Size: 43.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for vorlo_trace-0.4.0.tar.gz
Algorithm Hash digest
SHA256 54722308c02abcbea253ce2b80e096b154e84b5ef9cdef9b2c59c226c44bc2d8
MD5 350085281e2788b89dc716c9006e8cb6
BLAKE2b-256 8b63898bd42d0263821926089b122e4d6f9cc576d449803935f05b3a3cae0288

See more details on using hashes here.

File details

Details for the file vorlo_trace-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: vorlo_trace-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 31.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for vorlo_trace-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5595c5920963c17a082fe344c731590ef5e7f3d4cd546f7fcd565579bec9dfa8
MD5 2627c5267478322a0b4ddcffb990156c
BLAKE2b-256 3bc376c07a589c3c1ec6e50636b690ad73b88397c9c2ff00423685ed1fdb0531

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