(&self, tool_name: &str, tool_args: Value)
| 203 | } |
| 204 | |
| 205 | async fn fallback(&self, tool_name: &str, tool_args: Value) -> Result<Option<Value>> { |
| 206 | if !self.allow_profile_scoped_fallback { |
| 207 | let handshake = self.handshake()?; |
| 208 | if handshake.project_path.is_none() { |
| 209 | return Ok(None); |
| 210 | } |
| 211 | return Ok(Some( |
| 212 | call_in_process_tool(&handshake, tool_name, tool_args).await?, |
| 213 | )); |
| 214 | } |
| 215 | let result = handle_profile_scoped_lcm_tool_call(tool_name, tool_args).await?; |
| 216 | Ok(Some(result.value)) |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | async fn call_in_process_tool( |
no test coverage detected