Skip to main content

Module executor

Module executor 

Source
Expand description

Execution-environment abstraction.

Tool execution is decoupled from the agent runtime: tools are defined against the ToolExecutor interface, so the same harness, session, snapshot and command surfaces run with a local executor (local editing mode, the default) or a remote sandbox executor without client-visible changes. The trait lives in theway-core so tool definitions compile against it directly and wasm/embedded consumers can provide their own executors; the daemon kernel (theway-daemon) supplies the reference LocalExecutor and the sandbox stub.

The trait is a seam, not an implementation: core defines no local fs/process behavior here. All methods are async and the trait is object-safe with Send + Sync bounds, so executors can be shared as Arc<dyn ToolExecutor>.

Structs§

CommandOutput
Captured result of a command executed through ToolExecutor::run_command or ToolExecutor::git.

Enums§

ExecutorError
Errors surfaced by ToolExecutor implementations.
ExecutorKind
Which execution environment a ToolExecutor dispatches tool calls to.

Traits§

ToolExecutor
Execution environment that tools dispatch their effects through.

Type Aliases§

Result
Convenience result alias for ToolExecutor methods.