inference

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConnectionError added in v0.8.17

type APIConnectionError struct {
	*APIError
}

func NewAPIConnectionError added in v0.8.17

func NewAPIConnectionError(message string) *APIConnectionError

func NewAPIConnectionErrorWithRetryable added in v0.8.17

func NewAPIConnectionErrorWithRetryable(message string, retryable bool) *APIConnectionError

func (*APIConnectionError) Unwrap added in v0.8.17

func (e *APIConnectionError) Unwrap() error

type APIError added in v0.8.17

type APIError struct {
	Message   string
	Body      any
	Retryable bool
}

func NewAPIError added in v0.8.17

func NewAPIError(message string, body any, retryable bool) *APIError

func (*APIError) Error added in v0.8.17

func (e *APIError) Error() string

type APIStatusError added in v0.8.17

type APIStatusError struct {
	*APIError
	StatusCode int
	RequestID  string
}

func CreateAPIErrorFromHTTP added in v0.8.17

func CreateAPIErrorFromHTTP(message string, statusCode int, requestID string, body any) *APIStatusError

func NewAPIStatusError added in v0.8.17

func NewAPIStatusError(message string, statusCode int, requestID string, body any) *APIStatusError

func NewAPIStatusErrorWithRetryable added in v0.8.17

func NewAPIStatusErrorWithRetryable(message string, statusCode int, requestID string, body any, retryable bool) *APIStatusError

func (*APIStatusError) Error added in v0.8.17

func (e *APIStatusError) Error() string

func (*APIStatusError) Unwrap added in v0.8.17

func (e *APIStatusError) Unwrap() error

type APITimeoutError added in v0.8.17

type APITimeoutError struct {
	*APIConnectionError
}

func NewAPITimeoutError added in v0.8.17

func NewAPITimeoutError(message string) *APITimeoutError

func NewAPITimeoutErrorWithRetryable added in v0.8.17

func NewAPITimeoutErrorWithRetryable(message string, retryable bool) *APITimeoutError

func (*APITimeoutError) Unwrap added in v0.8.17

func (e *APITimeoutError) Unwrap() error

Jump to

Keyboard shortcuts

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