pub struct SubagentNotifier {
notifications: UnboundedSender<Notification>,
subagent_id_counter: AtomicUsize,
}Expand description
Connects the subagent tool to a llimorse-chat app
New subagents registered with this will send the appropriate notifications to the UI and thus register themselves with it.
Fields§
§notifications: UnboundedSender<Notification>A notification channel to inform the llimorse-chat app of notifications
subagent_id_counter: AtomicUsizeA counter to auto-generate distinct subagent IDs
Implementations§
Source§impl SubagentNotifier
impl SubagentNotifier
Sourcepub fn new(notifications: &NotificationChannel) -> Self
pub fn new(notifications: &NotificationChannel) -> Self
Create a new subagent notifier object for a llimorse-chat app.
New subagents registered with this will send the appropriate notifications over
notifications and thus register themselves with the UI.
Trait Implementations§
Source§impl Debug for SubagentNotifier
impl Debug for SubagentNotifier
Auto Trait Implementations§
impl !Freeze for SubagentNotifier
impl RefUnwindSafe for SubagentNotifier
impl Send for SubagentNotifier
impl Sync for SubagentNotifier
impl Unpin for SubagentNotifier
impl UnsafeUnpin for SubagentNotifier
impl UnwindSafe for SubagentNotifier
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