Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: bedrock agent api support #2019

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

martinsafsten
Copy link

@martinsafsten martinsafsten commented Mar 19, 2025

Issue #, if available: #2007

Description of changes:

I added support for building a .NET Core Web Api with Amazon.Lambda.AspNetCoreServer.Hosting, and use it as a Amazon Bedrock Action Group Lambda Function, configured with a OpenAPI specification. The user simply calls IServiceCollection.AddAWSLambdaHosting(LambdaEventSource.BedrockAgentApi), in the same manner as the existing event sources, which loads up the correct request and response handling.

I have not created a change file. Awaiting a review to see if the general strategy is accepted.

Here is a structured list of the changes:

  • Created a new events project for bedrock agent event contracts: Amazon.Lambda.BedrockAgentEvents
  • Added new LambdaEventSource in Amazon.Lambda.AspNetCoreServer.Hosting: BedrockAgentApi
  • Added request and response marshalling for Amazon Bedrock agents in Amazon.Lambda.AspNetCoreServer when using the new event source.
  • Unit tests against the TestWebApi to verify correct marshalling.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@martinsafsten martinsafsten changed the title Bedrock Agent API support feature: bedrock agent api support Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant