Skip to content

Maintenance: Ensure Bedrock Agents resolver works with Pydantic v2 #4196

Closed
@rubenfonseca

Description

@rubenfonseca
Contributor

Why is this needed?

As we prepare to drop Pydantic v2, we need to ensure that the Bedrock Agents functionality still works. Bedrock Agents only accepts OpenAPI version 3.0, whereas Pydantic v2 generates schemas that are valid for OpenAPI 3.1.

Which area does this relate to?

Event Handler - REST API

Solution

Research shows that we can take an OpenAPI 3.1 schema and make it compatible with Bedrock Agents by doing some simple changes, like removing new fields and changing the schema version.

After implementing those we need to do extensive testing to ensure the feature is not broken when using Agents.

Acknowledgment

  • Should this be considered in other Powertools for AWS Lambda languages? i.e. Java, TypeScript, and .NET

Activity

added
v3Features that will be included in Powertools v3.
and removed
triagePending triage from maintainers
on Apr 24, 2024
added this to the Powertools v3 milestone on Apr 24, 2024
leandrodamascena

leandrodamascena commented on Sep 11, 2024

@leandrodamascena
Contributor

Closing as completed.

github-actions

github-actions commented on Sep 11, 2024

@github-actions
Contributor

⚠️COMMENT VISIBILITY WARNING⚠️

This issue is now closed. Please be mindful that future comments are hard for our team to see.

If you need more assistance, please either tag a team member or open a new issue that references this one.

If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions

github-actions commented on Sep 23, 2024

@github-actions
Contributor

This is now released under 3.0.0 version!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    internalMaintenance changesv3Features that will be included in Powertools v3.

    Type

    No type

    Projects

    Status

    Shipped

    Relationships

    None yet

      Participants

      @rubenfonseca@leandrodamascena

      Issue actions

        Maintenance: Ensure Bedrock Agents resolver works with Pydantic v2 · Issue #4196 · aws-powertools/powertools-lambda-python