-
Notifications
You must be signed in to change notification settings - Fork 130
Expand file tree
/
Copy pathaliases.go
More file actions
72 lines (53 loc) · 3.04 KB
/
aliases.go
File metadata and controls
72 lines (53 loc) · 3.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
package anthropic
import (
"github.com/anthropics/anthropic-sdk-go/internal/apierror"
"github.com/anthropics/anthropic-sdk-go/packages/param"
"github.com/anthropics/anthropic-sdk-go/shared"
)
// aliased to make [param.APIUnion] private when embedding
type paramUnion = param.APIUnion
// aliased to make [param.APIObject] private when embedding
type paramObj = param.APIObject
type Error = apierror.Error
// This is an alias to an internal type.
type APIErrorObject = shared.APIErrorObject
// This is an alias to an internal type.
type AuthenticationError = shared.AuthenticationError
// This is an alias to an internal type.
type BillingError = shared.BillingError
// This is an alias to an internal type.
type ErrorObjectUnion = shared.ErrorObjectUnion
// This is an alias to an internal type.
type ErrorResponse = shared.ErrorResponse
// This is an alias to an internal type.
type GatewayTimeoutError = shared.GatewayTimeoutError
// This is an alias to an internal type.
type InvalidRequestError = shared.InvalidRequestError
// This is an alias to an internal type.
type NotFoundError = shared.NotFoundError
// This is an alias to an internal type.
type OverloadedError = shared.OverloadedError
// This is an alias to an internal type.
type PermissionError = shared.PermissionError
// This is an alias to an internal type.
type RateLimitError = shared.RateLimitError
// Backward-compatible type aliases for renamed types.
// These ensure existing code continues to compile after
// UserLocation and ErrorCode types were consolidated.
type WebSearchToolRequestErrorErrorCode = WebSearchToolResultErrorCode
type WebSearchToolResultErrorErrorCode = WebSearchToolResultErrorCode
type WebSearchTool20250305UserLocationParam = UserLocationParam
type WebSearchTool20260209UserLocationParam = UserLocationParam
const WebSearchToolRequestErrorErrorCodeInvalidToolInput = WebSearchToolResultErrorCodeInvalidToolInput
const WebSearchToolRequestErrorErrorCodeUnavailable = WebSearchToolResultErrorCodeUnavailable
const WebSearchToolRequestErrorErrorCodeMaxUsesExceeded = WebSearchToolResultErrorCodeMaxUsesExceeded
const WebSearchToolRequestErrorErrorCodeTooManyRequests = WebSearchToolResultErrorCodeTooManyRequests
const WebSearchToolRequestErrorErrorCodeQueryTooLong = WebSearchToolResultErrorCodeQueryTooLong
const WebSearchToolRequestErrorErrorCodeRequestTooLarge = WebSearchToolResultErrorCodeRequestTooLarge
const WebSearchToolResultErrorErrorCodeInvalidToolInput = WebSearchToolResultErrorCodeInvalidToolInput
const WebSearchToolResultErrorErrorCodeUnavailable = WebSearchToolResultErrorCodeUnavailable
const WebSearchToolResultErrorErrorCodeMaxUsesExceeded = WebSearchToolResultErrorCodeMaxUsesExceeded
const WebSearchToolResultErrorErrorCodeTooManyRequests = WebSearchToolResultErrorCodeTooManyRequests
const WebSearchToolResultErrorErrorCodeQueryTooLong = WebSearchToolResultErrorCodeQueryTooLong
const WebSearchToolResultErrorErrorCodeRequestTooLarge = WebSearchToolResultErrorCodeRequestTooLarge