(_func: Function)
| 207 | /// Wrap a JS function `(name, args) => result` for fallible tool request intercepts. |
| 208 | #[cfg(not(target_arch = "wasm32"))] |
| 209 | pub 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")] |
| 214 | pub fn wrap_js_tool_request_intercept_fn(func: Function) -> ToolInterceptFn { |