pub struct RunState {Show 24 fields
pub v: u32,
pub handle: String,
pub agent: String,
pub session: String,
pub transport: String,
pub cwd: PathBuf,
pub owner: ProcessIdentity,
pub conversation: Option<String>,
pub turn: Option<u32>,
pub job: Option<String>,
pub jobs: Vec<String>,
pub state: AgentState,
pub detail: Option<String>,
pub started_unix: u64,
pub since_unix: u64,
pub last_activity_unix: u64,
pub last_line: Option<String>,
pub vendor: Option<String>,
pub steerable: bool,
pub streams: bool,
pub ended: bool,
pub ended_unix: Option<u64>,
pub seq: u64,
pub bytes: u64,
}Expand description
What a run is doing now: <handle>.state.json.
Fields§
§v: u32§handle: String§agent: String§session: String§transport: Stringcli, acp, scv, or terminal (the owner’s takeover).
cwd: PathBuf§owner: ProcessIdentityThe SCV process that owns the run.
conversation: Option<String>§turn: Option<u32>§job: Option<String>The background job the current or last turn serves.
jobs: Vec<String>Every background job its turns served, oldest first (at most 32): a live conversation’s run serves the turns of several.
state: AgentState§detail: Option<String>§started_unix: u64§since_unix: u64When state began.
last_activity_unix: u64§last_line: Option<String>The newest message or tool line, for a quiet run’s explanation.
vendor: Option<String>The agent’s own session ID once known, so an interrupted conversation can be resumed through the agent’s own resume.
steerable: bool§streams: bool§ended: boolThe run’s process ended; nothing more is logged.
ended_unix: Option<u64>When it ended, which is what its age counts from once it has.
seq: u64The last event’s position and the log’s size.
bytes: u64Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunState
impl<'de> Deserialize<'de> for RunState
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 Eq for RunState
impl StructuralPartialEq for RunState
Auto Trait Implementations§
impl Freeze for RunState
impl RefUnwindSafe for RunState
impl Send for RunState
impl Sync for RunState
impl Unpin for RunState
impl UnsafeUnpin for RunState
impl UnwindSafe for RunState
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