Skip to main content

Record, replay, fork & share AI agent executions

Project description

retrace-sdk

The execution replay engine for AI agents. Record every LLM call, tool invocation, and error your AI agent makes. Replay step-by-step. Fork from any point. Share interactive traces via URL.

Install

pip install retrace-sdk

Requires Python 3.10+.

Quick Start

import retrace

retrace.configure(api_key="rt_live_...")  # Get your key at retrace.yashbogam.me/settings

@retrace.record(name="my-agent")
def run_agent(prompt: str):
    response = client.chat.completions.create(
        model="gpt-5.5",
        messages=[{"role": "user", "content": prompt}]
    )
    return response.choices[0].message.content

run_agent("What is quantum computing?")

Auto-Instrumentation

Retrace automatically captures LLM calls from all major providers:

# OpenAI — captured automatically
# Anthropic — captured automatically
# Google Gemini — captured automatically

No extra setup needed. Install the provider SDK alongside retrace-sdk and calls are captured.

Features

  • Record — One decorator captures every LLM call, tool call, and error
  • Replay — Step through executions with play/pause/speed controls
  • Fork — Branch from any step, modify input, watch a new path diverge
  • Share — Publish traces as shareable "tapes" with interactive playback
  • Retrace AI — Built-in evaluations, memory extraction, and semantic search

API Key

A Retrace API key (rt_live_...) is required. Get yours free at retrace.yashbogam.me/settings.

Links

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

retrace_sdk-0.1.7.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

retrace_sdk-0.1.7-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file retrace_sdk-0.1.7.tar.gz.

File metadata

  • Download URL: retrace_sdk-0.1.7.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for retrace_sdk-0.1.7.tar.gz
Algorithm Hash digest
SHA256 95330e5a73ae43d517c0473338a394d3537e92eb38a3d9c64b14141cdea0ffb6
MD5 319609e0cd7945b2766d2a5de24ad83c
BLAKE2b-256 76ef2fa7dc99b23302dcb02e5ccf805223c5fca189476c809d165699d3cafea1

See more details on using hashes here.

File details

Details for the file retrace_sdk-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: retrace_sdk-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for retrace_sdk-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c9d78e5f4a683c2ff4d1716992821ea322d6bb543acbd4efbeae371f568e3694
MD5 48a3786980862423c4d1e786e8df2e60
BLAKE2b-256 a3978cec5cac500bc7a19b3aa69f61fdc795dfd982b1f0f1be04459d7fd3ad41

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