Uses of Class
org.springframework.ai.ollama.client.OllamaGenerateResult
Packages that use OllamaGenerateResult
-
Uses of OllamaGenerateResult in org.springframework.ai.ollama.client
Methods in org.springframework.ai.ollama.client that return types with arguments of type OllamaGenerateResultModifier and TypeMethodDescriptionOllamaClient.getSimpleCallback()
protected List<OllamaGenerateResult>
OllamaClient.readGenerateResults
(InputStream inputStream) Reads and processes the results from the InputStream provided by the Ollama Service.Method parameters in org.springframework.ai.ollama.client with type arguments of type OllamaGenerateResultModifier 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.Constructor parameters in org.springframework.ai.ollama.client with type arguments of type OllamaGenerateResultModifierConstructorDescriptionOllamaClient
(String baseUrl, String model, Consumer<OllamaGenerateResult> simpleCallback) Constructs an OllamaClient with the specified base URL, model, and a callback.