Function scope_register_tool_execution_intercept

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub fn scope_register_tool_execution_intercept(
    scope_uuid: &Uuid,
    name: &str,
    priority: i32,
    callable: ToolExecutionFn,
) -> Result<()>

Register a scope-local tool execution intercept. Execution intercepts can wrap or replace the tool callback inside the owning scope. Each callback returns a canonical tool execution outcome, while its continuation resolves to the raw downstream result JSON.

Parameters

  • scope_uuid: UUID of the active scope that owns the middleware.
  • name: Unique middleware name within that scope.
  • priority: Lower values run earlier in the chain.
  • callable: Execution intercept callback stored under name.

Returns

A Result that is Ok(()) when the intercept was registered.

Errors

Returns FlowError::NotFound when the scope is not active, FlowError::AlreadyExists when the name is already in use on that scope, or an internal error if the runtime owner check fails.