pub struct JobChange {
pub job: String,
pub tool: String,
pub status: JobStatus,
pub task: String,
}Expand description
A background job a tool call started, or whose result the call showed
the model (tool.completed.jobs). A session’s clients keep it open while
its jobs run, since closing the session cancels them.
A job appears once as running, from the agent_* call that started it,
and once more with how it ended, from the agent_wait, agent_status, or
agent_cancel call through which the model saw that result. A job whose
result the model sees in a report turn is settled by that turn’s
TurnOrigin::jobs instead.
Fields§
§job: StringThe job’s handle, such as job-1.
tool: StringThe delegating tool, such as agent_codex.
status: JobStatusrunning when the call started it; otherwise how it ended.
task: StringThe first line of the delegated prompt, shortened; empty when unknown.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JobChange
impl<'de> Deserialize<'de> for JobChange
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 JobChange
impl StructuralPartialEq for JobChange
Auto Trait Implementations§
impl Freeze for JobChange
impl RefUnwindSafe for JobChange
impl Send for JobChange
impl Sync for JobChange
impl Unpin for JobChange
impl UnsafeUnpin for JobChange
impl UnwindSafe for JobChange
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