Documentation
¶
Index ¶
- type Option
- type Tool
- func (t *Tool) Description() string
- func (t *Tool) DisplayName() string
- func (t *Tool) Execute(ctx context.Context, args string) (string, error)
- func (t *Tool) Internal() bool
- func (t *Tool) Name() string
- func (t *Tool) Parameters() map[string]interfaces.ParameterSpec
- func (t *Tool) Run(ctx context.Context, input string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Tool)
Option represents an option for configuring the tool
func WithHTTPClient ¶
WithHTTPClient sets the HTTP client for the tool
type Tool ¶
type Tool struct {
// contains filtered or unexported fields
}
Tool implements a web search tool
func (*Tool) Description ¶
Description returns a description of what the tool does
func (*Tool) DisplayName ¶ added in v0.0.53
DisplayName implements interfaces.ToolWithDisplayName.DisplayName
func (*Tool) Parameters ¶
func (t *Tool) Parameters() map[string]interfaces.ParameterSpec
Parameters returns the parameters that the tool accepts
Click to show internal directories.
Click to hide internal directories.