Record Class RequestedChanges
java.lang.Object
java.lang.Record
io.jmix.dynmodelai.agent.planning.RequestedChanges
public record RequestedChanges(List<RequestedOperation> operations, List<AttributeDesignPermission> attributeDesign, @Nullable ProposedTurn.Kind responseKind, @Nullable String responseMessage, @Nullable String language)
extends Record
Fixed requirements, or an immediate non-plan response with no authorized changes.
language is the
ISO 639-1 code of the language the user's latest message is written in; texts for the user use it.-
Constructor Summary
ConstructorsConstructorDescriptionRequestedChanges(List<RequestedOperation> operations, List<AttributeDesignPermission> attributeDesign, @Nullable ProposedTurn.Kind responseKind, @Nullable String responseMessage, @Nullable String language) Creates an instance of aRequestedChangesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributeDesignrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Stringlanguage()Returns the value of thelanguagerecord component.Returns the value of theoperationsrecord component.@Nullable ProposedTurn.KindReturns the value of theresponseKindrecord component.@Nullable StringReturns the value of theresponseMessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RequestedChanges
public RequestedChanges(List<RequestedOperation> operations, List<AttributeDesignPermission> attributeDesign, @Nullable ProposedTurn.Kind responseKind, @Nullable String responseMessage, @Nullable String language) Creates an instance of aRequestedChangesrecord class.- Parameters:
operations- the value for theoperationsrecord componentattributeDesign- the value for theattributeDesignrecord componentresponseKind- the value for theresponseKindrecord componentresponseMessage- the value for theresponseMessagerecord componentlanguage- the value for thelanguagerecord component
-
-
Method Details
-
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). -
operations
Returns the value of theoperationsrecord component.- Returns:
- the value of the
operationsrecord component
-
attributeDesign
Returns the value of theattributeDesignrecord component.- Returns:
- the value of the
attributeDesignrecord component
-
responseKind
Returns the value of theresponseKindrecord component.- Returns:
- the value of the
responseKindrecord component
-
responseMessage
Returns the value of theresponseMessagerecord component.- Returns:
- the value of the
responseMessagerecord component
-
language
Returns the value of thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-