Record Class ChatResponse
java.lang.Object
java.lang.Record
io.quarkiverse.langchain4j.ollama.ChatResponse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedAtrecord component.done()Returns the value of thedonerecord component.static ChatResponsefinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theevalCountrecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.model()Returns the value of themodelrecord component.Returns the value of thepromptEvalCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChatResponse
public ChatResponse(String model, String createdAt, Message message, Boolean done, Integer promptEvalCount, Integer evalCount) Creates an instance of aChatResponserecord class.- Parameters:
model- the value for themodelrecord componentcreatedAt- the value for thecreatedAtrecord componentmessage- the value for themessagerecord componentdone- the value for thedonerecord componentpromptEvalCount- the value for thepromptEvalCountrecord componentevalCount- the value for theevalCountrecord component
-
-
Method Details
-
emptyNotDone
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
done
Returns the value of thedonerecord component.- Returns:
- the value of the
donerecord component
-
promptEvalCount
Returns the value of thepromptEvalCountrecord component.- Returns:
- the value of the
promptEvalCountrecord component
-
evalCount
Returns the value of theevalCountrecord component.- Returns:
- the value of the
evalCountrecord component
-