Record Class McpCodingPartnerStep
java.lang.Object
java.lang.Record
com.shaft.mcp.McpCodingPartnerStep
- Record Components:
index- one-based step indexinstruction- normalized user instructionreuseHint- existing source/anchor to prefer before creating codeproofTool- MCP tool that can prove the step or its locator before code is accepted
-
Constructor Summary
ConstructorsConstructorDescriptionMcpCodingPartnerStep(int index, String instruction, String reuseHint, String proofTool) Creates an immutable coding partner step. -
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.intindex()Returns the value of theindexrecord component.Returns the value of theinstructionrecord component.Returns the value of theproofToolrecord component.Returns the value of thereuseHintrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpCodingPartnerStep
-
-
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. -
index
-
instruction
Returns the value of theinstructionrecord component.- Returns:
- the value of the
instructionrecord component
-
reuseHint
-
proofTool
-