-
Notifications
You must be signed in to change notification settings - Fork 156
feat(event-handler): add Amazon Bedrock Agents Functions Resolver #3957
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
feat(event-handler): add Amazon Bedrock Agents Functions Resolver #3957
Conversation
packages/event-handler/src/bedrock-agent-function/BedrockAgentFunctionResolver.ts
Outdated
Show resolved
Hide resolved
This comment was marked as outdated.
This comment was marked as outdated.
aa4e007
to
59db37b
Compare
packages/event-handler/src/bedrock-agent-function/BedrockAgentFunctionResolver.ts
Outdated
Show resolved
Hide resolved
883fbfd
to
6212f21
Compare
6212f21
to
823d4b5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work on this PR, I was able to test this with this sample agent and it works both with simple inputs and arrays (once the changes are applied).
I've left a number of comments, once these are addressed I'll focus on testing also the decorator pattern that I haven't really tested yet (see comments), so there might be an additional round of review after this one.
packages/event-handler/src/bedrock-agent-function/BedrockAgentFunctionResolver.ts
Outdated
Show resolved
Hide resolved
packages/event-handler/src/bedrock-agent-function/BedrockAgentFunctionResolver.ts
Outdated
Show resolved
Hide resolved
packages/event-handler/src/bedrock-agent-function/BedrockAgentFunctionResolver.ts
Outdated
Show resolved
Hide resolved
packages/event-handler/src/bedrock-agent-function/BedrockAgentFunctionResolver.ts
Outdated
Show resolved
Hide resolved
packages/event-handler/src/bedrock-agent-function/BedrockAgentFunctionResolver.ts
Outdated
Show resolved
Hide resolved
packages/event-handler/tests/unit/BedrockAgentFunctionResolver.test.ts
Outdated
Show resolved
Hide resolved
packages/event-handler/src/bedrock-agent-function/BedrockAgentFunctionResolver.ts
Outdated
Show resolved
Hide resolved
packages/event-handler/tests/unit/BedrockAgentFunctionResolver.test.ts
Outdated
Show resolved
Hide resolved
3112527
to
1998e86
Compare
…to verify it a bedrock event
3c27cc1
to
c916396
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One of the exports in the package.json
is still using the old path - other than that I'm good to merge it.
|
Done! |
Thank you for the great work and many iterations @svozza, good job! |
No problem, really happy with where we ended up here! |
Summary
Adds a new resolver type to the
event-handler
package to handle lambda functions invoked by Amazon Bedrock agents.Changes
tool
- takes an async function and a configuration object withname
anddescription
fields and registers the toolresolve
- accepts the lambda event and context objects from the handler and routes the request to the correct tool and returns an appropriately formatted response. Can also be used as a method or a decorator.Issue number: #3710
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.