github.com/anthropics/anthropic-sdk-go@v1.70.1/aliases.go (about) 1 // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 3 package anthropic 4 5 import ( 6 "github.com/anthropics/anthropic-sdk-go/internal/apierror" 7 "github.com/anthropics/anthropic-sdk-go/packages/param" 8 "github.com/anthropics/anthropic-sdk-go/shared" 9 ) 10 11 // aliased to make [param.APIUnion] private when embedding 12 type paramUnion = param.APIUnion 13 14 // aliased to make [param.APIObject] private when embedding 15 type paramObj = param.APIObject 16 17 type Error = apierror.Error 18 19 // This is an alias to an internal type. 20 type APIErrorObject = shared.APIErrorObject 21 22 // This is an alias to an internal type. 23 type AuthenticationError = shared.AuthenticationError 24 25 // This is an alias to an internal type. 26 type BillingError = shared.BillingError 27 28 // This is an alias to an internal type. 29 type ErrorObjectUnion = shared.ErrorObjectUnion 30 31 // This is an alias to an internal type. 32 type ErrorResponse = shared.ErrorResponse 33 34 // This is an alias to an internal type. 35 type ErrorType = shared.ErrorType 36 37 // Equals "invalid_request_error" 38 const ErrorTypeInvalidRequestError = shared.ErrorTypeInvalidRequestError 39 40 // Equals "authentication_error" 41 const ErrorTypeAuthenticationError = shared.ErrorTypeAuthenticationError 42 43 // Equals "permission_error" 44 const ErrorTypePermissionError = shared.ErrorTypePermissionError 45 46 // Equals "not_found_error" 47 const ErrorTypeNotFoundError = shared.ErrorTypeNotFoundError 48 49 // Equals "rate_limit_error" 50 const ErrorTypeRateLimitError = shared.ErrorTypeRateLimitError 51 52 // Equals "timeout_error" 53 const ErrorTypeTimeoutError = shared.ErrorTypeTimeoutError 54 55 // Equals "overloaded_error" 56 const ErrorTypeOverloadedError = shared.ErrorTypeOverloadedError 57 58 // Equals "api_error" 59 const ErrorTypeAPIError = shared.ErrorTypeAPIError 60 61 // Equals "billing_error" 62 const ErrorTypeBillingError = shared.ErrorTypeBillingError 63 64 // This is an alias to an internal type. 65 type GatewayTimeoutError = shared.GatewayTimeoutError 66 67 // This is an alias to an internal type. 68 type InvalidRequestError = shared.InvalidRequestError 69 70 // This is an alias to an internal type. 71 type NotFoundError = shared.NotFoundError 72 73 // This is an alias to an internal type. 74 type OverloadedError = shared.OverloadedError 75 76 // This is an alias to an internal type. 77 type PermissionError = shared.PermissionError 78 79 // This is an alias to an internal type. 80 type RateLimitError = shared.RateLimitError 81 82 // Backward-compatible type aliases for renamed types. 83 // These ensure existing code continues to compile after 84 // UserLocation and ErrorCode types were consolidated. 85 86 type WebSearchToolRequestErrorErrorCode = WebSearchToolResultErrorCode 87 type WebSearchToolResultErrorErrorCode = WebSearchToolResultErrorCode 88 type WebSearchTool20250305UserLocationParam = UserLocationParam 89 type WebSearchTool20260209UserLocationParam = UserLocationParam 90 91 const WebSearchToolRequestErrorErrorCodeInvalidToolInput = WebSearchToolResultErrorCodeInvalidToolInput 92 const WebSearchToolRequestErrorErrorCodeUnavailable = WebSearchToolResultErrorCodeUnavailable 93 const WebSearchToolRequestErrorErrorCodeMaxUsesExceeded = WebSearchToolResultErrorCodeMaxUsesExceeded 94 const WebSearchToolRequestErrorErrorCodeTooManyRequests = WebSearchToolResultErrorCodeTooManyRequests 95 const WebSearchToolRequestErrorErrorCodeQueryTooLong = WebSearchToolResultErrorCodeQueryTooLong 96 const WebSearchToolRequestErrorErrorCodeRequestTooLarge = WebSearchToolResultErrorCodeRequestTooLarge 97 const WebSearchToolResultErrorErrorCodeInvalidToolInput = WebSearchToolResultErrorCodeInvalidToolInput 98 const WebSearchToolResultErrorErrorCodeUnavailable = WebSearchToolResultErrorCodeUnavailable 99 const WebSearchToolResultErrorErrorCodeMaxUsesExceeded = WebSearchToolResultErrorCodeMaxUsesExceeded 100 const WebSearchToolResultErrorErrorCodeTooManyRequests = WebSearchToolResultErrorCodeTooManyRequests 101 const WebSearchToolResultErrorErrorCodeQueryTooLong = WebSearchToolResultErrorCodeQueryTooLong 102 const WebSearchToolResultErrorErrorCodeRequestTooLarge = WebSearchToolResultErrorCodeRequestTooLarge 103 104 // Deprecated: use [BetaCurrencyUSD]. Kept so code written before the USD 105 // initialism casing continues to compile. 106 const BetaCurrencyUsd = BetaCurrencyUSD