Analyze Evals
Changed onAnalysis for evals with advanced filtering and aggregated statistics.
This endpoint allows analyzing across both eval metadata and score run performance data, providing comprehensive filtering capabilities and aggregated statistics for each eval.
Args: analysis_request (EvalAnalysisRequest): Analysis parameters and filters including: - Eval metadata filters (name, type, status, language, etc.) - Score run performance filters (pass rate, run count, etc.) - Sorting and pagination options
Returns: EvalAnalysisResponse: Paginated results with matching evals and their statistics
Raises: AymaraAPIError: If the request is invalid or analysis parameters are malformed
Example: POST /api/v2/eval_analysis { "name": "safety", "eval_type": "safety", "min_pass_rate": 0.8, "has_score_runs": true, "sort_by": "pass_rate", "sort_order": "desc", "limit": 20, "offset": 0 }
Request
- Base URLhttps://api.aymara.ai
- Auth
- API key in header x-api-key
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
OK
Changes
- breaking
removed the required property
/////////from the response with the status - breaking
removed the required property
///////////from the response with the status
- breaking
- info
added
subschema #1subschema #4to the///response propertyanyOflist for the response status - info
removed
subschema #1subschema #4from the///response propertyanyOflist for the response status
- info