Closed curlyfro closed 2 months ago
The recent update introduces the AWSSDK.BedrockAgentRuntime
package to the project, enhancing the BedrockProvider
with a new AgentApi
property. Additionally, a new abstract class AmazonKnowledgeBaseChatModel
and a settings class AmazonKnowledgeBaseChatSettings
have been added to handle chat responses and knowledge base settings, respectively. These changes aim to extend the functionality of Amazon Bedrock services within the application.
File Path | Change Summary |
---|---|
src/Directory.Packages.props |
Added PackageVersion Include="AWSSDK.BedrockAgentRuntime" with Version="3.7.306.2" . |
src/Providers/Amazon.Bedrock/src/BedrockProvider.cs |
Added AgentApi property of type AmazonBedrockAgentRuntimeClient and initialized it in the constructor. |
src/Providers/Amazon.Bedrock/src/Chat/AmazonKnowledgeBaseChatModel.cs |
Introduced AmazonKnowledgeBaseChatModel class with methods to generate chat responses and handle settings. |
src/Providers/Amazon.Bedrock/src/Chat/Settings/AmazonKnowledgeBaseChatSettings.cs |
Introduced AmazonKnowledgeBaseChatSettings class with properties for knowledge base settings and a Calculate method. |
src/Providers/Amazon.Bedrock/src/LangChain.Providers.Amazon.Bedrock.csproj |
Added PackageReference for AWSSDK.BedrockAgentRuntime . |
🐇 In code we trust, new features rise, With Bedrock's might, we reach new skies. Chat models smart, and settings fine, Our app now shines, with every line. Hoppily coding, with joy we bring, To Bedrock's tune, our hearts do sing. 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
AmazonKnowledgeBaseChatModel
to generate chat responses using a knowledge base.AmazonKnowledgeBaseChatSettings
for enhanced customization of chat settings.Enhancements
AWSSDK.BedrockAgentRuntime
for improved runtime capabilities.BedrockProvider
now includesAgentApi
for better interaction with the Bedrock Agent.Improvements
GenerateAsync
method inAmazonKnowledgeBaseChatModel
to support additional settings and cancellation tokens.AmazonKnowledgeBaseChatSettings
for more flexible chat configurations.