pub trait FallbackHandler: Send + Sync {
// Required method
fn handle<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
error: &'life1 ToolError,
invocation: &'life2 ToolInvocation,
) -> Pin<Box<dyn Future<Output = FallbackResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Handler for tool execution failures.
FallbackHandler allows workflows to recover from tool failures using configurable strategies (retry, skip, custom handlers).