Skip to content

Amazon Bedrock Agent support #2007

@martinsafsten

Description

@martinsafsten

Describe the feature

Add support for receiving JSON requests from a Amazon Bedrock Agent, with a Action Group configured with an OpenAPI specification. The JSON structures between the HttpApi/RestApi via API Gateway are incompatible with the current setup.

Use Case

Creating a .NET Core Web API that can be used by a Amazon Bedrock Agent. The API can generate the Swagger/OpenAPI specification that can be uploaded to the Agent as is

Proposed Solution

The general idea is to add a new EventSource specifically for Bedrock Agents, that translates that format into a AspNetCore request. It should make the setup as seamless as for HttpApi and RestApi for the end user.

The end result should look something like this:

builder.Services.AddAWSLambdaHosting(LambdaEventSource.BedrockAgentApi)

Other Information

I created a Repost question detailing the issue: https://repost.aws/questions/QUXj8PAYBRQiKqd5VRWHNQfQ/amazon-lambda-aspnetcoreserver-hosting-as-bedrock-agent-action-group-lambda

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS .NET SDK and/or Package version used

latest

Targeted .NET Platform

.NET 6, .NET 8

Operating System and version

any

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions