AI Cloud Architect

Automated agent evaluation with Amazon Bedrock AgentCore and GitHub Actions

AWSHow-to by Mahsa Paknezhad, Ishan Singh and Shoaib JavedAWS Artificial Intelligence Blog

Wire Amazon Bedrock AgentCore Evaluations into a GitHub Actions pipeline: deploy an AI agent and an OAuth-protected MCP server to AgentCore runtime, invoke the agent with test prompts, score the responses, and automatically block pull requests when agent behavior regresses.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

A GitHub Actions pipeline deploys an AgentCore agent and OAuth-protected MCP server, scores test prompts with AgentCore Evaluations, and blocks PRs when scores fall below a threshold.

Who it is for

Teams running agents on AgentCore runtime that need a CI quality gate to catch prompt or model changes that degrade agent behavior.

Key points

  • Uses client_credentials (M2M) tokens so CI can call OAuth-protected runtimes without user context.
  • Four built-in evaluators are used: GoalSuccessRate, Correctness, ToolSelectionAccuracy, ToolParameterAccuracy.
  • Example threshold is 0.8; the post says LLM-as-judge scores vary between runs, so margin is advised.
  • Full pipeline takes about 10 minutes, and each run costs about 20 judge model calls with 4 evaluators and 5 prompts.
  • M2M tokens bypass role checks by design, so role enforcement needs a different approach.

The same at other vendors

Timeline

  1. Read firstDeploy AI agents on Amazon Bedrock AgentCore using GitHub Actions · AWS · How-to
  2. This postAutomated agent evaluation with Amazon Bedrock AgentCore and GitHub Actions

Go deeper