builtin

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExecCommandToolName = execCommandFunction.Name
View Source
var ExecHttpCallToolName = execHttpCallFunction.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
View Source
var FsStatToolName = fsStatFunction.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 ExecHttpCallArguments

type ExecHttpCallArguments struct {
	Url             string            `json:"url" validate:"required"`
	Method          string            `json:"method" validate:"required,oneof=GET POST PUT DELETE PATCH HEAD OPTIONS"`
	Headers         map[string]string `json:"headers"`
	QueryParameters map[string]string `json:"query_parameters"`
	Body            *string           `json:"body"`
}

type ExecHttpCallToolHandler

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

func NewExecHttpCallToolHandler

func NewExecHttpCallToolHandler(argsJSON string) (*ExecHttpCallToolHandler, error)

func (*ExecHttpCallToolHandler) Describe

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

func (*ExecHttpCallToolHandler) Execute

func (h *ExecHttpCallToolHandler) 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) Execute

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

type FsStatArguments

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

type FsStatToolHandler

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

func NewFsStatToolHandler

func NewFsStatToolHandler(argsJSON, baseDir string) (*FsStatToolHandler, error)

func (*FsStatToolHandler) Execute

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

Jump to

Keyboard shortcuts

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