Skip to main content

HostToolExecutor

Trait HostToolExecutor 

Source
pub trait HostToolExecutor: Send + Sync {
    // Required method
    fn execute(
        &self,
        tool_name: &str,
        tool_hash: &str,
        input: &Value,
        idempotency_key: &str,
    ) -> ExecResult;
}
Expand description

The host’s executor. idempotency_key is stable across crash redeliveries of the same attempt — an executor that performs external side effects should deduplicate on it; one that cannot should be run with on_dangling = fail.

Required Methods§

Source

fn execute( &self, tool_name: &str, tool_hash: &str, input: &Value, idempotency_key: &str, ) -> ExecResult

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§