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

import retrace

retrace.configure(api_key="rt_live_...")

@retrace.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.6.tar.gz (8.9 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.6-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: retrace_sdk-0.1.6.tar.gz
  • Upload date:
  • Size: 8.9 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.6.tar.gz
Algorithm Hash digest
SHA256 1badd4f740a2cf8ad1b61ed6b27e7a1e8bf5904ae2900ba7b0a326aaff3f7de6
MD5 c10f8d3240de41a5f74176e52eee6706
BLAKE2b-256 465190ad9d7d0fad7074578abac3329158767e0b5b5078cbbe618824b1e9ffd7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: retrace_sdk-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1f213eba2046446d73e4d60757b03be53d1d92ecb271c1dac7a47be7b1a15de3
MD5 88c4fd2c6a05d59e2585d849cb206cfc
BLAKE2b-256 0a6ce2a7bf53ca83e54aac61ce01c696ce03fe0782d82f47cc1d4ec3f6c1296d

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