pub struct SubagentMetadata {
pub name: String,
pub description: String,
pub tool_count: usize,
pub tool_names: Vec<String>,
}Expand description
Compact metadata snapshot of a Subagent for parent-side
inspection — the LLM-facing identity (name, description)
plus the tool surface bound at construction. Operators that
list available sub-agents in a parent agent’s system prompt
reach for this struct rather than calling each accessor
individually.
The description is the same one-line summary the
Subagent::builder constructor received; longer dev-side
documentation belongs in code comments, not in metadata.
Fields§
§name: StringLLM-facing tool name. Same value Subagent::name returns.
description: StringOne-line description for parent-side tool listings.
tool_count: usizeTools the sub-agent can dispatch (count).
tool_names: Vec<String>Tool names the sub-agent can dispatch — order unspecified.
Trait Implementations§
Source§impl Clone for SubagentMetadata
impl Clone for SubagentMetadata
Source§fn clone(&self) -> SubagentMetadata
fn clone(&self) -> SubagentMetadata
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 moreAuto Trait Implementations§
impl Freeze for SubagentMetadata
impl RefUnwindSafe for SubagentMetadata
impl Send for SubagentMetadata
impl Sync for SubagentMetadata
impl Unpin for SubagentMetadata
impl UnsafeUnpin for SubagentMetadata
impl UnwindSafe for SubagentMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more