Record Class ChatRequest
java.lang.Object
java.lang.Record
io.quarkiverse.langchain4j.ollama.ChatRequest
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ChatRequest.Builderbuilder()final booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.messages()Returns the value of themessagesrecord component.model()Returns the value of themodelrecord component.options()Returns the value of theoptionsrecord component.stream()Returns the value of thestreamrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChatRequest
public ChatRequest(String model, List<Message> messages, Options options, String format, Boolean stream) Creates an instance of aChatRequestrecord class.- Parameters:
model- the value for themodelrecord componentmessages- the value for themessagesrecord componentoptions- the value for theoptionsrecord componentformat- the value for theformatrecord componentstream- the value for thestreamrecord component
-
-
Method Details
-
builder
-
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
-
messages
Returns the value of themessagesrecord component.- Returns:
- the value of the
messagesrecord component
-
options
Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
stream
Returns the value of thestreamrecord component.- Returns:
- the value of the
streamrecord component
-