Ollama4j
A Java library (wrapper/binding) for Ollama server.
Loading...
Searching...
No Matches
io.github.ollama4j.models.chat.OllamaChatResult Class Reference
Inheritance diagram for io.github.ollama4j.models.chat.OllamaChatResult:
io.github.ollama4j.models.response.OllamaResult

Public Member Functions

 OllamaChatResult (String response, long responseTime, int httpStatusCode, List< OllamaChatMessage > chatHistory)
 
List< OllamaChatMessagegetChatHistory ()
 
- Public Member Functions inherited from io.github.ollama4j.models.response.OllamaResult
 OllamaResult (String response, long responseTime, int httpStatusCode)
 
String toString ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ OllamaChatResult()

io.github.ollama4j.models.chat.OllamaChatResult.OllamaChatResult ( String response,
long responseTime,
int httpStatusCode,
List< OllamaChatMessage > chatHistory )

Definition at line 15 of file OllamaChatResult.java.

Member Function Documentation

◆ getChatHistory()

List< OllamaChatMessage > io.github.ollama4j.models.chat.OllamaChatResult.getChatHistory ( )

Definition at line 21 of file OllamaChatResult.java.


The documentation for this class was generated from the following file: