Interface AnthropicChatModelBuilderCustomizer
- All Superinterfaces:
Consumer<io.agentscope.extensions.model.anthropic.AnthropicChatModel.Builder>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface AnthropicChatModelBuilderCustomizer
extends Consumer<io.agentscope.extensions.model.anthropic.AnthropicChatModel.Builder>
Customizer for
AnthropicChatModel.Builder.
Example usage:
@Bean
public AnthropicChatModelBuilderCustomizer anthropicChatModelBuilderCustomizer() {
return builder -> builder.baseUrl("https://custom.example.com/v1");
}
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaccept(io.agentscope.extensions.model.anthropic.AnthropicChatModel.Builder builder) Accept and invoke the given builder.voidcustomize(io.agentscope.extensions.model.anthropic.AnthropicChatModel.Builder builder) Customize theAnthropicChatModel.Builder.
-
Method Details
-
customize
void customize(io.agentscope.extensions.model.anthropic.AnthropicChatModel.Builder builder) Customize theAnthropicChatModel.Builder.- Parameters:
builder- the builder to customize
-
accept
default void accept(io.agentscope.extensions.model.anthropic.AnthropicChatModel.Builder builder) Accept and invoke the given builder.
-