pub enum ValidationRepairOutcome {
Validated {
success: ValidationSuccess,
validation_records: Vec<ValidationRecord>,
repair_records: Vec<RepairRecord>,
repair_attempts: Vec<RepairAttemptId>,
},
RepairRequested {
latest_report: ValidationErrorReport,
prompt: RepairPrompt,
validation_records: Vec<ValidationRecord>,
repair_records: Vec<RepairRecord>,
},
Failed {
failure: TerminalValidationFailure,
validation_records: Vec<ValidationRecord>,
repair_records: Vec<RepairRecord>,
exhaustion_record: RepairExhaustionRecord,
},
}Expand description
Enumerates the finite validation repair outcome cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
Validated
Use this variant when the contract needs to represent validated; selecting it has no side effect by itself.
Fields
success: ValidationSuccessSuccess used by this record or request.
validation_records: Vec<ValidationRecord>Validation policy applied before output is accepted as typed data. It controls validator selection, bounds, failure visibility, and local validation behavior.
repair_records: Vec<RepairRecord>Repair policy used after structured output validation fails. It controls whether repair is attempted and which policy gates must approve it.
repair_attempts: Vec<RepairAttemptId>Attempt identifier or attempt history for bounded retry/repair. Use it to preserve ordering and avoid retry loops that cannot be audited.
RepairRequested
Use this variant when the contract needs to represent repair requested; selecting it has no side effect by itself.
Fields
latest_report: ValidationErrorReportLatest report used by this record or request.
prompt: RepairPromptPrompt used by this record or request.
validation_records: Vec<ValidationRecord>Validation policy applied before output is accepted as typed data. It controls validator selection, bounds, failure visibility, and local validation behavior.
repair_records: Vec<RepairRecord>Repair policy used after structured output validation fails. It controls whether repair is attempted and which policy gates must approve it.
Failed
Use this variant when the contract needs to represent failed; selecting it has no side effect by itself.
Fields
failure: TerminalValidationFailureFailure used by this record or request.
validation_records: Vec<ValidationRecord>Validation policy applied before output is accepted as typed data. It controls validator selection, bounds, failure visibility, and local validation behavior.
repair_records: Vec<RepairRecord>Repair policy used after structured output validation fails. It controls whether repair is attempted and which policy gates must approve it.
exhaustion_record: RepairExhaustionRecordExhaustion record used by this record or request.
Trait Implementations§
Source§impl Clone for ValidationRepairOutcome
impl Clone for ValidationRepairOutcome
Source§fn clone(&self) -> ValidationRepairOutcome
fn clone(&self) -> ValidationRepairOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ValidationRepairOutcome
impl Debug for ValidationRepairOutcome
Source§impl<'de> Deserialize<'de> for ValidationRepairOutcome
impl<'de> Deserialize<'de> for ValidationRepairOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ValidationRepairOutcome
impl PartialEq for ValidationRepairOutcome
Source§fn eq(&self, other: &ValidationRepairOutcome) -> bool
fn eq(&self, other: &ValidationRepairOutcome) -> bool
self and other values to be equal, and is used by ==.