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_idfrom a traced execution
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.
AsyncJobHandle
playground()
Lightweight single-item failure analysis for quick testing.
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.
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_trends()
Get failure trends over time.
get_security_insights()
Get security-specific insights from FA runs.
get_projects()
List all projects that have FA runs.
Related
- Models Reference —
FARunResult,FATag,FASummary,FABucket - Failure Analysis Workflow — Step-by-step guide
- Failure Taxonomy — Understanding failure buckets
- Root Cause Detection — How detection works