Record Class ElementActionResult
java.lang.Object
java.lang.Record
com.shaft.mcp.ElementActionResult
public record ElementActionResult(String activeEngine, boolean recorded, McpCodeBlock codeBlock, List<String> warnings)
extends Record
Result returned by unified, engine-dispatching
element_* tools. activeEngine
always echoes which ActiveEngine handled the call (design doc amendment A2).-
Constructor Summary
ConstructorsConstructorDescriptionElementActionResult(String activeEngine, boolean recorded, McpCodeBlock codeBlock, List<String> warnings) Creates an immutable element action result. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactiveEnginerecord component.Returns the value of thecodeBlockrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanrecorded()Returns the value of therecordedrecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
ElementActionResult
public ElementActionResult(String activeEngine, boolean recorded, McpCodeBlock codeBlock, List<String> warnings) Creates an immutable element action result.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
activeEngine
Returns the value of theactiveEnginerecord component.- Returns:
- the value of the
activeEnginerecord component
-
recorded
public boolean recorded()Returns the value of therecordedrecord component.- Returns:
- the value of the
recordedrecord component
-
codeBlock
Returns the value of thecodeBlockrecord component.- Returns:
- the value of the
codeBlockrecord component
-
warnings
-