pub struct SubagentIdentity { /* private fields */ }Expand description
A subagent: its type and the call that started it.
The starting call’s identity makes the subagent unique across nested subagents and ties it to the call that launched it.
Implementations§
Source§impl SubagentIdentity
impl SubagentIdentity
Sourcepub fn new(name: impl Into<String>, started_by: Option<CallIdentity>) -> Self
pub fn new(name: impl Into<String>, started_by: Option<CallIdentity>) -> Self
A subagent of type name started by started_by; None when the
dispatcher of the starting call attached no identity.
Sourcepub fn started_by(&self) -> Option<&CallIdentity>
pub fn started_by(&self) -> Option<&CallIdentity>
The call that started this subagent, if its dispatcher identified it.
Trait Implementations§
Source§impl Clone for SubagentIdentity
impl Clone for SubagentIdentity
Source§impl Debug for SubagentIdentity
impl Debug for SubagentIdentity
impl Eq for SubagentIdentity
Source§impl Hash for SubagentIdentity
impl Hash for SubagentIdentity
Source§impl PartialEq for SubagentIdentity
impl PartialEq for SubagentIdentity
impl StructuralPartialEq for SubagentIdentity
Auto Trait Implementations§
impl Freeze for SubagentIdentity
impl RefUnwindSafe for SubagentIdentity
impl Send for SubagentIdentity
impl Sync for SubagentIdentity
impl Unpin for SubagentIdentity
impl UnsafeUnpin for SubagentIdentity
impl UnwindSafe for SubagentIdentity
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