pub struct JobChange {
pub job: String,
pub tool: String,
pub agent: 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: agent, or agent_<name> from SCV 0.3.0 and
older, which had one tool per agent.
agent: StringThe agent that runs the job, such as codex; empty from SCV 0.3.0
and older. JobChange::agent_name reads either form.
status: JobStatusrunning when the call started it; otherwise how it ended.
task: StringThe first line of the delegated prompt, shortened; empty when unknown.