builtin

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExecCommandToolName = execCommandFunction.Name
View Source
var FsCreateOrUpdateTool = openai.ChatCompletionToolParam{
	Type:     openai.F(openai.ChatCompletionToolTypeFunction),
	Function: openai.Raw[openai.FunctionDefinitionParam](fsCreateOrUpdateFunction),
}
View Source
var FsCreateOrUpdateToolName = fsCreateOrUpdateFunction.Name
View Source
var FsDeleteToolName = fsDeleteFunction.Name
View Source
var FsReadToolName = fsReadFunction.Name

Functions

This section is empty.

Types

type ExecCommandArguments

type ExecCommandArguments struct {
	CommandLine string `json:"command_line" validate:"required"`
	WorkingDir  string `json:"working_dir"`
}

type ExecCommandToolHandler

type ExecCommandToolHandler struct {
	// contains filtered or unexported fields
}

func NewExecCommandToolHandler

func NewExecCommandToolHandler(argsJSON, baseDir string) (*ExecCommandToolHandler, error)

func (*ExecCommandToolHandler) Describe

func (h *ExecCommandToolHandler) Describe(ctx context.Context) (string, error)

func (*ExecCommandToolHandler) Execute

func (h *ExecCommandToolHandler) Execute(ctx context.Context) (any, error)

type FsCreateOrUpdateArguments

type FsCreateOrUpdateArguments struct {
	Path        string `json:"path" validate:"required"`
	FileContent string `json:"file_content"`
}

type FsCreateOrUpdateToolHandler

type FsCreateOrUpdateToolHandler struct {
	// contains filtered or unexported fields
}

func NewFsCreateOrUpdateToolHandler

func NewFsCreateOrUpdateToolHandler(argsJSON, baseDir string) (*FsCreateOrUpdateToolHandler, error)

func (*FsCreateOrUpdateToolHandler) Describe

func (*FsCreateOrUpdateToolHandler) Execute

type FsDeleteArguments

type FsDeleteArguments struct {
	Path      string `json:"path" validate:"required"`
	Recursive bool   `json:"recursive"`
}

type FsDeleteToolHandler

type FsDeleteToolHandler struct {
	// contains filtered or unexported fields
}

func NewFsDeleteToolHandler

func NewFsDeleteToolHandler(argsJSON, baseDir string) (*FsDeleteToolHandler, error)

func (*FsDeleteToolHandler) Describe

func (h *FsDeleteToolHandler) Describe(ctx context.Context) (string, error)

func (*FsDeleteToolHandler) Execute

func (h *FsDeleteToolHandler) Execute(ctx context.Context) (any, error)

type FsReadArguments

type FsReadArguments struct {
	Path string `json:"path"`
}

type FsReadToolHandler

type FsReadToolHandler struct {
	// contains filtered or unexported fields
}

func NewFsReadToolHandler

func NewFsReadToolHandler(argsJSON, baseDir string) (*FsReadToolHandler, error)

func (*FsReadToolHandler) Describe

func (h *FsReadToolHandler) Describe(ctx context.Context) (string, error)

func (*FsReadToolHandler) Execute

func (h *FsReadToolHandler) Execute(ctx context.Context) (any, error)

Jump to

Keyboard shortcuts

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