pub struct AgentSpawnedPayload {
pub agent_id: String,
pub role: String,
pub model: Option<String>,
pub stage_name: Option<String>,
pub background: bool,
pub parent_tool_use_id: Option<String>,
}Expand description
A sub-agent started: one the Agent tool runs, or a team member.
Fields§
§agent_id: StringThe sub-agent’s label (<type>#<id>) or the team member’s label.
role: StringIts agent type; default when none was asked for.
model: Option<String>The model it runs on, when the spawn site knows it.
stage_name: Option<String>The team stage it belongs to; None outside a team.
background: boolWhether it runs in the background (run_in_background).
parent_tool_use_id: Option<String>The parent’s tool call that started it, when one did.
Trait Implementations§
Source§impl Clone for AgentSpawnedPayload
impl Clone for AgentSpawnedPayload
Source§fn clone(&self) -> AgentSpawnedPayload
fn clone(&self) -> AgentSpawnedPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AgentSpawnedPayload
impl Debug for AgentSpawnedPayload
Source§impl JsonSchema for AgentSpawnedPayload
impl JsonSchema for AgentSpawnedPayload
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for AgentSpawnedPayload
impl Serialize for AgentSpawnedPayload
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Forget for AgentSpawnedPayload
impl Freeze for AgentSpawnedPayload
impl Move for AgentSpawnedPayload
impl RefUnwindSafe for AgentSpawnedPayload
impl Send for AgentSpawnedPayloadwhere
RawVecInner: Send,
impl Sync for AgentSpawnedPayloadwhere
RawVecInner: Sync,
impl Unpin for AgentSpawnedPayload
impl UnsafeUnpin for AgentSpawnedPayload
impl UnwindSafe for AgentSpawnedPayloadwhere
RawVecInner: UnwindSafe,
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