ReadonlyContext

Trait ReadonlyContext 

Source
pub trait ReadonlyContext: Send + Sync {
    // Required methods
    fn invocation_id(&self) -> &str;
    fn agent_name(&self) -> &str;
    fn user_id(&self) -> &str;
    fn app_name(&self) -> &str;
    fn session_id(&self) -> &str;
    fn branch(&self) -> &str;
    fn user_content(&self) -> &Content;
}
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 invocation_id(&self) -> &str

Source

fn agent_name(&self) -> &str

Source

fn user_id(&self) -> &str

Source

fn app_name(&self) -> &str

Source

fn session_id(&self) -> &str

Source

fn branch(&self) -> &str

Source

fn user_content(&self) -> &Content

Implementors§