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

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

Closed
1 of 2 tasks
rubenfonseca opened this issue Apr 24, 2024 · 3 comments · Fixed by #5156
Closed
1 of 2 tasks

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

rubenfonseca opened this issue Apr 24, 2024 · 3 comments · Fixed by #5156
Labels
internal Maintenance changes v3 Features that will be included in Powertools v3.

Comments

@rubenfonseca
Copy link
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

@rubenfonseca rubenfonseca added triage Pending triage from maintainers internal Maintenance changes labels Apr 24, 2024
@rubenfonseca rubenfonseca added v3 Features that will be included in Powertools v3. and removed triage Pending triage from maintainers labels Apr 24, 2024
@rubenfonseca rubenfonseca added this to the Powertools v3 milestone Apr 24, 2024
@heitorlessa heitorlessa moved this from Triage to Backlog in Powertools for AWS Lambda (Python) Jun 11, 2024
@github-actions github-actions bot added the pending-release Fix or implementation already in dev waiting to be released label Sep 11, 2024
@leandrodamascena
Copy link
Contributor

Closing as completed.

Copy link
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.

Copy link
Contributor

This is now released under 3.0.0 version!

@github-actions github-actions bot removed the pending-release Fix or implementation already in dev waiting to be released label Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Maintenance changes v3 Features that will be included in Powertools v3.
Projects
Status: Coming soon
2 participants