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

Quick Start

from retrace_sdk import configure, record

configure(api_key="rt_live_...")

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

run_agent("What is quantum computing?")

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

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.3.tar.gz (7.2 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.3-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: retrace_sdk-0.1.3.tar.gz
  • Upload date:
  • Size: 7.2 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.3.tar.gz
Algorithm Hash digest
SHA256 35b78c2d339361543a8ed4253df3c45b6fc49957ce8e567bfe86b13aea3994d4
MD5 9299e0fd29c888f3019ac3bfe2cc0ef1
BLAKE2b-256 9acdc063f8dac14761e8043e174f8db2a5f5e09eb4c936ee098cc55e089525a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: retrace_sdk-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 9.4 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ad8cb23c8cba6a247bf7f5cd00fd7c211a11eda3ec2c7978becd0108cc0cbb5f
MD5 28d60ed1d3a0050384077fdd50a278c5
BLAKE2b-256 a82a6cb0d07b789925907abf005ef39795aac9e430ac5c3d323fb91a81e7b1da

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