generator

package
v0.0.0-...-879e43b Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GeneratedFilenameExtension = ".pb.mcp.go"
)

Variables

This section is empty.

Functions

func Base32String

func Base32String(b []byte) string

func MangleHeadIfTooLong

func MangleHeadIfTooLong(name string, maxLen int) string

Types

type FileGenerator

type FileGenerator struct {
	// contains filtered or unexported fields
}

func NewFileGenerator

func NewFileGenerator(f *protogen.File, gen *protogen.Plugin) *FileGenerator

func (*FileGenerator) Generate

func (g *FileGenerator) Generate(packageSuffix string)

type Tool

type Tool struct {
	RequestType   string
	ResponseType  string
	MCPTool       mcp.Tool
	MCPToolOpenAI mcp.Tool
}

type TplParams

type TplParams struct {
	PackageName string
	SourcePath  string
	GoPackage   string
	Tools       map[string]mcp.Tool
	ToolsOpenAI map[string]mcp.Tool
	Services    map[string]map[string]Tool
}

Jump to

Keyboard shortcuts

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