Documentation
¶
Overview ¶
Package devtools provides developer tools that are only available with --dev flag.
Index ¶
- type LocalFileBrowserTool
- func (t *LocalFileBrowserTool) Category() tools.Category
- func (t *LocalFileBrowserTool) Description() string
- func (t *LocalFileBrowserTool) Execute(ctx context.Context, args json.RawMessage) (string, error)
- func (t *LocalFileBrowserTool) InputSchema() json.RawMessage
- func (t *LocalFileBrowserTool) Name() string
- type LocalShellTool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalFileBrowserTool ¶
type LocalFileBrowserTool struct {
// contains filtered or unexported fields
}
LocalFileBrowserTool reads and lists files in a project directory.
func NewLocalFileBrowserTool ¶
func NewLocalFileBrowserTool(workDir string) *LocalFileBrowserTool
NewLocalFileBrowserTool creates a file browser tool for the given directory.
func (*LocalFileBrowserTool) Category ¶
func (t *LocalFileBrowserTool) Category() tools.Category
func (*LocalFileBrowserTool) Description ¶
func (t *LocalFileBrowserTool) Description() string
func (*LocalFileBrowserTool) Execute ¶
func (t *LocalFileBrowserTool) Execute(ctx context.Context, args json.RawMessage) (string, error)
func (*LocalFileBrowserTool) InputSchema ¶
func (t *LocalFileBrowserTool) InputSchema() json.RawMessage
func (*LocalFileBrowserTool) Name ¶
func (t *LocalFileBrowserTool) Name() string
type LocalShellTool ¶
type LocalShellTool struct {
// contains filtered or unexported fields
}
LocalShellTool executes shell commands sandboxed to a work directory.
func NewLocalShellTool ¶
func NewLocalShellTool(workDir string) *LocalShellTool
NewLocalShellTool creates a shell tool sandboxed to the given directory.
func (*LocalShellTool) Category ¶
func (t *LocalShellTool) Category() tools.Category
func (*LocalShellTool) Description ¶
func (t *LocalShellTool) Description() string
func (*LocalShellTool) Execute ¶
func (t *LocalShellTool) Execute(ctx context.Context, args json.RawMessage) (string, error)
func (*LocalShellTool) InputSchema ¶
func (t *LocalShellTool) InputSchema() json.RawMessage
func (*LocalShellTool) Name ¶
func (t *LocalShellTool) Name() string
Click to show internal directories.
Click to hide internal directories.