Documentation
¶
Overview ¶
Package executortools implements the tool set served by the local executor over the executor-registry tunnel. Each tool is a pure Go function receiving JSON arguments and returning an ExecuteResponse.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecuteRequest ¶
type ExecuteRequest struct {
ExecutorID string `json:"executor_id"`
Tool string `json:"tool"`
Arguments json.RawMessage `json:"arguments"`
TimeoutMs int `json:"timeout_ms,omitempty"`
}
ExecuteRequest mirrors the wire format that executor-registry forwards over the yamux stream (body of POST /tool/execute).
type ExecuteResponse ¶
ExecuteResponse is the single unified response shape returned for every tool call. Output is free-form text; ExitCode is 0 on success.
type ToolExecutor ¶
type ToolExecutor struct {
WorkDir string
}
ToolExecutor dispatches tool calls to per-tool handlers rooted at WorkDir.
func (*ToolExecutor) Execute ¶
func (e *ToolExecutor) Execute(ctx context.Context, req ExecuteRequest) ExecuteResponse
Execute dispatches to the per-tool handler. Unknown tools return exit 1.
Click to show internal directories.
Click to hide internal directories.