Skip to main content

agentqa-sdk

Regression testing and monitoring for AI agents — record every run, test every change, and catch failures before they break real workflows.

Install

pip install agentqa-sdk

(The package installs as agentqa-sdk; the import name is agentqa.)

Configure

export AGENTQA_API_KEY=aq_live_...        # from your project's Settings page
export AGENTQA_API_URL=https://your-agentqa-deployment

Record a run

import agentqa

with agentqa.track_run(
    agent_name="sales_research_agent",
    task_input="Research this lead and update the CRM",
) as run:
    run.log_tool_call("crm.lookup", {"company": "Acme"}, {"id": 42})
    run.log_llm_call("claude-sonnet-5", tokens_in=800, tokens_out=200, cost_usd=0.01)
    run.log_screenshot("page.png")          # browser agents
    run.set_output("Lead updated.")
    run.set_cost(0.014)

Every step, tool call, screenshot, cost, and error appears in your AgentQA dashboard seconds later. If your agent raises, the run is recorded as errored with the traceback — and the exception is re-raised untouched.

The SDK never blocks or crashes your agent: steps are sent from a background thread with retries, and network failures degrade to dropped telemetry, not broken automation.

Run a test suite

import agentqa

def my_agent(task_input: str) -> str:
    ...  # your agent, any framework
    return "final answer"

summary = agentqa.run_suite(my_agent, suite_id="...", label="prompt-v4")
print(summary)  # {'suite_run_id': ..., 'cases': 20, 'executed': 20, 'crashed': 0}

Each test case executes locally in your environment — AgentQA never runs your code or holds your credentials. Verdicts and the failure diagnosis appear on the suite run's page as results stream in.

Redact sensitive data

with agentqa.track_run(..., redact=[r"[\w.+-]+@[\w-]+\.[\w.]+"]) as run:
    ...

Redaction runs client-side, before anything leaves your environment. Pass regex patterns or a callable (str) -> str.

Metadata

Release files for agentqa-sdk 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 agentqa-sdk 0.1.0
File Size Uploaded Provenance
agentqa_sdk-0.1.0.tar.gz 11.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for agentqa-sdk 0.1.0
File Interpreter ABI Platform
agentqa_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.2 kB

Release files / agentqa_sdk-0.1.0.tar.gz

Download URL agentqa_sdk-0.1.0.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6bc2918fc527eb572d9aa6ca1b4562d048bdff8985dd313af2ba297a00c3f71e
BLAKE2b-256 checksum
How to use checksums
9229700dc7fcb8fe76a2bcee59ed63934014a08a716a01f30f1803d8be3bd548
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

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

Download URL agentqa_sdk-0.1.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5eae7c6a62b8149c6b23300a3a0b74f7a3eb0cac5f62c4ba6c56418d99cb383e
BLAKE2b-256 checksum
How to use checksums
55ef2d1f726f455fada112342022b31427b757f7fba3315e0a20f20103feab8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for agentqa-sdk 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