Versions in this module Expand all Collapse all v0 v0.1.1 Jun 22, 2026 v0.1.0 Jun 22, 2026 Changes in this version + var ErrDuplicateTool = errors.New("tools: tool already registered") + var ErrToolNotFound = errors.New("tools: tool not found") + type FetchURL struct + APIKey string + BaseURL string + HTTP *http.Client + func NewFetchURL(apiKey string) *FetchURL + func (t *FetchURL) Description() string + func (t *FetchURL) Execute(_ context.Context, args json.RawMessage) (string, error) + func (t *FetchURL) Name() string + func (t *FetchURL) Parameters() json.RawMessage + type GitDiff struct + func (t *GitDiff) Description() string + func (t *GitDiff) Execute(_ context.Context, args json.RawMessage) (string, error) + func (t *GitDiff) Name() string + func (t *GitDiff) Parameters() json.RawMessage + type GitLog struct + func (t *GitLog) Description() string + func (t *GitLog) Execute(_ context.Context, args json.RawMessage) (string, error) + func (t *GitLog) Name() string + func (t *GitLog) Parameters() json.RawMessage + type Glob struct + func (t *Glob) Description() string + func (t *Glob) Execute(_ context.Context, args json.RawMessage) (string, error) + func (t *Glob) Name() string + func (t *Glob) Parameters() json.RawMessage + type Grep struct + func (t *Grep) Description() string + func (t *Grep) Execute(_ context.Context, args json.RawMessage) (string, error) + func (t *Grep) Name() string + func (t *Grep) Parameters() json.RawMessage + type ListFiles struct + func (t *ListFiles) Description() string + func (t *ListFiles) Execute(_ context.Context, args json.RawMessage) (string, error) + func (t *ListFiles) Name() string + func (t *ListFiles) Parameters() json.RawMessage + type ReadFile struct + func (t *ReadFile) Description() string + func (t *ReadFile) Execute(_ context.Context, args json.RawMessage) (string, error) + func (t *ReadFile) Name() string + func (t *ReadFile) Parameters() json.RawMessage + type Registry struct + func NewRegistry() *Registry + func (r *Registry) Definitions() []provider.ToolDefinition + func (r *Registry) Get(name string) (Tool, error) + func (r *Registry) Names() []string + func (r *Registry) Register(tool Tool) error + type Tool interface + Description func() string + Execute func(ctx context.Context, args json.RawMessage) (string, error) + Name func() string + Parameters func() json.RawMessage + func NewGitDiff() Tool + func NewGitLog() Tool + func NewGlob() Tool + func NewGrep() Tool + func NewListFiles() Tool + func NewReadFile() Tool + type WebSearch struct + APIKey string + BaseURL string + HTTP *http.Client + func NewWebSearch(apiKey string) *WebSearch + func (t *WebSearch) Description() string + func (t *WebSearch) Execute(_ context.Context, args json.RawMessage) (string, error) + func (t *WebSearch) Name() string + func (t *WebSearch) Parameters() json.RawMessage