pub struct Completed {
pub agent: String,
pub prompt: String,
pub result: String,
pub agent_id: Option<String>,
pub model: Option<String>,
pub tokens: Option<u64>,
pub duration_ms: Option<u64>,
}Expand description
One agent launch that Claude Code recorded as completed: the agent type,
the prompt it was given, and the text of its result (a foreground
result’s text parts; a background notification’s <result> body, or the
whole notification when it has none).
Fields§
§agent: String§prompt: String§result: String§agent_id: Option<String>The agent’s id, from the launch’s result or its notification’s
<task-id>. What the outcome ledger dedupes on.
model: Option<String>toolUseResult.resolvedModel of the launch.
tokens: Option<u64>Tokens the agent used: totalTokens, or <subagent_tokens>.
duration_ms: Option<u64>Wall time: totalDurationMs, or <duration_ms>.
Auto Trait Implementations§
impl Freeze for Completed
impl RefUnwindSafe for Completed
impl Send for Completed
impl Sync for Completed
impl Unpin for Completed
impl UnsafeUnpin for Completed
impl UnwindSafe for Completed
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