Skip to main content

Observability SDK for AI agents — auto-traces LangChain, CrewAI, OpenAI Agents, and any custom agent.

Project description

traceai

Observability SDK for AI agents. Auto-traces LangChain, CrewAI, OpenAI Agents, and any custom agent — with a full dashboard for latency, cost, errors, and LLM-as-judge scoring.

Install

pip install traceai

Quick start

import traceai

traceai.init(
    api_key  = "tai-xxxxxxxxxxxxxxxxxxxx",   # from your Trace AI dashboard
    project  = "my-agent",
)

Integrations

LangChain / LangGraph

from traceai.langchain import Tracer

agent = AgentExecutor(agent=..., tools=..., callbacks=[Tracer()])

CrewAI

from traceai.crewai import trace_crew

result = trace_crew(crew, inputs={"topic": "AI trends"})

OpenAI Agents SDK

from traceai.openai_agents import Processor
from agents import add_trace_processor

add_trace_processor(Processor())

Any custom agent

from traceai.universal import Trace, span

with Trace("my_agent"):
    with span("tool_call", "web_search"):
        result = search(query)

Local dev (no API key needed)

Run the backend locally and traces appear in the dashboard automatically — no key required:

# No init() needed — defaults to http://127.0.0.1:8000
from traceai.langchain import Tracer

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

forevr-0.1.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

forevr-0.1.0-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file forevr-0.1.0.tar.gz.

File metadata

  • Download URL: forevr-0.1.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for forevr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 93d9d6272634e5f7d22924371dd2f487c156856a8b2dc702d5b815d2cf600780
MD5 b484151cd228660f9e51bff3885106a5
BLAKE2b-256 e202a661d051d892b8b37236f77e2a1dea033fe6f0c8ad848db96d6b0f2b1c9f

See more details on using hashes here.

File details

Details for the file forevr-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: forevr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for forevr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31010c49bb761eb43c4d945cc8bd4447997d7a4f4876f9e3eaed6a03ac24b857
MD5 7997d2980128af9c6a49db00c9253a24
BLAKE2b-256 5452a72a8ea173843e75047bd95938a0803c2ecb0aaba4ebc85c3381d310fe6e

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