Skip to main content

ToolRuntime

Trait ToolRuntime 

Source
pub trait ToolRuntime: Send + Sync {
    // Required method
    fn start(
        &self,
        request: StartToolExecution,
    ) -> Result<ToolExecutionHandle, ToolRuntimeError>;
}
Expand description

Abstract tool runtime.

Required Methods§

Source

fn start( &self, request: StartToolExecution, ) -> Result<ToolExecutionHandle, ToolRuntimeError>

Start a tool execution. Must not be called when registry always unavailable.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§