Documentation
¶
Index ¶
- type Config
- type Tool
- func (t Tool) GetAnnotations(src sources.Source) *tools.ToolAnnotations
- func (t Tool) GetSourceName() string
- func (t Tool) Invoke(ctx context.Context, s sources.Source, params parameters.ParamValues, ...) (any, util.ToolboxError)
- func (t Tool) ToConfig() tools.ToolConfig
- func (t Tool) ValidateSource(source sources.Source) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
tools.ConfigBase `yaml:",inline"`
Type string `yaml:"type" validate:"required"`
Source string `yaml:"source" validate:"required"`
}
func (Config) ToolConfigType ¶
type Tool ¶
func (Tool) GetAnnotations ¶ added in v1.0.0
func (t Tool) GetAnnotations(src sources.Source) *tools.ToolAnnotations
GetAnnotations returns readOnlyHint: true and destructiveHint: false when the source is read-only (Blitz): the file is opened mode=ro, so SQLite refuses any write, and the tool isn't hidden on it.
func (Tool) GetSourceName ¶
func (Tool) Invoke ¶
func (t Tool) Invoke(ctx context.Context, s sources.Source, params parameters.ParamValues, accessToken tools.AccessToken) (any, util.ToolboxError)
func (Tool) ToConfig ¶
func (t Tool) ToConfig() tools.ToolConfig