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§
- Command
Output - Captured result of a command executed through
ToolExecutor::run_commandorToolExecutor::git.
Enums§
- Executor
Error - Errors surfaced by
ToolExecutorimplementations. - Executor
Kind - Which execution environment a
ToolExecutordispatches tool calls to.
Traits§
- Tool
Executor - Execution environment that tools dispatch their effects through.
Type Aliases§
- Result
- Convenience result alias for
ToolExecutormethods.