pub struct LiveState {Show 17 fields
pub pid: u32,
pub feature: String,
pub task: String,
pub title: String,
pub stage: Option<Stage>,
pub stage_detail: Option<String>,
pub last_call: Option<String>,
pub said: Option<String>,
pub thinking: Option<String>,
pub recent: Vec<String>,
pub input_tokens: u64,
pub output_tokens: u64,
pub usd: Option<f64>,
pub finished: Option<String>,
pub started_at: u64,
pub updated_at: u64,
pub agent: Option<LiveAgent>,
}Expand description
What live.json holds.
Fields§
§pid: u32The speccoder process.
feature: StringFeature directory name.
task: StringTask ID.
title: StringTask title.
stage: Option<Stage>The current stage.
stage_detail: Option<String>Its detail (1/2, a commit id).
last_call: Option<String>The last tool call, e.g. edit_file src/lib.rs (allow).
said: Option<String>What the model last said, its first line (a claim).
thinking: Option<String>The last line of the model’s latest reasoning summary (a claim).
recent: Vec<String>The latest tool calls, oldest first (at most RECENT).
input_tokens: u64Tokens of the current attempt.
output_tokens: u64Output tokens of the current attempt.
usd: Option<f64>USD of the current attempt, when priced.
finished: Option<String>Set when the task run ended: its outcome and message.
started_at: u64Unix seconds when the task run started.
updated_at: u64Unix seconds of the last event.
agent: Option<LiveAgent>The external agent making the attempt, when one is.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LiveState
impl<'de> Deserialize<'de> for LiveState
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
impl StructuralPartialEq for LiveState
Auto Trait Implementations§
impl Freeze for LiveState
impl RefUnwindSafe for LiveState
impl Send for LiveState
impl Sync for LiveState
impl Unpin for LiveState
impl UnsafeUnpin for LiveState
impl UnwindSafe for LiveState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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 moreSource§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.
Creates a shared type from an unshared type.