![]() |
Ollama4j
A Java library (wrapper/binding) for Ollama server.
|
Public Member Functions | |
| OllamaResult (String response, String thinking, long responseTime, int httpStatusCode) | |
| String | toString () |
| Map< String, Object > | getStructuredResponse () |
The type Ollama result.
Definition at line 31 of file OllamaResult.java.
| io.github.ollama4j.models.response.OllamaResult.OllamaResult | ( | String | response, |
| String | thinking, | ||
| long | responseTime, | ||
| int | httpStatusCode ) |
Definition at line 64 of file OllamaResult.java.
| Map< String, Object > io.github.ollama4j.models.response.OllamaResult.getStructuredResponse | ( | ) |
Get the structured response if the response is a JSON object.
| IllegalArgumentException | if the response is not a valid JSON object |
Definition at line 104 of file OllamaResult.java.
| String io.github.ollama4j.models.response.OllamaResult.toString | ( | ) |
Definition at line 72 of file OllamaResult.java.