powertools-lambda-python icon indicating copy to clipboard operation
powertools-lambda-python copied to clipboard

Feature request: [Bedrock Agent Event Handler] Add (prompt) session attributes and knowledgeBasesConfiguration to the response

Open isunli opened this issue 1 year ago • 3 comments

Use case

We are using bedrock event handler and we want to add session attributes and prompt session attributes in our response. In the current event handler there is no way to do that unless we build the json object manually. code.

We want to have a proper why to inject those attributes into response.

In the doc there is one more attribute called knowledgeBasesConfiguration which should also included in the solution.

Solution/User Experience

Maybe we have a bedrock response object like API Gateway (https://docs.powertools.aws.dev/lambda/python/latest/core/event_handler/api_gateway/#fine-grained-responses) to allow user to inject additional attributes.

Alternative solutions

No response

Acknowledgment

isunli avatar Aug 21 '24 15:08 isunli

Thanks for opening your first issue here! We'll come back to you as soon as we can. In the meantime, check out the #python channel on our Powertools for AWS Lambda Discord: Invite link

boring-cyborg[bot] avatar Aug 21 '24 15:08 boring-cyborg[bot]

Hi @isunli! Thanks for opening this issue! I'm adding it to the backlog and will return to this issue once we release v3.

leandrodamascena avatar Aug 22 '24 08:08 leandrodamascena

Hey @isunli ! We are looking at it and try to prioritize it to deliver it next month.

anafalcao avatar Jan 28 '25 13:01 anafalcao

⚠️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[bot] avatar Apr 30 '25 15:04 github-actions[bot]

This is now released under 3.12.0 version!

github-actions[bot] avatar May 06 '25 08:05 github-actions[bot]