Skip to main content

ToolExecutionResult

Type Alias ToolExecutionResult 

Source
pub type ToolExecutionResult = Result<ToolExecutionOutcome, ToolExecutionError>;
Expand description

Result returned by a runtime-owned tool executor.

ToolExecutionError represents executor infrastructure failure or cooperative cancellation. Tool-domain failures should be returned as a failed ToolExecutionOutcome so runtime can durably resolve the pending tool call.

Aliased Type§

pub enum ToolExecutionResult {
    Ok(ToolExecutionOutcome),
    Err(ToolExecutionError),
}

Variants§

§1.0.0

Ok(ToolExecutionOutcome)

Contains the success value

§1.0.0

Err(ToolExecutionError)

Contains the error value