(&self, tool_name: &str, tool_args: Value)
| 191 | } |
| 192 | |
| 193 | async fn call(&self, tool_name: &str, tool_args: Value) -> Result<Value> { |
| 194 | let handshake = self.handshake()?; |
| 195 | #[cfg(unix)] |
| 196 | { |
| 197 | call_default_tool(&handshake, tool_name, tool_args).await |
| 198 | } |
| 199 | #[cfg(not(unix))] |
| 200 | { |
| 201 | call_in_process_tool(&handshake, tool_name, tool_args).await |
| 202 | } |
| 203 | } |
| 204 | |
| 205 | async fn fallback(&self, tool_name: &str, tool_args: Value) -> Result<Option<Value>> { |
| 206 | if !self.allow_profile_scoped_fallback { |
no test coverage detected