pub struct CallbackProcessResponder { /* private fields */ }Expand description
Completion and live-output handle passed to CallbackProcessExecutor::start.
Dropping the responder without calling complete, fail, or cancel
automatically fails the pending execution closed so tool calls never hang.
Implementations§
Source§impl CallbackProcessResponder
impl CallbackProcessResponder
Sourcepub fn emit_output(&self, stream: ToolOutputStream, bytes: &[u8])
pub fn emit_output(&self, stream: ToolOutputStream, bytes: &[u8])
Forwards a live stdout or stderr chunk to the sink and bounded capture buffer.
Sourcepub fn complete(&self, output: CallbackProcessOutput)
pub fn complete(&self, output: CallbackProcessOutput)
Completes the process execution with terminal status and bounded output.
Trait Implementations§
Source§impl Drop for CallbackProcessResponder
impl Drop for CallbackProcessResponder
Auto Trait Implementations§
impl Forget for CallbackProcessResponder
impl Freeze for CallbackProcessResponderwhere
*const ArcInner<ExecutionSlot> is !null: Freeze,
PhantomData<ArcInner<ExecutionSlot>>: Freeze,
impl Move for CallbackProcessResponder
impl RefUnwindSafe for CallbackProcessResponder
impl Send for CallbackProcessResponder
impl Sync for CallbackProcessResponder
impl Unpin for CallbackProcessResponder
impl UnsafeUnpin for CallbackProcessResponderwhere
*const ArcInner<ExecutionSlot> is !null: UnsafeUnpin,
PhantomData<ArcInner<ExecutionSlot>>: UnsafeUnpin,
impl UnwindSafe for CallbackProcessResponderwhere
Arc<ExecutionSlot>: UnwindSafe,
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