Skip to main content

Overview

ValiqorFAClient is the core of Valiqor — it finds why your AI app fails, not just that it fails. It analyzes AI inputs and outputs to detect failure patterns, categorize them into a taxonomy of buckets, and provide root cause analysis with severity scoring. Two modes of operation:
  • Dataset mode — pass existing inputs/outputs directly as a list of dicts
  • Trace mode — pass a trace_id from a traced execution
Or standalone:
Supports context manager protocol: with ValiqorFAClient(...) as fa:

Constructor


Core Methods

run()

Run failure analysis. Auto-polls if the backend returns an async response.
Returns: FARunResult

run_async()

Always returns an AsyncJobHandle, even if the backend responds synchronously.
Returns: AsyncJobHandle

playground()

Lightweight single-item failure analysis for quick testing.
Rate limited: 10 calls/day, 2 calls/minute.

Result Retrieval

get_run()

Get a completed FA result by run ID.

get_run_inputs()

Get original input items with per-item failure statistics.

get_tags()

Get failure tags for a run, with optional filtering.

update_tag()

Update a failure tag’s review status or link it to an external issue tracker.
Returns: Dict with tag_id, is_reviewed, reviewed_at, issue_url, message.
At least one of is_reviewed or issue_url must be provided.

Run History

list_runs()

List FA runs with pagination and filtering.

get_run_count()


Job Management

poll_status()

Check the status of an async FA run.

cancel_run()

Cancel a running FA job.

Taxonomy

get_taxonomy()

Get the full failure taxonomy — all buckets with their subcategories.

get_subcategories()

Get subcategories with optional filtering.

get_bucket()

Get details for a specific failure bucket.

Analytics

get_insights()

Get aggregated failure insights for a project over a time period.
Get failure trends over time.

get_security_insights()

Get security-specific insights from FA runs.

get_projects()

List all projects that have FA runs.