AS AgentScopeAPI 手册 / API Reference

AnthropicChatModelBuilderCustomizer

@FunctionalInterface public interface AnthropicChatModelBuilderCustomizer extends Consumer<AnthropicChatModel.Builder>
源码Source io/agentscope/spring/boot/anthropic/AnthropicChatModelBuilderCustomizer.java:33–52

定义 Anthropic 聊天模型构建器 Customizer契约的接口。位于 io.agentscope.spring.boot.anthropic 包,实现 Consumer<AnthropicChatModel.Builder>。核心成员包括 customize、accept。

Customizer for AnthropicChatModel.Builder.

Example usage:

` @Bean
public AnthropicChatModelBuilderCustomizer anthropicChatModelBuilderCustomizer() {
return builder -> builder.baseUrl("https://custom.example.com/v1");
}
`

方法摘要Method Summary

方法Method说明Description
public void customize(AnthropicChatModel.Builder builder)
设置该参数。
Customize the `AnthropicChatModel.Builder`.
default public void accept(AnthropicChatModel.Builder builder)
default
设置该参数。
Accept and invoke the given builder.

方法详情Method Detail

customize

public void customize(AnthropicChatModel.Builder builder)

设置该参数。

Customize the AnthropicChatModel.Builder.

参数Parameters
名称Name类型Type说明Description
builderAnthropicChatModel.Builder构建器(类型 `AnthropicChatModel.Builder`)。the builder to customize
源码Source io/agentscope/spring/boot/anthropic/AnthropicChatModelBuilderCustomizer.java:41

accept

default public void accept(AnthropicChatModel.Builder builder)
default

设置该参数。

Accept and invoke the given builder.

参数Parameters
名称Name类型Type说明Description
builderAnthropicChatModel.Builder构建器(类型 `AnthropicChatModel.Builder`)。the builder to customize
源码Source io/agentscope/spring/boot/anthropic/AnthropicChatModelBuilderCustomizer.java:48–51
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.