pub struct JobResult {
pub session: String,
pub job: String,
pub agent: String,
pub state: AgentState,
pub detail: Option<String>,
pub reply: Option<String>,
pub error: Option<String>,
pub truncated: bool,
pub outcome: Option<JobOutcome>,
pub finished_unix_seconds: Option<u64>,
}Expand description
A background job’s result, for a job_result request: where it stands
and, once it has ended, its agent’s reply or error, bounded by
MAX_JOB_RESULT_BYTES. The reply and error are untrusted
delegated-agent text.
Fields§
§session: StringThe session that owns it.
job: StringIts handle in that session, such as job-3.
agent: StringThe agent that runs it, such as codex.
state: AgentStateWhat it is doing, as the workbench lists it.
detail: Option<String>SCV’s words for that state.
reply: Option<String>The agent’s reply, once the job has ended with one.
error: Option<String>Why it failed, once it has failed.
truncated: boolThe reply or the error was cut to MAX_JOB_RESULT_BYTES.
outcome: Option<JobOutcome>A reviewed job’s outcome, while the session that ran it still holds the job.
finished_unix_seconds: Option<u64>When it ended.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JobResult
impl<'de> Deserialize<'de> for JobResult
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 JobResult
impl StructuralPartialEq for JobResult
Auto Trait Implementations§
impl Freeze for JobResult
impl RefUnwindSafe for JobResult
impl Send for JobResult
impl Sync for JobResult
impl Unpin for JobResult
impl UnsafeUnpin for JobResult
impl UnwindSafe for JobResult
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