agent

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBuildFailed        = errors.New("build failed")
	ErrTestFailed         = errors.New("tests failed")
	ErrGoGetFailed        = errors.New("go get failed")
	ErrLinterFailed       = errors.New("lint issues found")
	ErrGoModTidyFailed    = errors.New("go mod tidy failed")
	ErrPathInvalid        = errors.New("path is outside of allowed directory")
	ErrInvalidPackageName = errors.New("invalid package name")
)

Functions

func GoBuildTool

func GoBuildTool(basePath string) chat.Tool

GoBuildTool returns a tool for running 'go build ./...'.

func GoGetTool

func GoGetTool(basePath string) chat.Tool

GoGetTool returns a tool for running 'go get'.

func GoModTidyTool

func GoModTidyTool(basePath string) chat.Tool

GoModTidyTool returns a tool for running 'go mod tidy'.

func GoTestTool

func GoTestTool(basePath string) chat.Tool

GoTestTool returns a tool for running 'go test ./...'.

func LinterTool

func LinterTool(basePath string) chat.Tool

LinterTool returns a tool for running 'golangci-lint run --fix'.

func ListDirTool

func ListDirTool(basePath string) chat.Tool

ListDirTool returns a tool for listing directory contents.

func ReadFileTool

func ReadFileTool(basePath string) chat.Tool

ReadFileTool returns a tool for reading file content.

func WriteFileTool

func WriteFileTool(basePath string) chat.Tool

WriteFileTool returns a tool for writing content to a file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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