Skip to main content

agent-trajectory-replay-py

Replay and diff AI agent event trajectories. Pure Python, zero deps. Python port of @mukundakatta/agent-trajectory-replay.

pip install agent-trajectory-replay-py
from agent_trajectory_replay import summarize_trajectory, diff_trajectories, replay_trajectory

events = [{"type": "tool_call", "tool": "search"}, {"type": "final", "content": "ok"}]
summarize_trajectory(events)         # TrajectorySummary(steps=2, tool_calls=1, errors=0, final_output='ok')
diff_trajectories(events, events)    # []  (no diff)
replay_trajectory(events, {"final": lambda e, s: s.update({"a": e["content"]})})
# {"a": "ok"}

License

MIT

Metadata

Release files for agent-trajectory-replay-py 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agent-trajectory-replay-py 0.1.0
File Size Uploaded Provenance Actions
agent_trajectory_replay_py-0.1.0.tar.gz 3.6 kB Without provenance Details for agent_trajectory_replay_py-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agent-trajectory-replay-py 0.1.0
File Interpreter ABI Platform Actions
agent_trajectory_replay_py-0.1.0-py3-none-any.whl Python 3 none any Details for agent_trajectory_replay_py-0.1.0-py3-none-any.whl

Total release size: 7.3 kB

Release files / agent_trajectory_replay_py-0.1.0.tar.gz

Download URL agent_trajectory_replay_py-0.1.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
af7fcfc9a2b1ba3493e76ecd7bb4ca56b6032cb7d70c59bae56556366c19f358
BLAKE2b-256 checksum
How to use checksums
35a276f1de1e45e864ba796a2c3ee84057412714651398303a664c384e95a55b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / agent_trajectory_replay_py-0.1.0-py3-none-any.whl

Download URL agent_trajectory_replay_py-0.1.0-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c00f5e23f180b7cb64e1c08d4ef3683d825640e8d245da501067d650d8c2037a
BLAKE2b-256 checksum
How to use checksums
bbfcbeb85e8ed00d5b7f706a52b86411911a29a6023924cdefa733d40ac4d04b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Security for agent-trajectory-replay-py 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page