Class BedrockAnthropicChatAutoConfiguration
java.lang.Object
org.springframework.ai.autoconfigure.bedrock.anthropic.BedrockAnthropicChatAutoConfiguration
@AutoConfiguration
@ConditionalOnClass(AnthropicChatBedrockApi.class)
@EnableConfigurationProperties({BedrockAnthropicChatProperties.class,BedrockAwsConnectionProperties.class})
@ConditionalOnProperty(prefix="spring.ai.bedrock.anthropic.chat",
name="enabled",
havingValue="true")
@Import(BedrockAwsConnectionConfiguration.class)
public class BedrockAnthropicChatAutoConfiguration
extends Object
Auto-configuration
for Bedrock Anthropic Chat Client.
Leverages the Spring Cloud AWS to resolve the AwsCredentialsProvider
.- Since:
- 0.8.0
- Author:
- Christian Tzolov, Wei Jiang
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionanthropicApi
(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProvider regionProvider, BedrockAnthropicChatProperties properties, BedrockAwsConnectionProperties awsProperties) anthropicChatModel
(AnthropicChatBedrockApi anthropicApi, BedrockAnthropicChatProperties properties)
-
Constructor Details
-
BedrockAnthropicChatAutoConfiguration
public BedrockAnthropicChatAutoConfiguration()
-
-
Method Details
-
anthropicApi
@Bean @ConditionalOnMissingBean @ConditionalOnBean({software.amazon.awssdk.auth.credentials.AwsCredentialsProvider.class,software.amazon.awssdk.regions.providers.AwsRegionProvider.class}) public AnthropicChatBedrockApi anthropicApi(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProvider regionProvider, BedrockAnthropicChatProperties properties, BedrockAwsConnectionProperties awsProperties) -
anthropicChatModel
@Bean @ConditionalOnMissingBean @ConditionalOnBean(AnthropicChatBedrockApi.class) public BedrockAnthropicChatModel anthropicChatModel(AnthropicChatBedrockApi anthropicApi, BedrockAnthropicChatProperties properties)
-