Skip to content

feature: bedrock agent api support #2019

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 2 commits 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
@martinsafsten
Copy link
Author

@ashishdhingra any updates on this?

@ashishdhingra
Copy link
Contributor

@martinsafsten We have the issue in our backlog and our team would soon look into it based on priority. Thanks for your patience.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants