aws-amplify / amplify-backend

Home to all tools related to Amplify's code-first DX (Gen 2) for building fullstack apps on AWS
Apache License 2.0
185 stars 62 forks source link

Fix a case when Bedrock throws validation error if tool input is not persisted in history #2230

Closed sobolk closed 1 week ago

sobolk commented 1 week ago

Problem

This was missed in https://github.com/aws-amplify/amplify-backend/pull/2226

image

Changes

Fall back to empty object when bedrock is sending empty input.

Validation

Added e2e test for this particular case since problem was with bedrock runtime validation

Checklist

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

changeset-bot[bot] commented 1 week ago

🦋 Changeset detected

Latest commit: e97f48f2457e61a8a97e1500f0debd9681e05f62

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | -------------------------- | ----- | | @aws-amplify/ai-constructs | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR