Skip to content

Source AgentCore Evaluations

Reese Hodge edited this page Oct 30, 2026 · 2 revisions

Source: AgentCore Evaluations

AWS's managed agent-evaluation service, read on 2026-10-18 from the developer guide and its subpages. It was ingested because it is the obvious managed alternative to the offline judge script that spec 003's S1 golden-set spike uses (see Concept-Personality-Gate), and because spec 001 originally named it as the personality-gate tool (Decision-Testing-Strategy).

Status: researched, not adopted. It is an open question for spec 003, not a decision.

What it is

  • Scores OpenTelemetry/OpenInference traces from Strands and LangGraph agents with LLM-as-a-judge. Traces are converted to a unified format first. The release notes add TypeScript Strands, OpenAI Agents and the Vercel AI SDK.
  • Generally available. Thirteen built-in evaluators, plus ground-truth support: reference answers, behavioral assertions and expected tool sequences.
  • It is managed through the AgentCore CLI, the AgentCore Python SDK, the console or the AWS SDKs. CloudFormation has AWS::BedrockAgentCore::Evaluator and AWS::BedrockAgentCore::OnlineEvaluationConfig. The CDK alpha module @aws-cdk/aws-bedrock-agentcore-alpha wraps both (experimental).
  • Default quotas: 1,000 evaluation configurations per Region, and up to 1M tokens per minute per account in large Regions.

Evaluation modes

Mode How spans arrive Ground truth Fit for S1
Online Samples live traffic from CloudWatch Not supported No: S1 is offline
On-demand Caller passes spans to the Evaluate API, synchronously evaluationReferenceInputs Yes
Batch Asynchronous job; the service finds sessions in CloudWatch Logs sessionMetadata Yes, and cheaper
Dataset Runner drives the agent through a dataset, then evaluates Per case Yes, but public preview, Python 3.10+ only

Evaluator kinds

  • Built-in: Helpfulness, Correctness, GoalSuccessRate, ToolSelectionAccuracy, ToolParameterAccuracy and three Trajectory matchers. They are public, with ARNs like arn:aws:bedrock-agentcore:::evaluator/Builtin.Helpfulness.
  • Third-party: DeepEval and AutoEval evaluators, selected by ID.
  • Custom LLM-as-judge: your own instructions and judge model. Levels are TOOL_CALL, TRACE and SESSION. Instructions must use the level's placeholders, such as {context} and {assistant_turn} at trace level. The service appends its own output-format prompt (reason, then score), so the instructions must not specify output format. The scale is numerical or categorical.
    • The judge model is a Bedrock foundation model, configured on bedrock-runtime (bedrockEvaluatorModelConfig: model ID, max tokens, temperature, topP) or bedrock-mantle.
    • Ground-truth placeholders (expected_response, assertions, expected_tool_trajectory) cannot be used online.
  • Code-based: a Lambda function returns a score, label and explanation per trace or session, with no LLM cost. This suits deterministic checks.
  • Derived: a custom evaluator built on a built-in or third-party one.

Prerequisites

  • The agent must either run on AgentCore Runtime with observability, or be a supported framework exporting to AgentCore Observability with CloudWatch Transaction Search enabled.
  • TypeScript Strands needs @strands-agents/sdk ≥ 1.5.0 and no extra instrumentation library. Its scope name is strands-agents. Spans are classified by gen_ai.operation.name (invoke_agent, execute_tool, chat). Each span must carry a session.id matching the session being evaluated; on Runtime, ADOT injects it.
  • The documented runners query the /aws/bedrock-agentcore/runtimes/... and aws/spans log groups by session.id. Spans take a few minutes to appear.

Pricing

The pricing table was human-read on 2026-10-18 and matches Source-AgentCore-Pricing:

Item Rate
Built-in, input / output $2.40 / $12 per 1M tokens, model usage included
Custom $1.50 per 1,000 evaluations, plus model usage billed in your account
Batch, input / output $1.80 / $9 per 1M tokens

Bearing on Max Height

  1. Built-in evaluators are probably unusable on the Free plan. AgentCore Evaluations "will automatically select the optimal region within your geography" for inference. The Free plan supports no cross-Region features for any service (verified for spec 003 as D1, Decision-LLM-Model-Selection), although it does list Amazon Bedrock AgentCore itself. AWS's documented way to avoid cross-Region inference (CRIS) is a custom evaluator with an in-Region judge. This is an inference, not a test: no call has been made. The doc samples also use global. judge model IDs, which the Free plan cannot run. This is temporary. The Free plan expires in December 2026, and the builder ruled that it rejects nothing (Decision-AWS-Account-Plan). After the upgrade, built-ins are a question of cost and fit only, and item 2 already says they do not fit.
  2. Built-in evaluators do not measure the character. Helpfulness and Correctness reward a generic assistant, which is the opposite of the personality bar (Source-Personality-Bible). The six-dimension rubric would need custom evaluators either way.
  3. What it could replace in S1. A trace-level custom evaluator per rubric dimension, on a 0–3 numerical scale, could replace the judge-script call. A code-based Lambda could run the deterministic auto-fail checks. The S1 contract's absolute pass bar, builder spot-checks and fixed tool fixtures would not change.
  4. What it costs in tooling. The dataset runner is Python-only and in preview, which would be a new toolchain. The TypeScript route means a locally run agent exports spans to CloudWatch with Transaction Search (which spec 003 already enables, per P9), then calls Evaluate or starts a batch job. That is more moving parts than a Converse call in a script.
  5. What it costs in money. Custom evaluators run 65 cases × 6 dimensions = 390 evaluations per candidate, which is about $0.59 in evaluation fees. The judge's model usage is still billed separately, so the judge-token estimate in the S1 contract still applies on top.
  6. Constitution and process. It is offline, so P5 holds. But it is a new AWS service in use, and therefore a Spec Kit trigger (a new AWS resource or cost-model change). Adopting it means a spec 003 clarification, not a contract edit.

Unverified:

  • Whether a built-in evaluator call actually fails on a Free-plan account (moot after the upgrade).
  • Whether @aws-sdk/client-bedrock-agentcore exports an EvaluateCommand; the check timed out.
  • The Simulation and Online pages were not read.

See also: Source-AgentCore-Platform-2026, Concept-Observability, Source-Spec-003.

Clone this wiki locally