Result

Type Alias Result 

Source
pub type Result<T> = Result<T, AdkError>;
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

Aliased Type§

pub enum Result<T> {
    Ok(T),
    Err(AdkError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(AdkError)

Contains the error value