Type Alias Tool Execution Fn
Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -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 type ToolExecutionFn = Arc<dyn Fn(ToolExecutionContext, Arc<dyn Fn(Value) -> Pin<Box<dyn Future<Output = Result<ToolExecutionResult, FlowError>> + Send>> + Sync + Send>) -> Pin<Box<dyn Future<Output = Result<ToolExecutionInterceptOutcome, FlowError>> + Send>> + Sync + Send>;
Wrap or replace tool execution with access to the full call context.
The argument payload is carried on the context rather than passed separately, and the managed tool_call_id is available.
Parameters
- First argument: Per-call
ToolExecutionContext. - Second argument: Continuation for the remaining execution chain.
Returns
A future resolving to the canonical tool execution outcome, containing the tool result and any pending lifecycle marks produced by this intercept.
Errors
The future resolves to an error when the intercept or remaining execution chain fails.