Record Class PropTreeChangeSuggestion
java.lang.Object
java.lang.Record
com.inductiveautomation.perspective.designer.workspace.propertyeditor.ai.PropTreeChangeSuggestion
public record PropTreeChangeSuggestion(@Nullable String rationale, String path, com.inductiveautomation.ignition.common.gson.JsonElement value)
extends Record
One row of the agent's structured reply: a path into the PROPS tree plus the JSON value to write
at that path, with a sentence explaining the change. Multiple suggestions add up to the full set
of edits the agent is proposing.
-
Constructor Summary
ConstructorsConstructorDescriptionPropTreeChangeSuggestion(@Nullable String rationale, String path, com.inductiveautomation.ignition.common.gson.JsonElement value) Creates an instance of aPropTreeChangeSuggestionrecord class. -
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.path()Returns the value of thepathrecord component.@Nullable StringReturns the value of therationalerecord component.final StringtoString()Returns a string representation of this record class.com.inductiveautomation.ignition.common.gson.JsonElementvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
PropTreeChangeSuggestion
public PropTreeChangeSuggestion(@Nullable String rationale, String path, com.inductiveautomation.ignition.common.gson.JsonElement value) Creates an instance of aPropTreeChangeSuggestionrecord class.- Parameters:
rationale- the value for therationalerecord componentpath- the value for thepathrecord componentvalue- the value for thevaluerecord 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). -
rationale
Returns the value of therationalerecord component.- Returns:
- the value of the
rationalerecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
value
public com.inductiveautomation.ignition.common.gson.JsonElement value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-