pub struct SubagentCall {
pub subagent_name: String,
pub input: String,
pub output: Option<String>,
}Expand description
Represents a single subagent execution call
§Example
use claude_agent_sdk::subagents::SubagentCall;
let call = SubagentCall {
subagent_name: "reviewer".to_string(),
input: "Review this code".to_string(),
output: None,
};Fields§
§subagent_name: StringName of the subagent to call
input: StringInput to provide to the subagent
output: Option<String>Output from the subagent (None if not yet executed)
Implementations§
Trait Implementations§
Source§impl Clone for SubagentCall
impl Clone for SubagentCall
Source§fn clone(&self) -> SubagentCall
fn clone(&self) -> SubagentCall
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 SubagentCall
impl Debug for SubagentCall
Source§impl<'de> Deserialize<'de> for SubagentCall
impl<'de> Deserialize<'de> for SubagentCall
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 SubagentCall
impl RefUnwindSafe for SubagentCall
impl Send for SubagentCall
impl Sync for SubagentCall
impl Unpin for SubagentCall
impl UnwindSafe for SubagentCall
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