Current collected state Current
Observed since 20 Oct, 21:28 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Record/replay testing for LLM agents - VCR.py but for LLM SDKs
Record/replay testing for LLM agents. Think "VCR.py but for LLM SDKs" with semantic matching.
pip install agentape
import agentape
from openai import OpenAI
# Wrap the client
client = agentape.wrap(OpenAI())
# Record interactions
with agentape.record("tapes/my_flow.yaml"):
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Hello"}]
)
# Replay interactions (no API calls made)
with agentape.replay("tapes/my_flow.yaml"):
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Hello"}]
)
import agentape
@agentape.use_tape("tapes/{test_name}.yaml")
def test_my_feature(openai_client):
response = openai_client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Hello"}]
)
assert "hello" in response.choices[0].message.content.lower()
Run tests with:
pytest tests/ --tape-mode=record # Record new tapes
pytest tests/ --tape-mode=replay # Replay existing (default)
pytest tests/ --tape-mode=off # Pass-through, no taping
MIT
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 7 Dec 2025 | 10 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 21:28 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:1ec8d1082806b5e16db966db56f695958314940a6d31e5969f9b0335ae1463ee