Test your AI agents. Catch failures before your users do.
Quick Links: Quickstart · Assertions · Failure Types · Contributing
pip install playagent[all]
from playagent import record
from playagent.adapters.openai import OpenAI
client = OpenAI()
@record
def run_agent(user_input: str):
return client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": user_input}],
)
session sess_a1b2c3d4
agent run_agent
started 2026-04-05 09:14:32
duration 3.24s
status passed
──────────────────────── turn 1 ─────────────────────────
model gpt-4o
latency 812ms
▸ user
What's the weather in Lagos today?
▸ assistant
I'll look that up for you.
⬡ tool call get_weather
location "Lagos, NG"
units "celsius"
| Command | What it does |
|---|---|
playagent trace list |
Lists recent trace sessions. |
playagent trace view <trace_id> |
Shows turn-by-turn trace details. |
playagent report |
Shows aggregate pass/fail and failure breakdowns. |
playagent report --format json |
Emits report stats as JSON for CI pipelines. |
playagent --version |
Prints installed PlayAgent version. |
Why PlayAgent
- You stay local-first. PlayAgent writes to SQLite on your machine; nothing is sent to a hosted dashboard by default.
- You can test behavior, not only outputs. Assertions check tool-call order, parameters, and call counts directly.
- If you already use LangSmith, PlayAgent is a smaller option for local SDK-level checks; if you need hosted traces, collaboration, and observability dashboards, LangSmith is the better fit.
License
MIT
Metadata
Release files for playagent 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| playagent-0.1.0.tar.gz | 30.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| playagent-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 55.4 kB
Release files / playagent-0.1.0.tar.gz
| Download URL | playagent-0.1.0.tar.gz |
|---|---|
| Size | 30.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fda7a0b59848a3d0c4753a693634eb54881978d608f352267b777a7965de6003
|
|
BLAKE2b-256 checksum How to use checksums |
f346f3cd8fe570cb86a8df33ee84b2e4224a9691a81bf4fc28aec88061a06c1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / playagent-0.1.0-py3-none-any.whl
| Download URL | playagent-0.1.0-py3-none-any.whl |
|---|---|
| Size | 24.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
91c528deb6f806e7f304961dae3a256af4c0ec2eff1b2a25de9ed5c478e8a7b3
|
|
BLAKE2b-256 checksum How to use checksums |
2efbe16dc136038af09f7a7037bdb984e69b59ec2023665ff61714a866e66cd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for playagent 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.