AnthropicAutoConfiguration
@AutoConfiguration(before = AgentscopeAutoConfiguration.class) @EnableConfigurationProperties(AnthropicProperties.class) @ConditionalOnClass(AnthropicChatModel.class) public class AnthropicAutoConfiguration
源码Source
io/agentscope/spring/boot/anthropic/AnthropicAutoConfiguration.java:32–86Anthropic Auto 配置,保存相关配置项。位于 io.agentscope.spring.boot.anthropic 包。核心成员包括 anthropicChatModel。
Spring Boot auto-configuration for the Anthropic model extension.
方法摘要Method Summary
方法详情Method Detail
anthropicChatModel
public AnthropicChatModel anthropicChatModel(AnthropicProperties properties, ObjectProvider<AnthropicChatModelBuilderCustomizer> customizerObjectProvider)
执行 anthropicChatModel 方法。
Performs the anthropic chat model operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
properties | AnthropicProperties | 属性(类型 `AnthropicProperties`)。The properties. |
customizerObjectProvider | ObjectProvider<AnthropicChatModelBuilderCustomizer> | customizer 对象提供者(类型 `ObjectProvider`)。The customizer object provider. |
AnthropicChatModel返回AnthropicChatModel。Returns Anthropic chat model.
源码Source
io/agentscope/spring/boot/anthropic/AnthropicAutoConfiguration.java:37–77