tool

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All() map[string]Func

func AllMeta

func AllMeta() map[string]ToolMeta

func MustMarshalJSON

func MustMarshalJSON(v interface{}) string

func Register

func Register(name string, fn Func)

func RegisterMeta

func RegisterMeta(name string, m ToolMeta)

Types

type FlagInfo

type FlagInfo struct {
	Name        string
	Short       string
	Type        string
	Description string
	Required    bool
}

type Func

type Func func(args []string) error

type ToolMeta

type ToolMeta struct {
	Description string
	InputSchema map[string]interface{}
}

func GenerateSchema

func GenerateSchema(name string, description string, configPtr interface{}) ToolMeta

func GetMeta

func GetMeta(name string) (ToolMeta, bool)

Jump to

Keyboard shortcuts

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