Execute a tool by name, bypassing the LLM.
(&self, name: &str, args: serde_json::Value)
| 1227 | |
| 1228 | /// Execute a tool by name, bypassing the LLM. |
| 1229 | pub async fn tool(&self, name: &str, args: serde_json::Value) -> Result<ToolCallResult> { |
| 1230 | DirectToolRuntime::from_session(self).call(name, args).await |
| 1231 | } |
| 1232 | |
| 1233 | // ======================================================================== |
| 1234 | // Advanced optional Queue API |