Function wrap_tool_exec_fn

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 wrap_tool_exec_fn(
    cb: NemoRelayToolExecCb,
    user_data: *mut c_void,
    free_fn: NemoRelayFreeFn,
) -> Box<dyn Fn(Value) -> Pin<Box<dyn Future<Output = Result<Value>> + Send>> + Send + Sync>

Wrap a C tool execution callback into an async Rust closure.