Analyze Evals
Analysis 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 body
Response
OK
Changes
Changed in 8 of the 25 revisions of this API.312
- ▲
removed the required property
results/items/eval/ai_instructions/anyOf[subschema #2: AgentInstructions]/tools/oneOf[subschema #1: ToolArray]/value/items/idfrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
results/items/eval/ai_instructions/anyOf[subschema #3: WorkflowInstructions]/instructions/items/tools/oneOf[subschema #1: ToolArray]/value/items/idfrom the response with the200statusresponse-required-property-removed
- ▲
- ○
added
subschema #1subschema #4to theresults/items/eval/ai_instructionsresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
removed
subschema #1subschema #4from theresults/items/eval/ai_instructionsresponse propertyanyOflist for the response status200response-property-any-of-removed
- ○
- ○
added the optional property
results/items/eval/ai_instructions/anyOf[subschema #2: AgentInstructions]/agent_nameto the response with the200statusresponse-optional-property-added
- ○
added
WorkflowInstructionsto theresults/items/eval/ai_instructionsresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
- ▲
added
ToolArrayToolDictToolStringto theresults/items/eval/ai_instructions/anyOf[subschema #2: AgentInstructions]/toolsresponse propertyoneOflist for the response status200response-property-one-of-added
- ○
removed
ToolsListToolDictToolsStringfrom theresults/items/eval/ai_instructions/anyOf[subschema #2: AgentInstructions]/toolsresponse propertyanyOflist for the response status200response-property-any-of-removed
- ○
added discriminator to
results/items/eval/ai_instructions/anyOf[subschema #2: AgentInstructions]/toolsresponse property for the response status200response-property-discriminator-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added
subschema #1subschema #3to theresults/items/eval/ai_instructions/anyOf[subschema #2: AgentInstructions]/toolsresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
removed
subschema #1subschema #3from theresults/items/eval/ai_instructions/anyOf[subschema #2: AgentInstructions]/toolsresponse propertyanyOflist for the response status200response-property-any-of-removed
- ○
- ○
added
subschema #1to theresults/items/eval/ai_instructions/anyOf[subschema #2: AgentInstructions]/toolsresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
removed
subschema #2from theresults/items/eval/ai_instructions/anyOf[subschema #2: AgentInstructions]/toolsresponse propertyanyOflist for the response status200response-property-any-of-removed
- ○
- ○
added
AgentInstructionsto theresults/items/eval/ai_instructionsresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
- ○
endpoint added
endpoint-added
- ○