pub struct StreamingSender { /* private fields */ }Expand description
Sender side — used by agent loop to emit chunks.
Implementations§
Source§impl StreamingSender
impl StreamingSender
Sourcepub fn add_tool_start(&self, name: impl Into<String>, id: impl Into<String>)
pub fn add_tool_start(&self, name: impl Into<String>, id: impl Into<String>)
Signal tool execution started.
Sourcepub fn add_tool_result(
&self,
name: impl Into<String>,
output: impl Into<String>,
)
pub fn add_tool_result( &self, name: impl Into<String>, output: impl Into<String>, )
Send tool result.
Sourcepub fn add_step_done(&self, step: usize)
pub fn add_step_done(&self, step: usize)
Signal step completion.
Trait Implementations§
Source§impl Clone for StreamingSender
impl Clone for StreamingSender
Source§fn clone(&self) -> StreamingSender
fn clone(&self) -> StreamingSender
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StreamingSender
impl RefUnwindSafe for StreamingSender
impl Send for StreamingSender
impl Sync for StreamingSender
impl Unpin for StreamingSender
impl UnsafeUnpin for StreamingSender
impl UnwindSafe for StreamingSender
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