Uh oh!
There was an error while loading. Please reload this page.
feat: add ground truth reference inputs for on-demand evaluation - #732
Conversation
Package TarballHow to installnpm install https://github.com/aws/agentcore-cli/releases/download/pr-732-tarball/aws-agentcore-0.4.0.tgz |
Coverage Report
|
Bump @aws-sdk/client-bedrock-agentcore and @aws-sdk/client-bedrock-agentcore-control from ^3.893.0 to ^3.1020.0. The SDK now includes EvaluationReferenceInput in its model, so we pass it directly to EvaluateCommand instead of injecting via middleware.
Uh oh!
There was an error while loading. Please reload this page.
jariy17
commented
Mar 30, 2026
Testing ResultsVerified all new GT features against a deployed runtime ( CLI flags tested
Custom evaluators tested
SDK upgrade verified
Other checks
|
Hweinstock
left a comment
There was a problem hiding this comment.
Some nits and question on service behavior. Otherwise lgtm.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hweinstock
left a comment
There was a problem hiding this comment.
Slightly confused on the customer experience, but thats likely because I'm new to evals. The changes themselves lgtm.
Uh oh!
There was an error while loading. Please reload this page.
Cover 13 PRs merged to main since the initial docs audit (March 28): - import subcommands: runtime, memory, evaluator, online-eval (#763, #780) - invoke/dev exec mode with --exec and --timeout (#750) - code-based evaluator support with --type, --lambda-arn, --timeout (#739) - ground truth eval inputs: --assertion, --expected-trajectory, --expected-response (#732) - memory record streaming: --data-stream-arn, --stream-content-level (#531, #534) - create --skip-install flag (#782) - fetch access --identity-name option (#774)
Summary
Adds ground truth reference inputs to on-demand evaluation (
run eval), allowing users to specify expected agent behavior for more precise evaluation.New CLI flags
-A, --assertion <text...>— Assertion the agent should satisfy (repeatable)--expected-trajectory <names>— Expected tool calls in order (comma-separated)--expected-response <text>— Expected agent response textTUI changes
run evalflow (appears when exactly 1 session is selected){assertions},{expected_tool_trajectory},{actual_tool_trajectory},{expected_response})Implementation
evaluationReferenceInputspassed through to theevaluate()API callreferenceInputssummary in both CLI and TUI outputtemp: use middleware...) is a temporary workaround — the SDK does not yet includeevaluationReferenceInputsin its model, so we inject it via Smithy middleware. Remove when SDK is updated.Test plan
npx tsc --noEmit— cleannpm run lint— 0 errors