pub struct SubagentConnector {
id: SubagentId,
chat_history: Arc<Mutex<ChatHistory>>,
notifications: UnboundedSender<Notification>,
}Expand description
Connects a subagent to a llimorse-chat app
Fields§
§id: SubagentIdThe auto-generated subagent ID
chat_history: Arc<Mutex<ChatHistory>>The subagents chat history
notifications: UnboundedSender<Notification>A notification channel to inform the llimorse-chat app of notifications
Implementations§
Source§impl SubagentConnector
impl SubagentConnector
Sourcefn new(id: SubagentId, notifications: UnboundedSender<Notification>) -> Self
fn new(id: SubagentId, notifications: UnboundedSender<Notification>) -> Self
Create a new subagent connector for a llimorse-chat app.
id is the generated subagent ID, notifications is a channel to inform the UI of
changes.
Sourcefn notify_update(&self)
fn notify_update(&self)
Notify the UI that this subagent’s history has been updated
Trait Implementations§
Source§impl Debug for SubagentConnector
impl Debug for SubagentConnector
Source§impl Drop for SubagentConnector
impl Drop for SubagentConnector
Source§impl SubagentConnector for SubagentConnector
impl SubagentConnector for SubagentConnector
Auto Trait Implementations§
impl Freeze for SubagentConnector
impl RefUnwindSafe for SubagentConnector
impl Send for SubagentConnector
impl Sync for SubagentConnector
impl Unpin for SubagentConnector
impl UnsafeUnpin for SubagentConnector
impl UnwindSafe for SubagentConnector
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