MCPcopy Create free account
hub / github.com/AI45Lab/Code / tool

Method tool

core/src/agent_api.rs:1229–1231  ·  view source on GitHub ↗

Execute a tool by name, bypassing the LLM.

(&self, name: &str, args: serde_json::Value)

Source from the content-addressed store, hash-verified

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

Calls 1

callMethod · 0.80