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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionanthropicApi
(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, BedrockAnthropicChatProperties properties, BedrockAwsConnectionProperties awsProperties) anthropicChatClient
(AnthropicChatBedrockApi anthropicApi, BedrockAnthropicChatProperties properties)
-
Constructor Details
-
BedrockAnthropicChatAutoConfiguration
public BedrockAnthropicChatAutoConfiguration()
-
-
Method Details
-
anthropicApi
@Bean @ConditionalOnMissingBean public AnthropicChatBedrockApi anthropicApi(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, BedrockAnthropicChatProperties properties, BedrockAwsConnectionProperties awsProperties) -
anthropicChatClient
@Bean public BedrockAnthropicChatClient anthropicChatClient(AnthropicChatBedrockApi anthropicApi, BedrockAnthropicChatProperties properties)
-