webapi

package
v7.73.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package webapi implements bounded authenticated tool-service requests.

Index

Constants

View Source
const MaxResponseBytes int64 = 5 << 20

Variables

This section is empty.

Functions

func Do

func Do(ctx context.Context, client *http.Client, timeout time.Duration, service, key, method, endpoint string, input, output any) error

func Endpoint

func Endpoint(baseURL, operation string) (string, error)

Types

type HTTPError

type HTTPError struct {
	Service    string
	StatusCode int
	Code       string
	Message    string
	RetryAfter string
}

HTTPError is a sanitized tool-service error, not a model provider failure.

func (*HTTPError) Error

func (e *HTTPError) Error() string

Jump to

Keyboard shortcuts

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