pub struct AsyncCallbackManagerForToolRun { /* private fields */ }Expand description
Async callback manager for tool run.
Implementations§
Source§impl AsyncCallbackManagerForToolRun
impl AsyncCallbackManagerForToolRun
Sourcepub fn from_sync(inner: CallbackManagerForToolRun) -> Self
pub fn from_sync(inner: CallbackManagerForToolRun) -> Self
Create from sync callback manager.
Sourcepub fn get_sync(&self) -> CallbackManagerForToolRun
pub fn get_sync(&self) -> CallbackManagerForToolRun
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_tool_end(&self, output: &str)
pub async fn on_tool_end(&self, output: &str)
Run when tool ends running (async).
Sourcepub async fn on_tool_error(&self, error: &dyn Error)
pub async fn on_tool_error(&self, error: &dyn Error)
Run when tool errors (async).
Sourcepub fn get_noop_manager() -> Self
pub fn get_noop_manager() -> Self
Return a noop manager.
Trait Implementations§
Source§impl Clone for AsyncCallbackManagerForToolRun
impl Clone for AsyncCallbackManagerForToolRun
Source§fn clone(&self) -> AsyncCallbackManagerForToolRun
fn clone(&self) -> AsyncCallbackManagerForToolRun
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 AsyncCallbackManagerForToolRun
impl !RefUnwindSafe for AsyncCallbackManagerForToolRun
impl Send for AsyncCallbackManagerForToolRun
impl Sync for AsyncCallbackManagerForToolRun
impl Unpin for AsyncCallbackManagerForToolRun
impl !UnwindSafe for AsyncCallbackManagerForToolRun
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