Skip to main content

SyncToolExec

Type Alias SyncToolExec 

Source
pub type SyncToolExec = Arc<dyn Fn(&ToolArgs) -> Result<String, String> + Send + Sync>;
Expand description

Synchronous execution function for a tool.

Receives parsed ToolArgs with typed parameters and optional stdin. Return Ok(stdout) on success or Err(message) on failure.

Aliased Typeยง

pub struct SyncToolExec { /* private fields */ }