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
Release history Release notifications | RSS feed
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.5.tar.gz
(8.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file retrace_sdk-0.1.5.tar.gz.
File metadata
- Download URL: retrace_sdk-0.1.5.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0228e882921a15511c8ee5a9e82898c27abe0403e1bd572e875b5ed284c8ee7
|
|
| MD5 |
e292e2915970b1beb8c09aba4c8d54f0
|
|
| BLAKE2b-256 |
bdf076bc42f9c337458d1784bc0da7865512df4e615e65e131e929b94600dbcc
|
File details
Details for the file retrace_sdk-0.1.5-py3-none-any.whl.
File metadata
- Download URL: retrace_sdk-0.1.5-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9d366b5362242057782d0130f2d8917870d91a48f869f3ba75fd5937964db97
|
|
| MD5 |
d26c99ec3cc9b238f251542b6eccefec
|
|
| BLAKE2b-256 |
e956212ba03d24b1841ea17d7cc1f5836d1af7a7d1d4096d157e442b935c71d3
|