Class BedrockAnthropic3ChatAutoConfiguration
java.lang.Object
org.springframework.ai.autoconfigure.bedrock.anthropic3.BedrockAnthropic3ChatAutoConfiguration
@AutoConfiguration
@ConditionalOnClass(Anthropic3ChatBedrockApi.class)
@EnableConfigurationProperties({BedrockAnthropic3ChatProperties.class,BedrockAwsConnectionProperties.class})
@ConditionalOnProperty(prefix="spring.ai.bedrock.anthropic3.chat",
name="enabled",
havingValue="true")
@Import(BedrockAwsConnectionConfiguration.class)
public class BedrockAnthropic3ChatAutoConfiguration
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 TypeMethodDescriptionanthropic3Api
(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProvider regionProvider, BedrockAnthropic3ChatProperties properties, BedrockAwsConnectionProperties awsProperties) anthropic3ChatModel
(Anthropic3ChatBedrockApi anthropicApi, BedrockAnthropic3ChatProperties properties)
-
Constructor Details
-
BedrockAnthropic3ChatAutoConfiguration
public BedrockAnthropic3ChatAutoConfiguration()
-
-
Method Details
-
anthropic3Api
@Bean @ConditionalOnMissingBean @ConditionalOnBean({software.amazon.awssdk.auth.credentials.AwsCredentialsProvider.class,software.amazon.awssdk.regions.providers.AwsRegionProvider.class}) public Anthropic3ChatBedrockApi anthropic3Api(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProvider regionProvider, BedrockAnthropic3ChatProperties properties, BedrockAwsConnectionProperties awsProperties) -
anthropic3ChatModel
@Bean @ConditionalOnMissingBean @ConditionalOnBean(Anthropic3ChatBedrockApi.class) public BedrockAnthropic3ChatModel anthropic3ChatModel(Anthropic3ChatBedrockApi anthropicApi, BedrockAnthropic3ChatProperties properties)
-