Skip to main content

Result

Type Alias Result 

Source
pub type Result<T> = Result<T, AgentsError>;
Expand description

A specialized Result type for the Agents SDK.

This type alias simplifies function signatures by providing a default error type of AgentsError.

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(AgentsError)

Contains the error value