Class BedrockConverseProxyChatAutoConfiguration

java.lang.Object
org.springframework.ai.model.bedrock.converse.autoconfigure.BedrockConverseProxyChatAutoConfiguration

@AutoConfiguration @EnableConfigurationProperties({BedrockConverseProxyChatProperties.class,BedrockAwsConnectionConfiguration.class}) @ConditionalOnClass({BedrockProxyChatModel.class,software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient.class,software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeAsyncClient.class}) @ConditionalOnProperty(name="spring.ai.model.chat", havingValue="bedrock-converse", matchIfMissing=true) @Import(BedrockAwsConnectionConfiguration.class) public class BedrockConverseProxyChatAutoConfiguration extends Object
Auto-configuration for Bedrock Converse Proxy Chat Client. Leverages the Spring Cloud AWS to resolve the AwsCredentialsProvider.
Author:
Christian Tzolov, Wei Jiang, Pawel Potaczala
  • Constructor Details

    • BedrockConverseProxyChatAutoConfiguration

      public BedrockConverseProxyChatAutoConfiguration()
  • Method Details

    • bedrockProxyChatModel

      @Bean @ConditionalOnMissingBean @ConditionalOnBean({software.amazon.awssdk.auth.credentials.AwsCredentialsProvider.class,software.amazon.awssdk.regions.providers.AwsRegionProvider.class}) public BedrockProxyChatModel bedrockProxyChatModel(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProvider regionProvider, BedrockAwsConnectionProperties connectionProperties, BedrockConverseProxyChatProperties chatProperties, ToolCallingManager toolCallingManager, org.springframework.beans.factory.ObjectProvider<io.micrometer.observation.ObservationRegistry> observationRegistry, org.springframework.beans.factory.ObjectProvider<ChatModelObservationConvention> observationConvention, org.springframework.beans.factory.ObjectProvider<software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient> bedrockRuntimeClient, org.springframework.beans.factory.ObjectProvider<software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeAsyncClient> bedrockRuntimeAsyncClient, org.springframework.beans.factory.ObjectProvider<ToolExecutionEligibilityPredicate> bedrockToolExecutionEligibilityPredicate)