pub struct LiveState {Show 16 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,
}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.
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