Type Alias Tool Execution Next Fn

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

pub type ToolExecutionNextFn = Arc<dyn Fn(Json) -> Pin<Box<dyn Future<Output = Result<Json>> + Send>> + Send + Sync>;

Continuation type invoked by tool execution intercepts.

Execution intercepts receive this callable as their next continuation and can call it with modified arguments, wrap it, or skip it entirely.

Parameters

  • First argument: JSON argument payload to pass to the remaining execution chain.

Returns

A future resolving to the tool result JSON.

Errors

The future resolves to an error when the remaining execution chain fails.

Aliased Type

1pub struct ToolExecutionNextFn { /* private fields */ }