Skip to main content

Regression testing and monitoring for AI agents — record every run, test every change.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentqa_sdk-0.1.0.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentqa_sdk-0.1.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file agentqa_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: agentqa_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for agentqa_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6bc2918fc527eb572d9aa6ca1b4562d048bdff8985dd313af2ba297a00c3f71e
MD5 d0ef4281d17388fd35b73df4c5d614ef
BLAKE2b-256 9229700dc7fcb8fe76a2bcee59ed63934014a08a716a01f30f1803d8be3bd548

See more details on using hashes here.

File details

Details for the file agentqa_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: agentqa_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for agentqa_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5eae7c6a62b8149c6b23300a3a0b74f7a3eb0cac5f62c4ba6c56418d99cb383e
MD5 bf6acaf715bd96364060e50f85f4d1a7
BLAKE2b-256 55ef2d1f726f455fada112342022b31427b757f7fba3315e0a20f20103feab8a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page