Documentation
¶
Overview ¶
Package gateway provides the chatagent tool that delegates to CapGateway (local CLI workers).
Index ¶
Constants ¶
View Source
const RunCursorToolName = "run_cursor"
RunCursorToolName is the agent tool name for local Cursor CLI delegation.
Variables ¶
This section is empty.
Functions ¶
func ActiveToolNames ¶
func ActiveToolNames() []string
ActiveToolNames returns gateway tool names when enabled.
Types ¶
type RunCursorTool ¶
type RunCursorTool struct {
// UID is recorded on the gateway job for audit.
UID string
}
RunCursorTool submits a CapGateway run job and returns the terminal result.
func (RunCursorTool) Description ¶
func (RunCursorTool) Description() string
Description explains the tool to the model.
func (RunCursorTool) Execute ¶
func (t RunCursorTool) Execute(ctx context.Context, id string, args map[string]any, _ tool.UpdateHandler) (msg.ToolResultMessage, error)
Execute invokes CapGateway run and formats the job result for the model.
func (RunCursorTool) Parameters ¶
func (RunCursorTool) Parameters() map[string]any
Parameters returns the JSON schema for tool arguments.
Click to show internal directories.
Click to hide internal directories.