Ollama4j
A Java library (wrapper/binding) for Ollama server.
|
Public Member Functions | |
OllamaChatResult (String response, long responseTime, int httpStatusCode, List< OllamaChatMessage > chatHistory) | |
List< OllamaChatMessage > | getChatHistory () |
Public Member Functions inherited from io.github.ollama4j.models.response.OllamaResult | |
OllamaResult (String response, long responseTime, int httpStatusCode) | |
String | toString () |
Specific chat-API result that contains the chat history sent to the model and appends the answer as OllamaChatResult
given by the OllamaChatMessageRole#ASSISTANT
role.
Definition at line 11 of file OllamaChatResult.java.
io.github.ollama4j.models.chat.OllamaChatResult.OllamaChatResult | ( | String | response, |
long | responseTime, | ||
int | httpStatusCode, | ||
List< OllamaChatMessage > | chatHistory ) |
Definition at line 15 of file OllamaChatResult.java.
List< OllamaChatMessage > io.github.ollama4j.models.chat.OllamaChatResult.getChatHistory | ( | ) |
Definition at line 21 of file OllamaChatResult.java.