pub struct TerminalValidationFailure {
pub schema_id: OutputSchemaId,
pub schema_version: SchemaVersion,
pub validation_attempts: Vec<ValidationAttemptId>,
pub repair_attempts: Vec<RepairAttemptId>,
pub source_attempt_ids: Vec<AttemptId>,
pub redacted_error_summary: String,
pub candidate_content_ref: ContentRef,
pub retry_exhausted: bool,
pub privacy: PrivacyClass,
pub record: ValidationRecord,
}Expand description
Holds terminal validation failure application-layer state or configuration. Use it with the documented coordinator methods; run, journal, event, provider, or port effects are called out on those methods rather than on construction.
Fields§
§schema_id: OutputSchemaIdStable schema id used for typed lineage, lookup, or dedupe.
schema_version: SchemaVersionWire schema version used for compatibility checks.
validation_attempts: Vec<ValidationAttemptId>Validation policy applied before output is accepted as typed data. It controls validator selection, bounds, failure visibility, and local validation behavior.
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.
source_attempt_ids: Vec<AttemptId>Attempt identifier or attempt history for bounded retry/repair. Use it to preserve ordering and avoid retry loops that cannot be audited.
redacted_error_summary: StringRedacted summary for display, logs, events, or telemetry. It should describe the value without exposing raw private content.
candidate_content_ref: ContentRefContent reference for the candidate value being validated.
retry_exhausted: boolWhether retry exhausted is enabled. Policy, validation, or routing code uses this flag to choose the explicit behavior.
privacy: PrivacyClassPrivacy class used for projection, telemetry, and raw-content access decisions.
record: ValidationRecordRecord used by this record or request.
Implementations§
Source§impl TerminalValidationFailure
impl TerminalValidationFailure
Sourcepub fn from_reports(
reports: &[ValidationErrorReport],
repair_attempts: Vec<RepairAttemptId>,
retry_exhausted: bool,
) -> Self
pub fn from_reports( reports: &[ValidationErrorReport], repair_attempts: Vec<RepairAttemptId>, retry_exhausted: bool, ) -> Self
Constructs this value from reports. Use it when adapting canonical SDK records without introducing a second behavior path.
Sourcepub fn as_agent_error(&self) -> AgentError
pub fn as_agent_error(&self) -> AgentError
Returns this value as agent error. The accessor is side-effect free and keeps ownership with the caller.
Trait Implementations§
Source§impl Clone for TerminalValidationFailure
impl Clone for TerminalValidationFailure
Source§fn clone(&self) -> TerminalValidationFailure
fn clone(&self) -> TerminalValidationFailure
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 TerminalValidationFailure
impl Debug for TerminalValidationFailure
Source§impl<'de> Deserialize<'de> for TerminalValidationFailure
impl<'de> Deserialize<'de> for TerminalValidationFailure
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>,
impl Eq for TerminalValidationFailure
Source§impl PartialEq for TerminalValidationFailure
impl PartialEq for TerminalValidationFailure
Source§fn eq(&self, other: &TerminalValidationFailure) -> bool
fn eq(&self, other: &TerminalValidationFailure) -> bool
self and other values to be equal, and is used by ==.