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§
Ok(ToolExecutionOutcome)
Contains the success value
Err(ToolExecutionError)
Contains the error value