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()
functionCallbackResolver
(FunctionCallbackResolver functionCallbackResolver) withDefaultOptions
(OllamaOptions defaultOptions) withFunctionCallbackContext
(FunctionCallbackResolver functionCallbackContext) Deprecated.withModelManagementOptions
(ModelManagementOptions modelManagementOptions) withObservationRegistry
(io.micrometer.observation.ObservationRegistry observationRegistry) withOllamaApi
(OllamaApi ollamaApi) withToolFunctionCallbacks
(List<FunctionCallback> toolFunctionCallbacks)
-
Method Details
-
withOllamaApi
-
withDefaultOptions
-
withFunctionCallbackContext
@Deprecated public OllamaChatModel.Builder withFunctionCallbackContext(FunctionCallbackResolver functionCallbackContext) Deprecated. -
functionCallbackResolver
public OllamaChatModel.Builder functionCallbackResolver(FunctionCallbackResolver functionCallbackResolver) -
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
-
functionCallbackResolver(org.springframework.ai.model.function.FunctionCallbackResolver)
instead