pub struct NoDeferral;Expand description
No deferral: every input is processed in the slice it arrives in, even if that interrupts a pending tool call. This matches platforms without a place to hold messages (e.g. a plain SQS-driven Lambda).
Trait Implementations§
Source§impl DeferQueue for NoDeferral
impl DeferQueue for NoDeferral
Source§fn push<'life0, 'async_trait>(
&'life0 mut self,
_input: InputMessage,
_message_id: String,
) -> Pin<Box<dyn Future<Output = Result<bool, Box<dyn Error + Send + Sync>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn push<'life0, 'async_trait>(
&'life0 mut self,
_input: InputMessage,
_message_id: String,
) -> Pin<Box<dyn Future<Output = Result<bool, Box<dyn Error + Send + Sync>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Hold back an input for later redelivery. Returns
Ok(false) if this
queue cannot defer, in which case the step processes the input
immediately (interrupting any pending tool call).Source§fn drain<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Vec<(InputMessage, String)>, Box<dyn Error + Send + Sync>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn drain<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Vec<(InputMessage, String)>, Box<dyn Error + Send + Sync>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Take back all deferred inputs. Called when the thread can process them
(the pending tool call was answered or deliberately interrupted).
Auto Trait Implementations§
impl Freeze for NoDeferral
impl RefUnwindSafe for NoDeferral
impl Send for NoDeferral
impl Sync for NoDeferral
impl Unpin for NoDeferral
impl UnsafeUnpin for NoDeferral
impl UnwindSafe for NoDeferral
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