Versions in this module Expand all Collapse all v0 v0.1.5-rc.9 Jul 8, 2026 v0.1.5-rc.8 Jul 6, 2026 v0.1.5-rc.7 Jul 3, 2026 v0.1.5-rc.6 Jul 2, 2026 v0.1.5-rc.4 Jun 29, 2026 v0.1.5-rc.3 Jun 24, 2026 v0.1.5-rc.2 Jun 23, 2026 v0.1.5-rc.1 Jun 14, 2026 v0.1.4 Jun 13, 2026 v0.1.2 May 6, 2026 v0.1.1 Apr 29, 2026 Changes in this version + var As = errors.As + var ErrAPIError = errors.New("api error") + var ErrAuthenticationFailed = errors.New("authentication failed") + var ErrCanceled = errors.New("request canceled") + var ErrContentFiltered = errors.New("content filtered") + var ErrContextLengthExceeded = errors.New("context length exceeded") + var ErrInvalidRequest = errors.New("invalid request") + var ErrInvalidResponse = errors.New("invalid response") + var ErrInvalidToolInput = errors.New("invalid tool input") + var ErrJSONParseFailed = errors.New("json parse failed") + var ErrMissingToolResults = errors.New("missing tool results") + var ErrModelNotFound = errors.New("model not found") + var ErrNoSuchTool = errors.New("no such tool") + var ErrRateLimited = errors.New("rate limited") + var ErrSchemaMismatch = errors.New("schema mismatch") + var ErrTimeout = errors.New("request timeout") + var ErrToolCallRepair = errors.New("tool call repair failed") + var ErrToolExecutionFailed = errors.New("tool execution failed") + var ErrUnsupported = errors.New("unsupported operation") + var Is = errors.Is + var Join = errors.Join + var New = errors.New + var Unwrap = errors.Unwrap + func IsInvalidToolInputError(err error) bool + func IsMissingToolResultsError(err error) bool + func IsNoSuchToolError(err error) bool + func IsRetryable(err error) bool + func IsToolCallRepairError(err error) bool + type APICallError struct + Cause error + Data any + IsRetryable bool + Message string + RequestBodyValues any + ResponseBody string + ResponseHeaders map[string]string + StatusCode int + URL string + func NewAPICallError(opts APICallErrorOptions) *APICallError + func (e *APICallError) Error() string + func (e *APICallError) Unwrap() error + type APICallErrorOptions struct + Cause error + Data any + IsRetryable bool + IsRetryableSet bool + Message string + RequestBodyValues any + ResponseBody string + ResponseHeaders map[string]string + StatusCode int + URL string + type APIError struct + Code string + Message string + Param string + Provider string + RequestID string + RetryAfter int + Retryable bool + StatusCode int + Type string + func (e *APIError) Error() string + func (e *APIError) Unwrap() error + type InvalidToolInputError struct + Cause error + ToolInput string + ToolName string + func (e *InvalidToolInputError) Error() string + func (e *InvalidToolInputError) Unwrap() error + type JSONParseError struct + Cause error + Text string + func (e *JSONParseError) Error() string + func (e *JSONParseError) Unwrap() error + type MissingToolResultsError struct + ToolCallIDs []string + func (e *MissingToolResultsError) Error() string + func (e *MissingToolResultsError) Unwrap() error + type NoSuchToolError struct + AvailableTools []string + ToolName string + func (e *NoSuchToolError) Error() string + func (e *NoSuchToolError) Unwrap() error + type RetryInfo struct + Attempt int + MaxAttempts int + RetryAfter int + ShouldRetry bool + func GetRetryInfo(err error) *RetryInfo + type SchemaValidationError struct + Message string + Path string + Schema string + Value any + func (e *SchemaValidationError) Error() string + func (e *SchemaValidationError) Unwrap() error + type ToolCallRepairError struct + Cause error + OriginalError error + func (e *ToolCallRepairError) Error() string + func (e *ToolCallRepairError) Unwrap() error + type ToolError struct + Cause error + Message string + ToolCallID string + ToolName string + func (e *ToolError) Error() string + func (e *ToolError) Unwrap() error v0.1.0 Apr 24, 2026