Class BedrockConverseProxyChatAutoConfiguration
java.lang.Object
org.springframework.ai.model.bedrock.converse.autoconfigure.BedrockConverseProxyChatAutoConfiguration
@AutoConfiguration(after=org.springframework.ai.model.tool.autoconfigure.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(name="spring.ai.model.chat",
havingValue="bedrock-converse",
matchIfMissing=true)
@Import(BedrockAwsConnectionConfiguration.class)
@ImportAutoConfiguration(org.springframework.ai.model.tool.autoconfigure.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 -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.ai.bedrock.converse.BedrockProxyChatModelbedrockProxyChatModel(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.beans.factory.ObjectProvider<org.springframework.ai.model.tool.ToolExecutionEligibilityPredicate> bedrockToolExecutionEligibilityPredicate)
-
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 org.springframework.ai.bedrock.converse.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, org.springframework.beans.factory.ObjectProvider<org.springframework.ai.model.tool.ToolExecutionEligibilityPredicate> bedrockToolExecutionEligibilityPredicate)
-