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;
}
Expand description

Core traits and types.

Always available regardless of feature flags. Includes:

  • Agent - The fundamental trait for all agents
  • Tool / Toolset - For extending agents with capabilities
  • Session / State - For managing conversation context
  • Event - For streaming agent responses
  • AdkError / Result - Unified error handling

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§