Package org.springframework.ai.ollama
Class OllamaChatModel.Builder
java.lang.Object
org.springframework.ai.ollama.OllamaChatModel.Builder
- Enclosing class:
- OllamaChatModel
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
withDefaultOptions
(OllamaOptions defaultOptions) withFunctionCallbackContext
(FunctionCallbackContext functionCallbackContext) withModelManagementOptions
(ModelManagementOptions modelManagementOptions) withObservationRegistry
(io.micrometer.observation.ObservationRegistry observationRegistry) withOllamaApi
(OllamaApi ollamaApi) withToolFunctionCallbacks
(List<FunctionCallback> toolFunctionCallbacks)
-
Method Details
-
withOllamaApi
-
withDefaultOptions
-
withFunctionCallbackContext
public OllamaChatModel.Builder withFunctionCallbackContext(FunctionCallbackContext functionCallbackContext) -
withToolFunctionCallbacks
public OllamaChatModel.Builder withToolFunctionCallbacks(List<FunctionCallback> toolFunctionCallbacks) -
withObservationRegistry
public OllamaChatModel.Builder withObservationRegistry(io.micrometer.observation.ObservationRegistry observationRegistry) -
withModelManagementOptions
public OllamaChatModel.Builder withModelManagementOptions(ModelManagementOptions modelManagementOptions) -
build
-