MCPcopy Create free account
hub / github.com/NVIDIA/NeMo-Relay / wrap_js_tool_request_intercept_fn

Function wrap_js_tool_request_intercept_fn

crates/wasm/src/callable.rs:209–211  ·  view source on GitHub ↗
(_func: Function)

Source from the content-addressed store, hash-verified

207/// Wrap a JS function `(name, args) => result` for fallible tool request intercepts.
208#[cfg(not(target_arch = "wasm32"))]
209pub fn wrap_js_tool_request_intercept_fn(_func: Function) -> ToolInterceptFn {
210 Arc::new(move |_name: &str, args: Json| Ok(args))
211}
212
213#[cfg(target_arch = "wasm32")]
214pub fn wrap_js_tool_request_intercept_fn(func: Function) -> ToolInterceptFn {

Calls 3

json_to_jsFunction · 0.85
relay_error_from_jsFunction · 0.85
relay_json_from_jsFunction · 0.85