Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrToolNotFound = errors.New("tools: tool not found") ErrDuplicateTool = errors.New("tools: tool already registered") )
Functions ¶
This section is empty.
Types ¶
type FetchURL ¶
func NewFetchURL ¶
func (*FetchURL) Description ¶
func (*FetchURL) Parameters ¶
func (t *FetchURL) Parameters() json.RawMessage
type GitDiff ¶
type GitDiff struct{}
func (*GitDiff) Description ¶
func (*GitDiff) Parameters ¶
func (t *GitDiff) Parameters() json.RawMessage
type GitLog ¶
type GitLog struct{}
func (*GitLog) Description ¶
func (*GitLog) Parameters ¶
func (t *GitLog) Parameters() json.RawMessage
type Glob ¶
type Glob struct{}
func (*Glob) Description ¶
func (*Glob) Parameters ¶
func (t *Glob) Parameters() json.RawMessage
type Grep ¶
type Grep struct{}
func (*Grep) Description ¶
func (*Grep) Parameters ¶
func (t *Grep) Parameters() json.RawMessage
type ListFiles ¶
type ListFiles struct{}
func (*ListFiles) Description ¶
func (*ListFiles) Parameters ¶
func (t *ListFiles) Parameters() json.RawMessage
type ReadFile ¶
type ReadFile struct{}
func (*ReadFile) Description ¶
func (*ReadFile) Parameters ¶
func (t *ReadFile) Parameters() json.RawMessage
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) Definitions ¶
func (r *Registry) Definitions() []provider.ToolDefinition
type Tool ¶
type Tool interface {
Name() string
Description() string
Parameters() json.RawMessage
Execute(ctx context.Context, args json.RawMessage) (string, error)
}
func NewGitDiff ¶
func NewGitDiff() Tool
func NewListFiles ¶
func NewListFiles() Tool
func NewReadFile ¶
func NewReadFile() Tool
type WebSearch ¶
func NewWebSearch ¶
func (*WebSearch) Description ¶
func (*WebSearch) Parameters ¶
func (t *WebSearch) Parameters() json.RawMessage
Click to show internal directories.
Click to hide internal directories.