pub struct RunLog {
pub run_id: RunId,
pub agent: String,
pub started_at: DateTime<Utc>,
pub finished_at: Option<DateTime<Utc>>,
pub status: RunStatus,
pub steps: Vec<Step>,
pub tokens: Usage,
pub cost_estimate: Option<Cost>,
}Expand description
The aggregate RunLog view per spec §8.2.
Fields§
§run_id: RunIdRun identifier.
agent: StringAgent name.
started_at: DateTime<Utc>First-event timestamp.
finished_at: Option<DateTime<Utc>>Last-event timestamp, populated when the run is no longer Running.
status: RunStatusLifecycle status.
steps: Vec<Step>Ordered list of steps.
tokens: UsageAggregate usage.
cost_estimate: Option<Cost>Optional cost estimate; None until a pricing table is wired (Wave 7+ carryover).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunLog
impl<'de> Deserialize<'de> for RunLog
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for RunLog
impl JsonSchema for RunLog
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for RunLog
impl RefUnwindSafe for RunLog
impl Send for RunLog
impl Sync for RunLog
impl Unpin for RunLog
impl UnsafeUnpin for RunLog
impl UnwindSafe for RunLog
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more