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

Uploaded Python 3

File details

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

File metadata

  • Download URL: retrace_sdk-0.1.4.tar.gz
  • Upload date:
  • Size: 7.1 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.4.tar.gz
Algorithm Hash digest
SHA256 d8e013455896ed03191d384e35712a5962ba5116c4ee64d30bb52f51beedcd65
MD5 02eef3ebadc684b987b01b79b45871fa
BLAKE2b-256 4372808ab89756e0fe5920d908c8df27a9a07c0b7bd9f5745a9580bce047d71a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: retrace_sdk-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 73aa56720a80365d2289aed74ea030e708d23270acc1977eb011ad418ce471bc
MD5 c73c25b0132a3664313bd0cfddc59a18
BLAKE2b-256 6ef313ed7b848af1e8c38a1c06df49feb2764bd39019950f51a1c9f62769f404

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