pub struct AsyncCallbackManagerForChainRun { /* private fields */ }Expand description
Async callback manager for chain run.
Implementations§
Source§impl AsyncCallbackManagerForChainRun
impl AsyncCallbackManagerForChainRun
Sourcepub fn from_sync(inner: CallbackManagerForChainRun) -> Self
pub fn from_sync(inner: CallbackManagerForChainRun) -> Self
Create from sync callback manager.
Sourcepub fn get_sync(&self) -> CallbackManagerForChainRun
pub fn get_sync(&self) -> CallbackManagerForChainRun
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_chain_end(&self, outputs: &HashMap<String, Value>)
pub async fn on_chain_end(&self, outputs: &HashMap<String, Value>)
Run when chain ends running (async).
Sourcepub async fn on_chain_error(&self, error: &dyn Error)
pub async fn on_chain_error(&self, error: &dyn Error)
Run when chain errors (async).
Sourcepub async fn on_agent_action(&self, action: &Value)
pub async fn on_agent_action(&self, action: &Value)
Run when agent action is received (async).
Sourcepub async fn on_agent_finish(&self, finish: &Value)
pub async fn on_agent_finish(&self, finish: &Value)
Run when agent finish is received (async).
Sourcepub fn get_noop_manager() -> Self
pub fn get_noop_manager() -> Self
Return a noop manager.
Trait Implementations§
Source§impl Clone for AsyncCallbackManagerForChainRun
impl Clone for AsyncCallbackManagerForChainRun
Source§fn clone(&self) -> AsyncCallbackManagerForChainRun
fn clone(&self) -> AsyncCallbackManagerForChainRun
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 AsyncCallbackManagerForChainRun
impl !RefUnwindSafe for AsyncCallbackManagerForChainRun
impl Send for AsyncCallbackManagerForChainRun
impl Sync for AsyncCallbackManagerForChainRun
impl Unpin for AsyncCallbackManagerForChainRun
impl !UnwindSafe for AsyncCallbackManagerForChainRun
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