pub struct ChannelProgressCallback { /* private fields */ }Expand description
Progress callback that sends events through an mpsc channel.
Used to bridge subagent execution progress back to the TUI event loop.
Implementations§
Source§impl ChannelProgressCallback
impl ChannelProgressCallback
Sourcepub fn new(
tx: UnboundedSender<SubagentEvent>,
subagent_id: String,
cancel_token: Option<CancellationToken>,
) -> Self
pub fn new( tx: UnboundedSender<SubagentEvent>, subagent_id: String, cancel_token: Option<CancellationToken>, ) -> Self
Create a new channel-based progress callback with a unique subagent ID.
Trait Implementations§
Source§impl Debug for ChannelProgressCallback
impl Debug for ChannelProgressCallback
Source§impl SubagentProgressCallback for ChannelProgressCallback
impl SubagentProgressCallback for ChannelProgressCallback
Source§fn on_started(&self, subagent_name: &str, task: &str)
fn on_started(&self, subagent_name: &str, task: &str)
Called when the subagent starts executing.
Source§fn on_tool_call(
&self,
subagent_name: &str,
tool_name: &str,
tool_id: &str,
args: &HashMap<String, Value>,
)
fn on_tool_call( &self, subagent_name: &str, tool_name: &str, tool_id: &str, args: &HashMap<String, Value>, )
Called when the subagent invokes a tool.
Source§fn on_tool_complete(
&self,
subagent_name: &str,
tool_name: &str,
tool_id: &str,
success: bool,
)
fn on_tool_complete( &self, subagent_name: &str, tool_name: &str, tool_id: &str, success: bool, )
Called when a subagent tool call completes.
Auto Trait Implementations§
impl Freeze for ChannelProgressCallback
impl RefUnwindSafe for ChannelProgressCallback
impl Send for ChannelProgressCallback
impl Sync for ChannelProgressCallback
impl Unpin for ChannelProgressCallback
impl UnsafeUnpin for ChannelProgressCallback
impl UnwindSafe for ChannelProgressCallback
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