pub trait BuiltinToolExecutor: Send + Sync {
// Required methods
fn execute_builtin_tool<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tool_name: &'life1 str,
args: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn list_builtin_tools(&self) -> Result<Vec<BuiltinToolInfo>>;
}Expand description
Executor that runs built-in vtcode tools from code snippets.
Required Methods§
Sourcefn execute_builtin_tool<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tool_name: &'life1 str,
args: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn execute_builtin_tool<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tool_name: &'life1 str,
args: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute a built-in tool by name with JSON args.
Sourcefn list_builtin_tools(&self) -> Result<Vec<BuiltinToolInfo>>
fn list_builtin_tools(&self) -> Result<Vec<BuiltinToolInfo>>
List built-in tools exposed to code (a curated, safe subset).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".