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()modelManagementOptions(ModelManagementOptions modelManagementOptions) observationRegistry(io.micrometer.observation.ObservationRegistry observationRegistry) options(OllamaChatOptions options) retryTemplate(org.springframework.core.retry.RetryTemplate retryTemplate) toolCallingManager(ToolCallingManager toolCallingManager) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
ollamaApi
-
options
-
toolCallingManager
@Deprecated(since="2.0.0", forRemoval=true) public OllamaChatModel.Builder toolCallingManager(ToolCallingManager toolCallingManager) Deprecated, for removal: This API element is subject to removal in a future version.since 2.0.0 for removal in 3.0.0 — internal tool execution inOllamaChatModelis superseded byToolCallingAdvisorused viaChatClient.Sets the tool calling manager used for internal tool execution.- Parameters:
toolCallingManager- the tool calling manager- Returns:
- this builder
-
observationRegistry
public OllamaChatModel.Builder observationRegistry(io.micrometer.observation.ObservationRegistry observationRegistry) -
modelManagementOptions
public OllamaChatModel.Builder modelManagementOptions(ModelManagementOptions modelManagementOptions) -
retryTemplate
public OllamaChatModel.Builder retryTemplate(org.springframework.core.retry.RetryTemplate retryTemplate) -
build
-
OllamaChatModelis superseded byToolCallingAdvisorused viaChatClient.