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

Public Member Functions

 OllamaChatResult (OllamaChatResponseModel responseModel, List< OllamaChatMessage > chatHistory)
 
String toString ()
 
String getResponse ()
 
int getHttpStatusCode ()
 
long getResponseTime ()
 

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 15 of file OllamaChatResult.java.

Constructor & Destructor Documentation

◆ OllamaChatResult()

io.github.ollama4j.models.chat.OllamaChatResult.OllamaChatResult ( OllamaChatResponseModel responseModel,
List< OllamaChatMessage > chatHistory )

Definition at line 22 of file OllamaChatResult.java.

Member Function Documentation

◆ getHttpStatusCode()

int io.github.ollama4j.models.chat.OllamaChatResult.getHttpStatusCode ( )

Definition at line 47 of file OllamaChatResult.java.

◆ getResponse()

String io.github.ollama4j.models.chat.OllamaChatResult.getResponse ( )

Definition at line 42 of file OllamaChatResult.java.

◆ getResponseTime()

long io.github.ollama4j.models.chat.OllamaChatResult.getResponseTime ( )

Definition at line 52 of file OllamaChatResult.java.

◆ toString()

String io.github.ollama4j.models.chat.OllamaChatResult.toString ( )

Definition at line 33 of file OllamaChatResult.java.


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