pub fn register_tool_execution_intercept(
name: &str,
priority: i32,
callable: ToolExecutionFn,
) -> Result<()>Expand description
Register a global tool execution intercept. Execution intercepts can wrap or replace the tool callback.
§Parameters
name: Unique middleware name in the global registry.priority: Lower values run earlier in the chain.callable: Execution intercept callback stored undername.
§Returns
A Result that is Ok(()) when the intercept was registered.
§Errors
Returns FlowError::AlreadyExists when the name is already in
use or an internal error if the runtime state cannot be updated.