Record Class DoctorRepairAiRequest
java.lang.Object
java.lang.Record
com.shaft.doctor.repair.DoctorRepairAiRequest
- Record Components:
enabled- whether provider patch generation is requestedapprovalPolicy- processing-location and evidence-category approvaltimeout- provider timeoutbudget- provider budgetmaxSourceFiles- maximum approved source files submittedmaxSourceBytes- maximum aggregate submitted source bytesmaxResponseBytes- maximum structured response bytes
public record DoctorRepairAiRequest(boolean enabled, com.shaft.pilot.ai.ApprovalPolicy approvalPolicy, Duration timeout, com.shaft.pilot.ai.AiBudget budget, int maxSourceFiles, long maxSourceBytes, long maxResponseBytes)
extends Record
Explicit policy for optional provider-generated structured repair patches.
-
Constructor Summary
ConstructorsConstructorDescriptionDoctorRepairAiRequest(boolean enabled, com.shaft.pilot.ai.ApprovalPolicy approvalPolicy, Duration timeout, com.shaft.pilot.ai.AiBudget budget, int maxSourceFiles, long maxSourceBytes, long maxResponseBytes) Creates a validated provider patch policy. -
Method Summary
Modifier and TypeMethodDescriptioncom.shaft.pilot.ai.ApprovalPolicyReturns the value of theapprovalPolicyrecord component.com.shaft.pilot.ai.AiBudgetbudget()Returns the value of thebudgetrecord component.static DoctorRepairAiRequestdefaults(com.shaft.pilot.ai.ApprovalPolicy approvalPolicy) Creates conservative enabled defaults.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of themaxResponseBytesrecord component.longReturns the value of themaxSourceBytesrecord component.intReturns the value of themaxSourceFilesrecord component.timeout()Returns the value of thetimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DoctorRepairAiRequest
public DoctorRepairAiRequest(boolean enabled, com.shaft.pilot.ai.ApprovalPolicy approvalPolicy, Duration timeout, com.shaft.pilot.ai.AiBudget budget, int maxSourceFiles, long maxSourceBytes, long maxResponseBytes) Creates a validated provider patch policy.
-
-
Method Details
-
defaults
Creates conservative enabled defaults.- Parameters:
approvalPolicy- explicit provider approval- Returns:
- enabled request
-
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. -
enabled
-
approvalPolicy
public com.shaft.pilot.ai.ApprovalPolicy approvalPolicy()Returns the value of theapprovalPolicyrecord component.- Returns:
- the value of the
approvalPolicyrecord component
-
timeout
-
budget
-
maxSourceFiles
public int maxSourceFiles()Returns the value of themaxSourceFilesrecord component.- Returns:
- the value of the
maxSourceFilesrecord component
-
maxSourceBytes
public long maxSourceBytes()Returns the value of themaxSourceBytesrecord component.- Returns:
- the value of the
maxSourceBytesrecord component
-
maxResponseBytes
public long maxResponseBytes()Returns the value of themaxResponseBytesrecord component.- Returns:
- the value of the
maxResponseBytesrecord component
-