openapi

package
v1.58.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tool

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

Tool generates HTTP tools from an OpenAPI specification.

func NewOpenAPITool

func NewOpenAPITool(specURL string, headers map[string]string) *Tool

NewOpenAPITool creates a new OpenAPI toolset from the given spec URL.

func (*Tool) Instructions

func (t *Tool) Instructions() string

Instructions returns usage instructions for the OpenAPI toolset.

func (*Tool) Tools

func (t *Tool) Tools(ctx context.Context) ([]tools.Tool, error)

Tools fetches and parses the OpenAPI specification, returning a tool for each operation.

Jump to

Keyboard shortcuts

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