-
Notifications
You must be signed in to change notification settings - Fork 0
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
Text Generation and Chat Completion #1
Text Generation and Chat Completion #1
Conversation
…sample program and run
… supported by model
…models functional for all actions supported
…ce fixes in connector
dotnet/src/SemanticKernel.Abstractions/Contents/FunctionCallContent.cs
Outdated
Show resolved
Hide resolved
dotnet/src/SemanticKernel.Abstractions/Contents/FunctionResultContent.cs
Outdated
Show resolved
Hide resolved
dotnet/src/SemanticKernel.Abstractions/Contents/StreamingChatMessageContent.cs
Outdated
Show resolved
Hide resolved
dotnet/src/Connectors/Connectors.Amazon/Bedrock/Models/BedrockModelUtilities.cs
Outdated
Show resolved
Hide resolved
dotnet/src/Connectors/Connectors.Amazon/Bedrock/Models/Anthropic/AnthropicIOService.cs
Outdated
Show resolved
Hide resolved
dotnet/src/Connectors/Connectors.Amazon/Bedrock/Models/IBedrockModelIOService.cs
Show resolved
Hide resolved
dotnet/src/Connectors/Connectors.Amazon/Bedrock/Core/Clients/BedrockChatCompletionClient.cs
Outdated
Show resolved
Hide resolved
dotnet/src/Connectors/Connectors.Amazon/Bedrock/Models/Mistral/MistralRequest.cs
Outdated
Show resolved
Hide resolved
dotnet/src/Connectors/Connectors.Amazon/Bedrock/Models/AI21 Labs/AI21JurassicResponse.cs
Outdated
Show resolved
Hide resolved
…credentials), jurassic data
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.
I still need to review the implementation specific to each model/IOService
dotnet/src/Connectors/Connectors.Amazon/Connectors.Amazon.csproj
Outdated
Show resolved
Hide resolved
dotnet/src/Connectors/Connectors.Amazon/Bedrock/Services/BedrockTextGenerationService.cs
Outdated
Show resolved
Hide resolved
dotnet/src/Connectors/Connectors.Amazon/Bedrock/Services/BedrockChatCompletionService.cs
Outdated
Show resolved
Hide resolved
dotnet/src/Connectors/Connectors.Amazon/Bedrock/Core/Clients/BedrockChatCompletionClient.cs
Outdated
Show resolved
Hide resolved
dotnet/src/Connectors/Connectors.Amazon/Bedrock/Core/Clients/BedrockChatCompletionClient.cs
Outdated
Show resolved
Hide resolved
dotnet/src/Connectors/Connectors.Amazon/Bedrock/Core/Clients/BedrockChatCompletionClient.cs
Outdated
Show resolved
Hide resolved
dotnet/src/Connectors/Connectors.Amazon/Bedrock/Core/Clients/BedrockTextGenerationClient.cs
Outdated
Show resolved
Hide resolved
dotnet/src/Connectors/Connectors.Amazon/Bedrock/Core/Clients/BedrockTextGenerationClient.cs
Outdated
Show resolved
Hide resolved
dotnet/src/Connectors/Connectors.Amazon/Bedrock/Core/Clients/BedrockTextGenerationClient.cs
Show resolved
Hide resolved
dotnet/src/Connectors/Connectors.Amazon/Bedrock/Core/Clients/BedrockTextGenerationClient.cs
Outdated
Show resolved
Hide resolved
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.
Okay, these are my last comments. Looks really good overall though, great job!
dotnet/src/Connectors/Connectors.Amazon/Bedrock/Models/Anthropic/AnthropicIOService.cs
Show resolved
Hide resolved
dotnet/src/Connectors/Connectors.Amazon/Bedrock/Models/Anthropic/AnthropicIOService.cs
Show resolved
Hide resolved
dotnet/src/Connectors/Connectors.Amazon/Bedrock/Models/AI21 Labs/AI21JambaIOService.cs
Show resolved
Hide resolved
dotnet/src/Connectors/Connectors.Amazon/Bedrock/Core/Clients/BedrockChatCompletionClient.cs
Outdated
Show resolved
Hide resolved
…prole etc), set activity fields chat completion
…list (consistency between stream and non)
Main review is now here: microsoft#7587 |
Add Amazon Bedrock Connector
This pull request creates a connector for Amazon Bedrock, expanding the Semantic Kernel's integration capabilities with Bedrock's many foundation models.
Key Features:
IChatCompletionService
andITextGenerationService
from the Semantic KernelImplementation Details:
Amazon Bedrock Runtime actions
InvokeModelAsync
andInvokeModelWithResponseStreamAsync
were used forGetTextContentsAsync
andGetStreamingTextContentsAsync
respectivelyAmazon Bedrock Runtime actions
ConverseAsync
andConverseStreamAsync
were used forGetChatMessageContentsAsync
andGetStreamingChatMessageContentsAsync
respectivelyAll versions of the following base models are currently connected and available for use under Bedrock:
The following authentication scenarios are supported by the kernel builder extension methods:
IAmazonBedrockRuntime
object and model ID: This approach gives the user more control over the configuration of theIAmazonBedrockRuntime
object, such as specifying custom credentials, endpoints, or other settings.IAmazonBedrockRuntime
is automatically created and registered in the dependency injection (DI) container using theAWSSDK.Extensions.NETCore.Setup
package, which adds AWS service clients to the DI container. In this case, theIAmazonBedrockRuntime
object will be configured with default settings, such as credentials obtained from the environment variables, AWS credentials file, or instance profile credentials.Testing: