8000 Release v3.14.0 Β· aws-powertools/powertools-lambda-python Β· GitHub
[go: up one dir, main page]

Skip to content

v3.14.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 04 Jun 08:28
· 15 commits to refs/heads/develop since this release

Summary

This release introduces a new BedrockAgentFunctionResolver to Event Handler that simplifies connecting AWS Lambda functions to Amazon Bedrock Agents. This feature eliminates the need to write boilerplate code for parsing requests and formatting responses, allowing you to focus on your agent's business logic.

We would also like to extend a huge thank you to our new contributor @LucasCMFBraga ⭐

Creating Amazon Bedrock Agents

Docs

You can now use the new BedrockAgentFunctionResolver to register tools and handle requests in your Lambda functions. The resolver will automatically parse the request, route it to the appropriate function, and return a well-formed response that includes the tool's output and any existing session attributes.

bedrock_agent1

By default, errors are handled gracefully and returned to the agent with error type and message information, allowing the conversation to continue. This is useful when you want to let the LLM handle errors and reduce boilerplate error-handling code.

If you need more control over error scenarios, you can use BedrockFunctionResponse to customize the response and determine if the conversation should continue:

bedrock_error_response

You can also use the BedrockFunctionResponse when you want to enrich the response with session attributes or knowledge base configurations, or when you want the agent to re-prompt the user to provide additional information.

Changes

🌟New features and non-breaking changes

  • feat(bedrock_agent): add new Amazon Bedrock Agents Functions Resolver (#6564) by @anafalcao
  • feat(event_handler): enable support for custom deserializer to parse the request body (#6601) by @LucasCMFBraga

πŸ“œ Documentation updates

πŸ› Bug and hot fixes

πŸ”§ Maintenance

This release was made possible by the following contributors:

@LucasCMFBraga, @anafalcao, @dependabot[bot], @github-actions[bot], @hjgraca, @leandrodamascena, dependabot[bot] and github-actions[bot]

0