Skip to main content

RunReport

Struct RunReport 

Source
pub struct RunReport {
Show 17 fields pub schema_version: &'static str, pub oneharness_version: &'static str, pub prompt: String, pub model: Option<String>, pub resume: Option<String>, pub fork: bool, pub permission_mode: PermissionMode, pub bypass_permissions: bool, pub dry_run: bool, pub schema: Option<Value>, pub schema_max_retries: Option<u32>, pub batch: Option<BatchReport>, pub mock_rules: Option<Value>, pub spy_file: Option<String>, pub history_file: Option<String>, pub config_files: Vec<String>, pub results: Vec<RunResult>,
}
Expand description

The top-level run report written to stdout.

Fields§

§schema_version: &'static str§oneharness_version: &'static str§prompt: String

The prompt sent. On an ordinary run this is the prompt every result shares; on a batch run (see batch) it repeats the first prompt for back-compat, and each result’s own prompt field is authoritative.

§model: Option<String>§resume: Option<String>

The session id being continued, when --resume was passed; else null.

§fork: bool

Whether the resumed session was forked (--fork) rather than appended to. false unless --resume was given with --fork.

§permission_mode: PermissionMode

The normalized approval mode requested for this run (see the README support matrix). Each harness maps it to its own mechanism.

§bypass_permissions: bool

Back-compat convenience: true exactly when permission_mode is bypass. Retained so existing consumers keep working; new consumers should read permission_mode.

§dry_run: bool§schema: Option<Value>

The JSON Schema applied to this run (structured output), or null when none was requested. Echoed so a consumer sees the exact constraint each result was validated against.

§schema_max_retries: Option<u32>

Maximum retries allowed per harness under the validate/retry loop; null when no schema was requested.

§batch: Option<BatchReport>

Same-prefix batch metadata when this run fanned one harness over more than one prompt; null on an ordinary run. Its presence is the signal a consumer keys on to read each result’s own prompt.

§mock_rules: Option<Value>

The parsed --mock-rules ruleset this run was intercepted with; null when no mocking was requested. Present so a consumer can tell a mocked run’s report from a clean one without out-of-band state.

§spy_file: Option<String>

The spy-log path the mock hook appended tool-call records to (absolute); null when none was requested.

§history_file: Option<String>

The history session file this run streamed normalized records to (absolute); null when history was not enabled (or under --print-command, where nothing runs). The programmatic handle a consumer captures to read the session back later with oneharness history show.

§config_files: Vec<String>

Config files that shaped this run, in layering order (user first, project last); empty under --no-config or when none exist.

§results: Vec<RunResult>

Trait Implementations§

Source§

impl Clone for RunReport

Source§

fn clone(&self) -> RunReport

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 RunReport

Source§

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

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

impl Serialize for RunReport

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

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> 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.