Closed sobolk closed 1 month ago
Latest commit: a220ceeea3d49fb33ba4f3ce0d216b2940af7fc4
The changes in this PR will be included in the next version bump.
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
Problem
Conversation handler receives messages in the event. The problem is that event size is constrained to 256 KB for asynchronous invocations. https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html .
When conversation is long enough and/or contains images this limit is hit and lambda can't be called.
Previous logic as defined in upstream resolver can be seen here. Note that it's using outdated gql schema.
Changes
event.messages
for now to be backwards compatible until upstream components absorb this change. This will be removed later.GraphqlRequestExecutor
in theai-constructs
since we've hit the rule of 3 and refactor other components that execute GQL queries to use it.Validation
Added tests, including e2e tests.
Manual tests via snapshot release with upstream components.
Checklist
run-e2e
label set.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.