awslabs / awslabs/agentcore-samples
01-tutorials - [Bug]
- Dominant language
- Python
- Stars
- 3.4k
- Forks
- 1.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 30
Description
The EvaluationClient initializes a boto3 client using the service name
"agentcore-evaluation-dataplane".
This service does not exist in the public boto3 service model, which results in
the following runtime error when running evaluation code:
botocore.exceptions.UnknownServiceError: Unknown service: 'agentcore-evaluation-dataplane'
AWS Bedrock AgentCore exposes the following valid services:
- bedrock-agentcore (runtime)
- bedrock-agentcore-control (control plane)
To resolve this issue, the EvaluationClient should initialize the boto3 client
using the correct runtime service:
boto3.client("bedrock-agentcore", region_name=self.region)
This change fixes the error and allows evaluation calls to execute successfully.
I have also raised PR for the same
Contributor guide
Assessment
This issue has not been assessed yet.