add AWS AgentCore zero code example#131
add AWS AgentCore zero code example#131mesutoezdil wants to merge 1 commit intoagentevals-dev:mainfrom
Conversation
|
Imports work. OTel setup follows the same pattern as the existing Strands example. roll_die and check_prime tool logic is correct. |
|
Tested the OTel pipeline locally (agentevals serve --dev) using a separate script with Strands and a Nebius Cloud endpoint in place of BedrockModel. The actual run.py was not executed end to end. What was verified:
What still needs AWS to verify:
I think, it will work. |
7790773 to
e79db6f
Compare
6f8a84d to
18b69d7
Compare
|
Hi, thanks for the PR! Apologies for not being clearer in #93, but this PR seems to be adding another Strands example via Bedrock models, but not really an AgentCore example. We are looking for an example running on/using AgentCore runtime/SDK, e.g. via https://github.com/aws/bedrock-agentcore-sdk-python. If I understand correctly, you can use |
|
@krisztianfekete thanks. Rewrote the example to use The handler is now an async generator decorated with You were right about AWS not being a hard requirement for tracing. Strands still exports OTLP spans even when |
…ntCoreApp Wraps a Strands agent with BedrockAgentCoreApp from bedrock-agentcore-sdk-python. The handler uses @app.entrypoint and the server starts with app.run(), matching the AgentCore runtime pattern. E2E tests use subprocess.Popen, wait for /ping, then POST to /invocations. Tests pass without AWS credentials because Strands exports OTLP spans even when BedrockModel raises NoCredentialsError.
466d35a to
acb22d9
Compare
Closes #93
Adds a zero code example for AWS AgentCore.
AgentCore runs on Strands Agents with Amazon Bedrock models.
The setup follows the same pattern as the existing Strands example: StrandsTelemetry with an OTLPSpanExporter pointed at the agentevals receiver.
To run:
pip install -r examples/zero-code-examples/agentcore/requirements.txtexport AWS_DEFAULT_REGION=us-east-1agentevals serve --devpython examples/zero-code-examples/agentcore/run.py