pub struct OutChannel { /* private fields */ }
Implementations§
Source§impl OutChannel
impl OutChannel
Trait Implementations§
Source§impl NotificationHandler for OutChannel
impl NotificationHandler for OutChannel
fn get_outgoing_channel(&self) -> &Option<Sender<Notification>>
fn get_channel_name(&self) -> &String
Source§async fn notify(&self, content: NotificationContent) -> bool
async fn notify(&self, content: NotificationContent) -> bool
Send a notification with the given content. Read more
Source§fn forward_notifications(&self, from_channel: Receiver<Notification>)
fn forward_notifications(&self, from_channel: Receiver<Notification>)
Forward notifications from an external receiver into this agent’s notification
output channel.
Source§fn forward_multiple_notifications<I>(&self, channels: I)
fn forward_multiple_notifications<I>(&self, channels: I)
Merge any number of
Receiver<Notification>
streams into one,
and forward all messages into this agent’s notification output channel.async fn notify_done(&self, success: Success, resp: Response) -> bool
async fn notify_prompt_request(&self, req: ChatRequest) -> bool
async fn notify_poompt_success(&self, resp: ChatResponse) -> bool
async fn notify_prompt_error(&self, error_message: String) -> bool
async fn notify_tool_request(&self, tool_call: ToolCall) -> bool
async fn notify_tool_success(&self, tool_result: String) -> bool
async fn notify_tool_error(&self, error_message: String) -> bool
async fn notify_token(&self, token: Token) -> bool
async fn notify_mcp_tool_notification(&self, notification: String) -> bool
async fn notify_custom(&self, custom_val: Value) -> bool
Auto Trait Implementations§
impl Freeze for OutChannel
impl RefUnwindSafe for OutChannel
impl Send for OutChannel
impl Sync for OutChannel
impl Unpin for OutChannel
impl UnwindSafe for OutChannel
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