#[non_exhaustive]pub struct RunLogSummary {
pub run_id: String,
pub agent: String,
pub status: RunStatus,
pub started_at: DateTime<Utc>,
pub finished_at: Option<DateTime<Utc>>,
pub tokens: Usage,
pub cost_estimate: Option<Cost>,
}Expand description
Compact per-run summary returned by GET /runs. Snapshot at fetch
time — may differ from the live store if a transition raced. Drops
steps[]; use GET /runs/{id} for full detail.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.run_id: StringRunId rendered to its JSON-safe string form (the wire shape).
agent: String§status: RunStatus§started_at: DateTime<Utc>UTC wall-clock at run creation; immutable post-fetch.
finished_at: Option<DateTime<Utc>>When the run reached a terminal status; None while still running.
tokens: UsageAggregate prompt/completion token usage.
cost_estimate: Option<Cost>Optional cost estimate aggregated from per-step LlmCall records.
Implementations§
Source§impl RunLogSummary
impl RunLogSummary
Sourcepub fn from_run_log(log: &RunLog) -> Self
pub fn from_run_log(log: &RunLog) -> Self
Drop a klieo_runlog::RunLog’s heavy steps[] and keep only
the headline fields for list-page responses.
Trait Implementations§
Source§impl Clone for RunLogSummary
impl Clone for RunLogSummary
Source§fn clone(&self) -> RunLogSummary
fn clone(&self) -> RunLogSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RunLogSummary
impl Debug for RunLogSummary
Auto Trait Implementations§
impl Freeze for RunLogSummary
impl RefUnwindSafe for RunLogSummary
impl Send for RunLogSummary
impl Sync for RunLogSummary
impl Unpin for RunLogSummary
impl UnsafeUnpin for RunLogSummary
impl UnwindSafe for RunLogSummary
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