Record Class PromptRequest
java.lang.Object
java.lang.Record
fr.tiogars.chat.domains.prompt.models.PromptRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themaxTokensrecord component.model()Returns the value of themodelrecord component.@NotBlank Stringprompt()Returns the value of thepromptrecord component.Returns the value of thesystemPromptrecord component.Returns the value of thetemperaturerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PromptRequest
public PromptRequest(@NotBlank @NotBlank String prompt, String systemPrompt, String model, Double temperature, Integer maxTokens) Creates an instance of aPromptRequestrecord class.- Parameters:
prompt- the value for thepromptrecord componentsystemPrompt- the value for thesystemPromptrecord componentmodel- the value for themodelrecord componenttemperature- the value for thetemperaturerecord componentmaxTokens- the value for themaxTokensrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
prompt
Returns the value of thepromptrecord component.- Returns:
- the value of the
promptrecord component
-
systemPrompt
Returns the value of thesystemPromptrecord component.- Returns:
- the value of the
systemPromptrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
temperature
Returns the value of thetemperaturerecord component.- Returns:
- the value of the
temperaturerecord component
-
maxTokens
Returns the value of themaxTokensrecord component.- Returns:
- the value of the
maxTokensrecord component
-