Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶ added in v1.65.0
type Option func(*ToolSet)
Option configures an openapi ToolSet.
func WithAllowPrivateIPs ¶ added in v1.65.0
WithAllowPrivateIPs disables SSRF dial-time protection on both the spec fetch and the generated tools' HTTP calls. Operators opt in via `allow_private_ips: true` when the spec or its servers legitimately target internal services. Tests use this to talk to httptest.NewServer.
func WithTimeout ¶ added in v1.65.0
WithTimeout overrides the default 30s HTTP client timeout used both for fetching the spec and for the generated tools' HTTP calls.
type ToolSet ¶ added in v1.60.0
type ToolSet struct {
// contains filtered or unexported fields
}
ToolSet generates HTTP tools from an OpenAPI specification.
func (*ToolSet) Instructions ¶ added in v1.60.0
Instructions returns usage instructions for the OpenAPI toolset.
Click to show internal directories.
Click to hide internal directories.