pub struct AsyncCallbackManagerForRetrieverRun { /* private fields */ }Expand description
Async callback manager for retriever run.
Implementations§
Source§impl AsyncCallbackManagerForRetrieverRun
impl AsyncCallbackManagerForRetrieverRun
Sourcepub fn from_sync(inner: CallbackManagerForRetrieverRun) -> Self
pub fn from_sync(inner: CallbackManagerForRetrieverRun) -> Self
Create from sync callback manager.
Sourcepub fn get_sync(&self) -> CallbackManagerForRetrieverRun
pub fn get_sync(&self) -> CallbackManagerForRetrieverRun
Get the sync version.
Sourcepub fn parent_run_id(&self) -> Option<Uuid>
pub fn parent_run_id(&self) -> Option<Uuid>
Get the parent run ID.
Sourcepub fn handlers(&self) -> &[Arc<dyn BaseCallbackHandler>]
pub fn handlers(&self) -> &[Arc<dyn BaseCallbackHandler>]
Get the handlers.
Sourcepub fn get_child(&self, tag: Option<&str>) -> AsyncCallbackManager
pub fn get_child(&self, tag: Option<&str>) -> AsyncCallbackManager
Get a child callback manager.
Sourcepub async fn on_retriever_end(&self, documents: &[Value])
pub async fn on_retriever_end(&self, documents: &[Value])
Run when retriever ends running (async).
Sourcepub async fn on_retriever_error(&self, error: &dyn Error)
pub async fn on_retriever_error(&self, error: &dyn Error)
Run when retriever errors (async).
Sourcepub fn get_noop_manager() -> Self
pub fn get_noop_manager() -> Self
Return a noop manager.
Trait Implementations§
Source§impl Clone for AsyncCallbackManagerForRetrieverRun
impl Clone for AsyncCallbackManagerForRetrieverRun
Source§fn clone(&self) -> AsyncCallbackManagerForRetrieverRun
fn clone(&self) -> AsyncCallbackManagerForRetrieverRun
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 AsyncCallbackManagerForRetrieverRun
impl !RefUnwindSafe for AsyncCallbackManagerForRetrieverRun
impl Send for AsyncCallbackManagerForRetrieverRun
impl Sync for AsyncCallbackManagerForRetrieverRun
impl Unpin for AsyncCallbackManagerForRetrieverRun
impl !UnwindSafe for AsyncCallbackManagerForRetrieverRun
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