Overview of Amazon Bedrock AgentCore
Amazon Bedrock is a platform that enables easy construction and deployment of AI models. The AgentCore of this platform provides functionality for evaluating agent performance. AgentCore supports evaluations during the development process, as well as batch operations on stored sessions and online evaluations of production traffic. This allows users to assess performance throughout the entire lifecycle of the agent.
Necessity of Decision-Making Model
When evaluating agents, the questions frequently asked by users are generally narrow and repetitive. For example, questions like "Does this response comply with the policy?" or "Is it safe to approve this tool call?" are common. To provide answers to these questions, the decision-making model has been introduced. The decision-making model returns probabilities based on fixed states and a set of allowed responses, providing reliable figures during the evaluation process.
Evaluation Features of AgentCore
Amazon Bedrock AgentCore offers 15 built-in evaluators and supports the definition of custom evaluators. Custom evaluators can be implemented as LLM (Large Language Model) or code-based evaluators. LLM-based evaluators generate scores by applying user instructions and evaluation criteria. In contrast, code-based evaluators execute logic that can call external systems or APIs through AWS Lambda functionality.
Advantages of Decision-Making Model
The decision-making model is a small model that selects from a fixed set of responses and returns a confidence score. This model provides well-calibrated confidence scores in evaluation tasks, enabling users to take programmatic actions. For instance, for questions like "Does this response align with the topic?", the decision-making model provides a clear probability distribution. Thanks to these characteristics, the decision-making model has the advantage of consistently applying evaluation criteria.
Real-World Application Example
This post provides an example of evaluating an HR assistant agent. This agent responds to employee inquiries using five tools that return fixed mock data. This code sample is useful for validating the evaluator behavior between LLM-based evaluators and the decision-making model. Through this, users can test the decision-making model according to their use cases.
Conclusion
Amazon Bedrock's AgentCore enhances the reliability of agent evaluation through the decision-making model and offers flexibility to apply various evaluation criteria through custom evaluators. These features will contribute to the continuous improvement of AI agent performance.