pub struct ProgressSender { /* private fields */ }Expand description
What a tool call reports progress through. The engine hands every call
one that reaches the session’s event stream as AgentEvent::ToolProgress,
rate-limited per call; reports after the call returns are dropped.
Implementations§
Source§impl ProgressSender
impl ProgressSender
pub fn noop(id: impl Into<String>) -> Self
pub fn new(id: impl Into<String>) -> Self
pub fn with_callback( id: impl Into<String>, cb: Arc<dyn ProgressCallback>, ) -> Self
pub fn send(&self, data: &str)
pub fn update(&self, update: ProgressUpdate)
pub fn tool_use_id(&self) -> &str
Trait Implementations§
Source§impl Clone for ProgressSender
impl Clone for ProgressSender
Auto Trait Implementations§
impl !RefUnwindSafe for ProgressSender
impl !UnwindSafe for ProgressSender
impl Forget for ProgressSender
impl Freeze for ProgressSender
impl Move for ProgressSender
impl Send for ProgressSender
impl Sync for ProgressSender
impl Unpin for ProgressSender
impl UnsafeUnpin for ProgressSender
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