pub struct SubagentOutput {
pub subagent_name: String,
pub messages: Vec<Value>,
}Expand description
Output from a subagent execution
§Example
use claude_agent_sdk::subagents::SubagentOutput;
let output = SubagentOutput {
subagent_name: "reviewer".to_string(),
messages: vec![],
};Fields§
§subagent_name: StringName of the subagent that produced this output
messages: Vec<Value>Messages produced by the subagent Note: This is a placeholder - in a full implementation, this would contain actual Message types from the SDK
Trait Implementations§
Source§impl Clone for SubagentOutput
impl Clone for SubagentOutput
Source§fn clone(&self) -> SubagentOutput
fn clone(&self) -> SubagentOutput
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 moreSource§impl Debug for SubagentOutput
impl Debug for SubagentOutput
Source§impl<'de> Deserialize<'de> for SubagentOutput
impl<'de> Deserialize<'de> for SubagentOutput
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
Auto Trait Implementations§
impl Freeze for SubagentOutput
impl RefUnwindSafe for SubagentOutput
impl Send for SubagentOutput
impl Sync for SubagentOutput
impl Unpin for SubagentOutput
impl UnwindSafe for SubagentOutput
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