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 Details

    • RequestedChanges

      public RequestedChanges(List<RequestedOperation> operations, List<AttributeDesignPermission> attributeDesign, @Nullable ProposedTurn.Kind responseKind, @Nullable String responseMessage, @Nullable String language)
      Creates an instance of a RequestedChanges record class.
      Parameters:
      operations - the value for the operations record component
      attributeDesign - the value for the attributeDesign record component
      responseKind - the value for the responseKind record component
      responseMessage - the value for the responseMessage record component
      language - the value for the language record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • operations

      public List<RequestedOperation> operations()
      Returns the value of the operations record component.
      Returns:
      the value of the operations record component
    • attributeDesign

      public List<AttributeDesignPermission> attributeDesign()
      Returns the value of the attributeDesign record component.
      Returns:
      the value of the attributeDesign record component
    • responseKind

      public @Nullable ProposedTurn.Kind responseKind()
      Returns the value of the responseKind record component.
      Returns:
      the value of the responseKind record component
    • responseMessage

      public @Nullable String responseMessage()
      Returns the value of the responseMessage record component.
      Returns:
      the value of the responseMessage record component
    • language

      public @Nullable String language()
      Returns the value of the language record component.
      Returns:
      the value of the language record component