pub struct BackgroundResult {
pub name: String,
pub kind: BackgroundResultKind,
pub content: String,
pub tokens_used: u64,
}Expand description
A result delivered from a background agent (subagent or team) back to the parent agent’s conversation. The agent loop drains these before each LLM call and injects them as user-role messages so the model can reference them.
Fields§
§name: StringHuman-readable name (e.g. “explore”, “backend-team”).
kind: BackgroundResultKindWhether this was a subagent or a team.
content: StringThe final content / summary produced by the background agent.
tokens_used: u64Token usage.
Trait Implementations§
Source§impl Clone for BackgroundResult
impl Clone for BackgroundResult
Source§fn clone(&self) -> BackgroundResult
fn clone(&self) -> BackgroundResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BackgroundResult
impl RefUnwindSafe for BackgroundResult
impl Send for BackgroundResult
impl Sync for BackgroundResult
impl Unpin for BackgroundResult
impl UnsafeUnpin for BackgroundResult
impl UnwindSafe for BackgroundResult
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