openapi

package
v1.60.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateToolSet added in v1.60.0

func CreateToolSet(ctx context.Context, toolset latest.Toolset, runConfig *config.RuntimeConfig) (tools.ToolSet, error)

CreateToolSet is used by the tools registry.

Types

type ToolSet added in v1.60.0

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

ToolSet generates HTTP tools from an OpenAPI specification.

func New added in v1.60.0

func New(specURL string, headers map[string]string) *ToolSet

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

func (*ToolSet) Instructions added in v1.60.0

func (t *ToolSet) Instructions() string

Instructions returns usage instructions for the OpenAPI toolset.

func (*ToolSet) Tools added in v1.60.0

func (t *ToolSet) 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