InvocationContext

Trait InvocationContext 

Source
pub trait InvocationContext: CallbackContext {
    // Required methods
    fn agent(&self) -> Arc<dyn Agent>;
    fn memory(&self) -> Option<Arc<dyn Memory>>;
    fn session(&self) -> &dyn Session;
    fn run_config(&self) -> &RunConfig;
    fn end_invocation(&self);
    fn ended(&self) -> bool;
}

Required Methods§

Source

fn agent(&self) -> Arc<dyn Agent>

Source

fn memory(&self) -> Option<Arc<dyn Memory>>

Source

fn session(&self) -> &dyn Session

Source

fn run_config(&self) -> &RunConfig

Source

fn end_invocation(&self)

Source

fn ended(&self) -> bool

Implementors§