tool

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Provider []Provider
}

func DefaultConfig

func DefaultConfig() *Config

type Provider added in v0.6.0

type Provider struct {
	Name string
}

type Tool

type Tool interface {
	Init(context.Context) error
	Deinit(context.Context) error
	List(context.Context) ([]Provider, error)
	Run(context.Context, string, ...interface{}) (string, error)
}

func New

func New(_ context.Context, cfg *Config) Tool

type ToolX added in v0.6.0

type ToolX interface {
	Init(context.Context) error
	Deinit(context.Context) error
	Name(context.Context) string
	Description(context.Context) string
	Call(context.Context, ...interface{}) (string, error)
}

Jump to

Keyboard shortcuts

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