Skip to main content

SampleReport

Struct SampleReport 

Source
pub struct SampleReport {
Show 14 fields pub sample: u32, pub failures: Vec<AssertionFailure>, pub harness_error: Option<String>, pub signature: String, pub judge: Vec<CriterionOutcome>, pub provider_failures: usize, pub cards_created: usize, pub acts_proposed: usize, pub acts_refused: usize, pub commands_journaled: usize, pub abandoned: bool, pub discarded_answers: Vec<String>, pub answer: String, pub tasks: TaskScores,
}
Expand description

One execution of one item.

Fields§

§sample: u32

1-based position in the item’s samples.

§failures: Vec<AssertionFailure>

Deterministic expectations that did not hold.

§harness_error: Option<String>

The harness could not even set the sample up. Distinct from a failing assertion: nothing was measured.

§signature: String

Canonical rendering of what this run did, for counting distinct behaviours across samples.

§judge: Vec<CriterionOutcome>

Judge opinions about this sample, when the item asked for any.

§provider_failures: usize

How many provider attempts failed or fell back.

§cards_created: usize

How many cards the turn created.

§acts_proposed: usize

How many acts the message was understood to ask for.

The pair below is the whole point of recording it: a turn where the model proposed something and nothing was journaled is a turn the runtime REFUSED, and that is a fact about the model’s reading rather than about the effect. A report that shows only the effect says an assistant is perfect exactly where its reading is worst — every refusal reads as a clean turn — which flatters a design whose whole claim is that it makes bad readings harmless.

§acts_refused: usize

How many of them the reduction refused outright.

Only rejected: an act the domain turned down. Not the one that changes nothing, not the one awaiting a confirmation, not the one a later act superseded — see refused_proposals.

§commands_journaled: usize

How many commands the turn journaled.

Not comparable one-to-one with Self::acts_proposed: one act can produce several commands and a command type is not an operation name. It is here to be read against zero — nothing journaled after something was proposed — and not as a ratio of the two.

§abandoned: bool

The turn produced no usable answer at all.

§discarded_answers: Vec<String>

The stable code of every answer the runtime threw away whole this turn, in order and with repeats.

The third number of a reliability report, and the one neither of the other two can reach. The pass rate is about effects and the refused proposals are about a plan the runtime declined to carry out; this is about a plan that never became one, because the runtime read the model’s answer and refused it whole — a citation the user’s message does not contain, a question that does not quote what it answers, a document that does not match its schema.

Codes rather than the full records, because a report is read in aggregate and the runtime’s own wording names positions inside one turn’s plan. The full records, reasons included, are on Observation::discarded_answers.

§answer: String

What the turn actually said, when the run was configured to keep it.

Empty unless ExecutionConfig::record_answers is on — see there for why that is the default. It is here for a person curating a corpus, never for an assertion: nothing in this crate reads it, and an expectation that did would be measuring prose.

§tasks: TaskScores

How each understanding task did, where the item says what it expects of it.

Implementations§

Source§

impl SampleReport

Source

pub fn passed(&self) -> bool

Returns true when every deterministic expectation held.

Trait Implementations§

Source§

impl Clone for SampleReport

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SampleReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SampleReport

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for SampleReport

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for SampleReport

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for SampleReport

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more