tools

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BashTool

type BashTool struct{}

BashTool executes shell commands.

func NewBashTool

func NewBashTool() *BashTool

NewBashTool creates a new Bash tool.

func (*BashTool) Description

func (t *BashTool) Description() string

func (*BashTool) Execute

func (t *BashTool) Execute(ctx context.Context, input json.RawMessage) (json.RawMessage, error)

func (*BashTool) Name

func (t *BashTool) Name() string

type ReadTool

type ReadTool struct {
}

ReadTool allows the agent to read files.

func NewReadTool

func NewReadTool() *ReadTool

NewReadTool creates a new Read tool.

func (*ReadTool) Description

func (t *ReadTool) Description() string

func (*ReadTool) Execute

func (t *ReadTool) Execute(ctx context.Context, input json.RawMessage) (json.RawMessage, error)

func (*ReadTool) Name

func (t *ReadTool) Name() string

type WriteTool

type WriteTool struct {
}

WriteTool allows the agent to read files.

func NewWriteTool

func NewWriteTool() *WriteTool

NewWriteTool creates a new Read tool.

func (*WriteTool) Description

func (t *WriteTool) Description() string

func (*WriteTool) Execute

func (t *WriteTool) Execute(ctx context.Context, input json.RawMessage) (json.RawMessage, error)

func (*WriteTool) Name

func (t *WriteTool) Name() string

Jump to

Keyboard shortcuts

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