gen

package
v0.0.0-...-c28e2a0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertMcpResp

func ConvertMcpResp(val any, err error) (*mcp_golang.ToolResponse, error)

func GenTool

func GenTool(f string) error

func RegisterTool

func RegisterTool(tool Tool)

Types

type FunctionInfo

type FunctionInfo struct {
	Name        string
	Description string
	Params      []ParamInfo
	ReturnType  string
	ParamsDesc  map[string]string
}

type ParamInfo

type ParamInfo struct {
	Name        string
	Type        string
	Description string
}

type TemplateData

type TemplateData struct {
	Package   string
	Functions []FunctionInfo
}

type Tool

type Tool struct {
	Name        string
	Description string
	Args        any
	Func        any
}

func GetTools

func GetTools() []Tool

Jump to

Keyboard shortcuts

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