Record Class DoctorRepairPatchResult
java.lang.Object
java.lang.Record
com.shaft.doctor.repair.DoctorRepairPatchResult
- Record Components:
status- normalized provider statusprovider- provider identifiermodel- model identifierpatches- validated structured patchesfallbackReason- safe failure reason
-
Constructor Summary
ConstructorsConstructorDescriptionDoctorRepairPatchResult(com.shaft.pilot.ai.AiResponseStatus status, String provider, String model, List<DoctorRepairRequest.FilePatch> patches, String fallbackReason) Creates an immutable provider patch result. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefallbackReasonrecord component.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.patches()Returns the value of thepatchesrecord component.provider()Returns the value of theproviderrecord component.com.shaft.pilot.ai.AiResponseStatusstatus()Returns the value of thestatusrecord component.booleanReturns whether a provider produced at least one accepted patch.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DoctorRepairPatchResult
public DoctorRepairPatchResult(com.shaft.pilot.ai.AiResponseStatus status, String provider, String model, List<DoctorRepairRequest.FilePatch> patches, String fallbackReason) Creates an immutable provider patch result.
-
-
Method Details
-
successful
public boolean successful()Returns whether a provider produced at least one accepted patch.- Returns:
- true for a successful non-empty structured patch set
-
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). -
status
-
provider
-
model
-
patches
-
fallbackReason
Returns the value of thefallbackReasonrecord component.- Returns:
- the value of the
fallbackReasonrecord component
-