Package io.agentscope.spring.boot.ollama
Interface OllamaChatModelBuilderCustomizer
- All Superinterfaces:
Consumer<io.agentscope.extensions.model.ollama.OllamaChatModel.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 OllamaChatModelBuilderCustomizer
extends Consumer<io.agentscope.extensions.model.ollama.OllamaChatModel.Builder>
Customizer for
OllamaChatModel.Builder.
Example usage:
@Bean
public OllamaChatModelBuilderCustomizer ollamaChatModelBuilderCustomizer() {
return builder -> builder.baseUrl("http://ollama.example.com:11434");
}
-
Method Summary
-
Method Details
-
customize
void customize(io.agentscope.extensions.model.ollama.OllamaChatModel.Builder builder) Customize theOllamaChatModel.Builder.- Parameters:
builder- the builder to customize
-
accept
default void accept(io.agentscope.extensions.model.ollama.OllamaChatModel.Builder builder) Accept and invoke the given builder.
-