Documentation
¶
Overview ¶
Package executor implements tool execution backends.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor interface {
// Execute runs the tool logic and returns a message.
Execute(ctx context.Context, req Request) (string, error)
}
Executor executes a tool command.
type Request ¶
type Request struct {
// ToolName is the tool being executed.
ToolName string
// Arguments are tool arguments.
Arguments map[string]any
// CorrelationID links related executions.
CorrelationID string
// TimeoutMessage is an optional timeout message.
TimeoutMessage string
}
Request contains tool execution inputs.
Click to show internal directories.
Click to hide internal directories.