Class BedrockConverseProxyChatAutoConfiguration

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

@AutoConfiguration(after=ToolCallingAutoConfiguration.class) @EnableConfigurationProperties({BedrockConverseProxyChatProperties.class,BedrockAwsConnectionConfiguration.class}) @ConditionalOnClass({org.springframework.ai.bedrock.converse.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) @ImportAutoConfiguration(ToolCallingAutoConfiguration.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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    bedrockProxyChatModel(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProvider regionProvider, BedrockAwsConnectionProperties connectionProperties, BedrockConverseProxyChatProperties chatProperties, org.springframework.ai.model.tool.ToolCallingManager toolCallingManager, org.springframework.beans.factory.ObjectProvider<io.micrometer.observation.ObservationRegistry> observationRegistry, org.springframework.beans.factory.ObjectProvider<org.springframework.ai.chat.observation.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.ai.model.function.FunctionCallbackResolver
    springAiFunctionManager(org.springframework.context.ApplicationContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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, org.springframework.ai.model.tool.ToolCallingManager toolCallingManager, org.springframework.beans.factory.ObjectProvider<io.micrometer.observation.ObservationRegistry> observationRegistry, org.springframework.beans.factory.ObjectProvider<org.springframework.ai.chat.observation.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 org.springframework.ai.model.function.FunctionCallbackResolver springAiFunctionManager(org.springframework.context.ApplicationContext context)