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

    Modifier and Type
    Method
    Description
    default void
    accept(io.agentscope.extensions.model.ollama.OllamaChatModel.Builder builder)
    Accept and invoke the given builder.
    void
    customize(io.agentscope.extensions.model.ollama.OllamaChatModel.Builder builder)
    Customize the OllamaChatModel.Builder.

    Methods inherited from interface java.util.function.Consumer

    andThen
  • Method Details

    • customize

      void customize(io.agentscope.extensions.model.ollama.OllamaChatModel.Builder builder)
      Customize the OllamaChatModel.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.
      Specified by:
      accept in interface Consumer<io.agentscope.extensions.model.ollama.OllamaChatModel.Builder>
      Parameters:
      builder - the builder to customize