pub struct JobRecord {Show 26 fields
pub v: u32,
pub session: String,
pub job: String,
pub agent: String,
pub task: String,
pub prompt: String,
pub arguments: Value,
pub workspace: PathBuf,
pub label: String,
pub started_by: JobOrigin,
pub reviewed: bool,
pub owner: ProcessIdentity,
pub state: AgentState,
pub created_unix: u64,
pub updated_unix: u64,
pub finished_unix: Option<u64>,
pub conversation: Option<String>,
pub worktree: Option<WorktreeRef>,
pub reply: Option<String>,
pub error: Option<String>,
pub mode: Option<String>,
pub reported: bool,
pub interrupted: Option<String>,
pub resumed_as: Option<String>,
pub resumed_from: Option<String>,
pub dismissed: bool,
}Expand description
One background job, as the ledger keeps it.
Fields§
§v: u32§session: String§job: String§agent: String§task: String§prompt: StringThe delegated prompt, bounded.
arguments: ValueThe call’s other arguments (cwd, model, effort, session,
worktree, …), without the prompt.
workspace: PathBuf§label: StringWho the session serves, such as TUI or workbench.
started_by: JobOrigin§reviewed: bool§owner: ProcessIdentityThe SCV process that runs it.
state: AgentState§created_unix: u64§updated_unix: u64§finished_unix: Option<u64>§conversation: Option<String>The conversation it ran a turn of, once known.
worktree: Option<WorktreeRef>§reply: Option<String>§error: Option<String>§mode: Option<String>What SCV knew of the permission mode the agent ran in: verified <mode>, or unverified for an agent that reports none SCV reads.
reported: boolThe result reached the model or the client.
interrupted: Option<String>Why it stopped before finishing, for an interrupted job.
resumed_as: Option<String>The job it was resumed as, <session>/<job>.
resumed_from: Option<String>The interrupted job this one resumes, <session>/<job>.
dismissed: boolThe owner dismissed it: what is left only keeps its number taken until it is pruned, and nothing lists or loads it.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JobRecord
impl<'de> Deserialize<'de> for JobRecord
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 JobRecord
Auto Trait Implementations§
impl Freeze for JobRecord
impl RefUnwindSafe for JobRecord
impl Send for JobRecord
impl Sync for JobRecord
impl Unpin for JobRecord
impl UnsafeUnpin for JobRecord
impl UnwindSafe for JobRecord
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