![]() |
Ollama4j
A Java library (wrapper/binding) for Ollama server.
|
Public Member Functions | |
OllamaResult (String response, long responseTime, int httpStatusCode) | |
String | toString () |
Map< String, Object > | getStructuredResponse () |
The type Ollama result.
Definition at line 20 of file OllamaResult.java.
io.github.ollama4j.models.response.OllamaResult.OllamaResult | ( | String | response, |
long | responseTime, | ||
int | httpStatusCode ) |
Definition at line 45 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 70 of file OllamaResult.java.
String io.github.ollama4j.models.response.OllamaResult.toString | ( | ) |
Definition at line 52 of file OllamaResult.java.