Versions in this module Expand all Collapse all v1 v1.4.6 Mar 3, 2026 Changes in this version + type GenerateOptions struct + BaseURL string + ExcludeTags []string + IncludeTags []string + Prefix string + type GeneratedTool struct + BaseURL string + Description string + Method string + Name string + Parameters []Parameter + Path string + RequestBody *RequestBody + Schema types.ToolSchema + type Generator struct + func NewGenerator(config GeneratorConfig, logger *zap.Logger) *Generator + func (g *Generator) GenerateTools(spec *OpenAPISpec, opts GenerateOptions) ([]*GeneratedTool, error) + func (g *Generator) LoadSpec(ctx context.Context, source string) (*OpenAPISpec, error) + type GeneratorConfig struct + Timeout time.Duration + type Info struct + Description string + Title string + Version string + type JSONSchema struct + Default any + Description string + Enum []any + Items *JSONSchema + Properties map[string]JSONSchema + Required []string + Type string + type MediaType struct + Schema *JSONSchema + type OpenAPISpec struct + Info Info + OpenAPI string + Paths map[string]PathItem + Servers []Server + type Operation struct + Description string + OperationID string + Parameters []Parameter + RequestBody *RequestBody + Responses Responses + Summary string + Tags []string + type Parameter struct + Description string + In string + Name string + Required bool + Schema *JSONSchema + type PathItem struct + Delete *Operation + Get *Operation + Patch *Operation + Post *Operation + Put *Operation + type RequestBody struct + Content map[string]MediaType + Description string + Required bool + type ResponseObj struct + Content map[string]MediaType + Description string + type Responses map[string]ResponseObj + type Server struct + Description string + URL string