gateway

package
v0.99.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

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.

func Register

func Register(registry *tool.Registry, uid string) error

Register registers run_cursor when CapGateway is 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

Execute invokes CapGateway run and formats the job result for the model.

func (RunCursorTool) Name

func (RunCursorTool) Name() string

Name returns the tool identifier.

func (RunCursorTool) Parameters

func (RunCursorTool) Parameters() map[string]any

Parameters returns the JSON schema for tool arguments.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL