Class BedrockConverseProxyChatAutoConfiguration

java.lang.Object
org.springframework.ai.autoconfigure.bedrock.converse.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(prefix="spring.ai.bedrock.converse.chat", name="enabled", havingValue="true", 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
  • 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, FunctionCallbackResolver functionCallbackResolver, List<FunctionCallback> toolFunctionCallbacks, 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)
    • springAiFunctionManager

      @Bean @ConditionalOnMissingBean public FunctionCallbackResolver springAiFunctionManager(org.springframework.context.ApplicationContext context)