Skip to main content

RunRecord

Struct RunRecord 

Source
pub struct RunRecord {
Show 48 fields pub schema_version: u32, pub harness_build: String, pub outcome: String, pub error: Option<String>, pub final_message: Option<String>, pub model_requested: Option<String>, pub model_id: Option<String>, pub effort: Option<String>, pub context: String, pub gated: bool, pub gate_source: String, pub gate_left_out: Vec<String>, pub container: Option<String>, pub container_workdir: String, pub sandboxed: bool, pub sandbox: String, pub network: String, pub allow_read: Vec<String>, pub pass_env: Vec<String>, pub withheld_env: Vec<String>, pub duration_seconds: f64, pub turns: u32, pub empty_turns: u32, pub truncated_turns: u32, pub read_loop: bool, pub peak_read_repeats: u32, pub fold_thrash: bool, pub big_read_turns: u32, pub tool_calls: u32, pub gate_attempts: u32, pub rollbacks: u32, pub provider_retries: u32, pub cost_usd: Option<f64>, pub max_cost_usd: Option<f64>, pub cost_capped: bool, pub fold_budget: Option<usize>, pub turn_usage: Vec<TurnUsage>, pub usage: UsageRecord, pub gate_ms: Vec<u64>, pub gate_turns: Vec<u32>, pub gate_wait_ms: Vec<u64>, pub gate_failures: Vec<String>, pub tool_counts: BTreeMap<String, u32>, pub model_seconds: f64, pub tools_seconds: f64, pub gate_seconds: f64, pub quote_problems: Option<Vec<String>>, pub claim_check: Option<ClaimCheck>,
}

Fields§

§schema_version: u32§harness_build: String

The commit this blyte was built from (build.rs), or unknown.

§outcome: String§error: Option<String>§final_message: Option<String>§model_requested: Option<String>§model_id: Option<String>§effort: Option<String>§context: String§gated: bool§gate_source: String

Where the gate came from: none (ungated) or user (--gate).

§gate_left_out: Vec<String>§container: Option<String>§container_workdir: String§sandboxed: bool

Whether local shell commands ran under macOS seatbelt sandbox isolation.

§sandbox: String

The sandbox mechanism active for the run (container, seatbelt, landlock, landlock-offline, off).

§network: String

Outbound network mode for commands (on or off).

§allow_read: Vec<String>

Filesystem paths permitted for reading despite credential deny-lists.

§pass_env: Vec<String>

Environment variables permitted to pass to commands despite looking like credentials.

§withheld_env: Vec<String>

Names of environment variables withheld from commands by the credential filter.

§duration_seconds: f64§turns: u32§empty_turns: u32§truncated_turns: u32§read_loop: bool§peak_read_repeats: u32§fold_thrash: bool§big_read_turns: u32§tool_calls: u32§gate_attempts: u32§rollbacks: u32§provider_retries: u32§cost_usd: Option<f64>

List-price cost in USD, when the model’s price is known.

§max_cost_usd: Option<f64>

Spending cap in USD given with --max-cost, if any.

§cost_capped: bool

Whether the run stopped because spending reached --max-cost.

§fold_budget: Option<usize>

Fold budget given with --fold-budget, if any.

§turn_usage: Vec<TurnUsage>

Per-call usage (see blyte_agent::run::TurnUsage).

§usage: UsageRecord§gate_ms: Vec<u64>§gate_turns: Vec<u32>§gate_wait_ms: Vec<u64>§gate_failures: Vec<String>§tool_counts: BTreeMap<String, u32>§model_seconds: f64§tools_seconds: f64§gate_seconds: f64§quote_problems: Option<Vec<String>>§claim_check: Option<ClaimCheck>

Implementations§

Source§

impl RunRecord

Source

pub fn from_error(config: &TaskConfig, error: &str, elapsed: Duration) -> Self

A run that never reached the loop, e.g. a missing API key.

Source

pub fn from_run( config: &TaskConfig, model_id: &str, outcome: &Outcome, report: &RunReport, state: &State, elapsed: Duration, ) -> Self

A run the loop completed, whatever its outcome.

Trait Implementations§

Source§

impl Clone for RunRecord

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 RunRecord

Source§

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

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

impl Default for RunRecord

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for RunRecord

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 RunRecord

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 RunRecord

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

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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.