Skip to main content

ToolResult

Type Alias ToolResult 

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

The outcome of a tool invocation.

Aliased Type§

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

Variants§

§1.0.0

Ok(ToolOutput)

Contains the success value

§1.0.0

Err(ToolError)

Contains the error value