Skip to content

feat(evaluation): surface batch evaluation insight results - #704

Merged
nborges-aws merged 2 commits into
mainfrom
feat/batch-insight-results
Oct 20, 2026
Merged

nborges-aws merged 2 commits into
mainfrom
feat/batch-insight-results

Conversation

@vchen5938

Copy link
Copy Markdown
Contributor

GetBatchEvaluation returns insightResults when a batch evaluation includes an analysis evaluator such as Builtin.FailureAnalysis, but BatchEvaluationRunner built its result from a fixed set of response fields and dropped them.

Add models for the insight shapes and an insight_results field on BatchEvaluationResult. An absent field and an empty list mean different things, so the runner keeps them distinct: None when no analysis evaluator ran or its results could not be read, and an empty list when the analysis ran and found no failures.

The insight shapes reach the client through the service model that botocore ships, so raise the boto3 and botocore floors to the first release that carries them.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@vchen5938
vchen5938 requested a review from a team October 19, 2026 23:14
@vchen5938
vchen5938 deployed to auto-approve October 19, 2026 23:14 — with GitHub Actions Active
@vchen5938
vchen5938 deployed to auto-approve October 19, 2026 23:14 — with GitHub Actions Active
@vchen5938
vchen5938 deployed to auto-approve October 19, 2026 23:14 — with GitHub Actions Active
@vchen5938
vchen5938 deployed to auto-approve October 19, 2026 23:14 — with GitHub Actions Active
@vchen5938
vchen5938 deployed to auto-approve October 19, 2026 23:14 — with GitHub Actions Active
@vchen5938
vchen5938 deployed to auto-approve October 19, 2026 23:14 — with GitHub Actions Active
@vchen5938
vchen5938 deployed to auto-approve October 19, 2026 23:14 — with GitHub Actions Active
@vchen5938
vchen5938 deployed to auto-approve October 19, 2026 23:14 — with GitHub Actions Active
@github-actions github-actions Bot added the size/m PR size: M label Oct 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

✅ No Breaking Changes Detected

No public API breaking changes found in this PR.

@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label Oct 19, 2026
@agentcore-devx-automation

Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label Oct 19, 2026

@nborges-aws nborges-aws left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI is failling, looks like deepeval version in the eval runner is outside of the range that our repo allows.

Additionally, can we add an example to docs/examples/

GetBatchEvaluation returns insightResults when a batch evaluation includes
an analysis evaluator such as Builtin.FailureAnalysis, but
BatchEvaluationRunner built its result from a fixed set of response fields
and dropped them.

Add models for the insight shapes and an insight_results field on
BatchEvaluationResult. An absent field and an empty list mean different
things, so the runner keeps them distinct: None when no analysis evaluator
ran or its results could not be read, and an empty list when the analysis
ran and found no failures.

The insight shapes reach the client through the service model that botocore
ships, so raise the boto3 and botocore floors to the first release that
carries them.
@vchen5938
vchen5938 force-pushed the feat/batch-insight-results branch from 3778e32 to b45367d Compare October 20, 2026 05:35
@github-actions github-actions Bot added size/m PR size: M and removed size/m PR size: M labels Oct 20, 2026
@vchen5938
vchen5938 deployed to auto-approve October 20, 2026 05:35 — with GitHub Actions Active
@vchen5938
vchen5938 deployed to auto-approve October 20, 2026 05:35 — with GitHub Actions Active
@vchen5938
vchen5938 deployed to auto-approve October 20, 2026 05:35 — with GitHub Actions Active
@vchen5938
vchen5938 deployed to auto-approve October 20, 2026 05:35 — with GitHub Actions Active
@vchen5938
vchen5938 deployed to auto-approve October 20, 2026 05:35 — with GitHub Actions Active
@vchen5938
vchen5938 deployed to auto-approve October 20, 2026 05:35 — with GitHub Actions Active
@vchen5938
vchen5938 deployed to auto-approve October 20, 2026 05:35 — with GitHub Actions Active
@vchen5938
vchen5938 deployed to auto-approve October 20, 2026 05:35 — with GitHub Actions Active
@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label Oct 20, 2026
@agentcore-devx-automation

Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label Oct 20, 2026
The insight results example added two evaluators but said only "add one",
leaving it unclear which of them produces the insights.
@github-actions github-actions Bot added size/m PR size: M and removed size/m PR size: M labels Oct 20, 2026
@vchen5938
vchen5938 deployed to auto-approve October 20, 2026 06:05 — with GitHub Actions Active
@vchen5938
vchen5938 deployed to auto-approve October 20, 2026 06:05 — with GitHub Actions Active
@vchen5938
vchen5938 deployed to auto-approve October 20, 2026 06:05 — with GitHub Actions Active
@vchen5938
vchen5938 deployed to auto-approve October 20, 2026 06:05 — with GitHub Actions Active
@vchen5938
vchen5938 deployed to auto-approve October 20, 2026 06:05 — with GitHub Actions Active
@vchen5938
vchen5938 deployed to auto-approve October 20, 2026 06:05 — with GitHub Actions Active
@vchen5938
vchen5938 deployed to auto-approve October 20, 2026 06:05 — with GitHub Actions Active
@vchen5938
vchen5938 deployed to auto-approve October 20, 2026 06:05 — with GitHub Actions Active
@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label Oct 20, 2026
@agentcore-devx-automation

Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label Oct 20, 2026
@vchen5938

Copy link
Copy Markdown
Contributor Author

CI is failling, looks like deepeval version in the eval runner is outside of the range that our repo allows.

Additionally, can we add an example to docs/examples/

I have added examples. The CI failure seems unrelated to my change and it's pre-existing (see this PR). We can discuss the failure separately.

@nborges-aws
nborges-aws merged commit 147c5b3 into main Oct 20, 2026
43 of 44 checks passed

This branch was successfully deployed

1 active deployment
auto-approve — 22edb1a1 Deployed Oct 20, 2026 by vchen5938 via Test (payments) #1640
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/m PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants