Record Class PlanningRequest
java.lang.Object
java.lang.Record
io.jmix.dynmodelai.agent.planning.PlanningRequest
public record PlanningRequest(String userText, @Nullable EditorModelSnapshot editorSnapshot, Locale locale)
extends Record
Input supplied to the product planner for one run.
locale is the user's interface language.-
Constructor Summary
ConstructorsConstructorDescriptionPlanningRequest(String userText, @Nullable EditorModelSnapshot editorSnapshot, Locale locale) Creates an instance of aPlanningRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable EditorModelSnapshotReturns the value of theeditorSnapshotrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.The interface language by its English name, as the prompts name it; English when the locale has none.locale()Returns the value of thelocalerecord component.final StringtoString()Returns a string representation of this record class.userText()Returns the value of theuserTextrecord component.
-
Constructor Details
-
PlanningRequest
public PlanningRequest(String userText, @Nullable EditorModelSnapshot editorSnapshot, Locale locale) Creates an instance of aPlanningRequestrecord class.- Parameters:
userText- the value for theuserTextrecord componenteditorSnapshot- the value for theeditorSnapshotrecord componentlocale- the value for thelocalerecord component
-
-
Method Details
-
interfaceLanguage
The interface language by its English name, as the prompts name it; English when the locale has none. -
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). -
userText
Returns the value of theuserTextrecord component.- Returns:
- the value of the
userTextrecord component
-
editorSnapshot
Returns the value of theeditorSnapshotrecord component.- Returns:
- the value of the
editorSnapshotrecord component
-
locale
Returns the value of thelocalerecord component.- Returns:
- the value of the
localerecord component
-