pub struct BidirectionalSenders {
pub sampling: Option<Arc<dyn SamplingSender>>,
pub elicitation: Option<Arc<dyn ElicitationSender>>,
}Expand description
Configuration for bidirectional senders to attach to context.
Fields§
§sampling: Option<Arc<dyn SamplingSender>>Optional sampling sender for LLM completions.
elicitation: Option<Arc<dyn ElicitationSender>>Optional elicitation sender for user input requests.
Implementations§
Source§impl BidirectionalSenders
impl BidirectionalSenders
Sourcepub fn with_sampling(self, sender: Arc<dyn SamplingSender>) -> Self
pub fn with_sampling(self, sender: Arc<dyn SamplingSender>) -> Self
Sets the sampling sender.
Sourcepub fn with_elicitation(self, sender: Arc<dyn ElicitationSender>) -> Self
pub fn with_elicitation(self, sender: Arc<dyn ElicitationSender>) -> Self
Sets the elicitation sender.
Trait Implementations§
Source§impl Clone for BidirectionalSenders
impl Clone for BidirectionalSenders
Source§fn clone(&self) -> BidirectionalSenders
fn clone(&self) -> BidirectionalSenders
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 moreSource§impl Debug for BidirectionalSenders
impl Debug for BidirectionalSenders
Source§impl Default for BidirectionalSenders
impl Default for BidirectionalSenders
Source§fn default() -> BidirectionalSenders
fn default() -> BidirectionalSenders
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BidirectionalSenders
impl !RefUnwindSafe for BidirectionalSenders
impl Send for BidirectionalSenders
impl Sync for BidirectionalSenders
impl Unpin for BidirectionalSenders
impl !UnwindSafe for BidirectionalSenders
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).