Uses of Class
org.springframework.ai.ollama.client.OllamaGenerateResult
-
Uses of OllamaGenerateResult in org.springframework.ai.ollama.client
Modifier and TypeMethodDescriptionOllamaClient.getSimpleCallback()
protected List<OllamaGenerateResult>
OllamaClient.readGenerateResults
(InputStream inputStream) Reads and processes the results from the InputStream provided by the Ollama Service.Modifier and TypeMethodDescriptionprotected AiResponse
OllamaClient.getAiResponse
(List<OllamaGenerateResult> results) Converts the list of OllamaGenerateResult into a structured AiResponse.protected void
OllamaClient.processResponseLine
(String line, List<OllamaGenerateResult> results) Processes a single line from the Ollama response.void
OllamaClient.setSimpleCallback
(Consumer<OllamaGenerateResult> simpleCallback) Sets the callback that handles individual generation results.ModifierConstructorDescriptionOllamaClient
(String baseUrl, String model, Consumer<OllamaGenerateResult> simpleCallback) Constructs an OllamaClient with the specified base URL, model, and a callback.