Evaluate Trace
Evaluation
Evaluate Trace
Evaluate a trace directly using the evaluation engine.
This endpoint accepts a complete trace JSON (with messages, spans, retrievals) and evaluates it using the specified metrics. It extracts the evaluation context from the trace structure automatically.
- project_name: Name of the project (resolved to project_id via auth org)
- trace: Complete trace JSON data (with messages, spans, retrievals, etc.)
- metrics: List of metric keys to compute
- run_name: Optional name for this evaluation run
POST
Evaluate Trace
Authorizations
Valiqor API key. Pass as Bearer token: Authorization: Bearer vq-xxxxxxxxxxxxxxxxxxxx
Body
application/json
Request model for trace-based evaluation endpoint
Project name (will be created if doesn't exist)
Complete trace JSON data (with messages, spans, retrievals)
Metric keys to compute
Optional run name
Evaluation configuration
Additional metadata
Optional OpenAI key override
Response
Successful Response