pub struct SubAgent {
pub id: String,
pub parent: String,
pub label: String,
pub phase: String,
pub kind: String,
pub started: i64,
pub cwd: String,
pub prompt: String,
pub work: String,
pub final_text: String,
pub output: Option<Value>,
}Expand description
One sub-agent of a Run, as its transcript shows it.
Fields§
§id: StringIts own id (a Claude Code agent id, a Codex thread id); empty where the harness gives none.
parent: StringThe id of the sub-agent that started it; empty when the session’s own agent did.
label: StringWhat the run calls it (review:rust, MappingReview, a task’s description).
phase: StringIts workflow phase (Review, Fix); empty where the harness has none.
kind: StringIts agent type (reviewer, task, explore); empty where the harness has none.
started: i64Epoch ms.
cwd: String§prompt: String§work: StringEvery tool input and text it produced.
final_text: StringIts last text to whoever started it: its answer (where a harness has no structured output, the only place findings can be).
output: Option<Value>Its structured output; None where it gave text only.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SubAgent
impl RefUnwindSafe for SubAgent
impl Send for SubAgent
impl Sync for SubAgent
impl Unpin for SubAgent
impl UnsafeUnpin for SubAgent
impl UnwindSafe for SubAgent
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