Skip to main content

GenerationEvaluation

Struct GenerationEvaluation 

Source
pub struct GenerationEvaluation<'c> { /* private fields */ }
Expand description

A decision is frozen before this stage exists. No generation value is stored in an Evaluation’s exact or semantic value maps.

Implementations§

Source§

impl<'c> GenerationEvaluation<'c>

Source

pub fn judgment(&self) -> &Judgment

Available at stage start, before any generation supply.

Source

pub fn pending(&self) -> Vec<GenerationRequest>

Declaration order, then selected item order. Repairs retain item order.

Source

pub fn request_document( &self, step: &str, instance: &[String], target: u32, scope: &Scope, ) -> Result<RequestDoc, RequestIdentityError>

Source

pub fn check_output( &self, step: &str, instance: &[String], raw: &RawOutput, ) -> Result<Result<(), Unresolved>, SupplyError>

Record-level validation for runtime retry/fallback decisions. Declared invalid fields are accepted at this boundary and handled by repair.

Source

pub fn check_attempt_output( &mut self, step: &str, instance: &[String], raw: &RawOutput, ) -> Result<Result<(), Unresolved>, SupplyError>

Validate an attempt without resolving its request. Ownership notices survive a transport retry or fallback that later returns a valid record.

Source

pub fn supply( &mut self, step: &str, instance: &[String], supplied: Supplied, ) -> Result<(), GenerationError>

One scripted supply, with deterministic local attempt lineage.

Source

pub fn supply_attempt( &mut self, step: &str, instance: &[String], supplied: Supplied, attempt: &str, attempts: u32, ) -> Result<(), GenerationError>

Supply the final runtime outcome of a request. attempts includes transport retries and fallbacks, not earlier repair rounds.

Source

pub fn note_cached_attempt(&mut self, attempt: &str, decision: &str)

Mark only slots supplied by this cached attempt, preserving their origin. A later repair or backstop does not inherit another attempt’s delivery.

Source

pub fn withhold( &mut self, step: &str, instance: &[String], reason: TextReason, ) -> Result<(), GenerationError>

Runtime withholding (including missing output) ends only unresolved slots. It never replaces a valid field or changes the judgment.

Source

pub fn verify_ownership(&self, judgment: &mut Judgment, text: &mut TextResult)

Restore source-owned values in a host copy before publication. Returns notices in the text result, never in the judgment. The source is private.

Source

pub fn finish( &self, ) -> Result<(Judgment, EvidenceRecord, Option<TextResult>), GenerationError>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.