tool

package
v0.0.0-...-a6a9895 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tool

type Tool interface {
	Validate(uParams map[string]interface{}) error
	Run(params map[string]interface{}) (string, error)
}

Tool is the interface all tools must implement.

func GetTool

func GetTool(name string) (Tool, error)

type ToolConfiguration

type ToolConfiguration struct {
	Source  string         `yaml:"source"`
	Options map[string]any `yaml:"options,omitempty"`
}

Jump to

Keyboard shortcuts

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