Skip to main content

AsyncToolExec

Type Alias AsyncToolExec 

Source
pub type AsyncToolExec = Arc<dyn Fn(ToolArgs) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send>> + Send + Sync>;
Expand description

Asynchronous execution function for a tool.

Same contract as SyncToolExec but returns a Future, allowing non-blocking I/O. Takes owned ToolArgs because the future may outlive the borrow.

Aliased Typeยง

pub struct AsyncToolExec { /* private fields */ }