Skip to main content

ToolResult

Type Alias ToolResult 

Source
pub type ToolResult = Result<ToolOutput, ToolCallError>;
Expand description

Result type returned by tool handlers.

Aliased Type§

pub enum ToolResult {
    Ok(ToolOutput),
    Err(ToolCallError),
}

Variants§

§1.0.0

Ok(ToolOutput)

Contains the success value

§1.0.0

Err(ToolCallError)

Contains the error value