Execute a tool and return raw output using the registry's default context
(
&self,
name: &str,
args: &serde_json::Value,
)
| 242 | |
| 243 | /// Execute a tool and return raw output using the registry's default context |
| 244 | pub async fn execute_raw( |
| 245 | &self, |
| 246 | name: &str, |
| 247 | args: &serde_json::Value, |
| 248 | ) -> Result<Option<ToolOutput>> { |
| 249 | let ctx = self.context(); |
| 250 | self.execute_raw_with_context(name, args, &ctx).await |
| 251 | } |
| 252 | |
| 253 | /// Execute a tool and return raw output with an external context |
| 254 | pub async fn execute_raw_with_context( |