MCPcopy Create free account

hub / github.com/anthropics/anthropic-sdk-go / types & classes

Types & classes5,294 in github.com/anthropics/anthropic-sdk-go

↓ 311 callersFuncTypeRequestOptionFunc
func(*RequestConfig) error
internal/requestconfig/requestconfig.go:87
↓ 6 callersFuncTyperoundTripperFunc
func(*http.Request) (*http.Response, error)
bedrock/bedrock_test.go:505
↓ 3 callersStructBetaToolUseBlockCallerUnion
BetaToolUseBlockCallerUnion contains all possible properties and values from [BetaDirectCaller], [BetaServerToolCaller], [BetaServerToolCaller20260120
betamessage.go:23234
↓ 3 callersStructToolUseBlockCallerUnion
ToolUseBlockCallerUnion contains all possible properties and values from [DirectCaller], [ServerToolCaller], [ServerToolCaller20260120]. Use the [Too
message.go:15989
↓ 3 callersStructtest
betasessiontoolrunner_test.go:172
↓ 2 callersTypeAliasErrorType
shared/shared.go:1734
↓ 2 callersFuncTypePreRequestOptionFunc
func(*RequestConfig) error
internal/requestconfig/requestconfig.go:88
↓ 2 callersTypeAliasUnionInteger
internal/apijson/json_test.go:133
↓ 2 callersStructaction
action has its call ids filled in when its time comes.
betasessiontoolrunner_properties_test.go:53
↓ 2 callersFuncTypedoerFunc
doerFunc is an HTTP client that is not an *http.Client, which a request keeps in a field of its own.
client_test.go:972
↓ 2 callersFuncTypereaderFunc
func([]byte) (int, error)
client_test.go:1814
↓ 2 callersFuncTyperoundTripFunc
roundTripFunc adapts a function to http.RoundTripper.
lib/betafallback/betafallback_test.go:1127
↓ 2 callersFuncTyperoundTripFunc
func(*http.Request) (*http.Response, error)
googlecloud/googlecloud_test.go:397
↓ 2 callersStructtest
workpoller_test.go:137
↓ 1 callersTypeAliasBase64ImageSourceMediaType
message.go:271
↓ 1 callersTypeAliasBashCodeExecutionToolResultErrorCode
message.go:566
↓ 1 callersTypeAliasBetaAdvisorToolResultErrorParamErrorCode
betamessage.go:727
↓ 1 callersTypeAliasBetaBashCodeExecutionToolResultErrorParamErrorCode
betamessage.go:1138
↓ 1 callersStructBetaServerToolUseBlockParamCallerUnion
Only one field can be non-zero. Use [param.IsOmitted] to confirm if a field is set.
betamessage.go:17741
↓ 1 callersTypeAliasBetaServerToolUseBlockParamName
betamessage.go:17725
↓ 1 callersTypeAliasBetaTextEditorCodeExecutionToolResultErrorParamErrorCode
betamessage.go:18912
↓ 1 callersTypeAliasBetaToolSearchToolResultErrorParamErrorCode
betamessage.go:21047
↓ 1 callersStructBetaWebFetchToolResultBlockParamCallerUnion
Only one field can be non-zero. Use [param.IsOmitted] to confirm if a field is set.
betamessage.go:24691
↓ 1 callersStructBetaWebSearchToolResultBlockParamCallerUnion
Only one field can be non-zero. Use [param.IsOmitted] to confirm if a field is set.
betamessage.go:26081
↓ 1 callersTypeAliasDelim
A Delim is a JSON array or object delimiter, one of [ ] { or }.
internal/encoding/json/stream.go:354
↓ 1 callersTypeAliasEncodedAsDate
EncodedAsDate is not be stable and shouldn't be relied upon
packages/param/encoder.go:16
↓ 1 callersTypeAliasErrorCode
ErrorCode identifies the specific cause of an [Error]. The API may return codes that this version of the library does not know.
internal/apierror/apierror.go:206
↓ 1 callersTypeAliasJoinedOption
JoinedOption is a [RequestOption] that applies its members in order. It is a distinct type, not a closure, so that the members can be looked at.
internal/requestconfig/credential.go:123
↓ 1 callersTypeAliasModel
Always "middle_click"
shared/constant/constants.go:386
↓ 1 callersTypeAliasNumber
A Number represents a JSON number literal.
internal/encoding/json/decode.go:193
↓ 1 callersInterfaceRequestOption
internal/requestconfig/requestconfig.go:83
↓ 1 callersStructServerToolUseBlockParamCallerUnion
Only one field can be non-zero. Use [param.IsOmitted] to confirm if a field is set.
message.go:12115
↓ 1 callersTypeAliasServerToolUseBlockParamName
message.go:12100
↓ 1 callersTypeAliasText
Always "terminal"
shared/constant/constants.go:608
↓ 1 callersTypeAliasTextEditorCodeExecutionToolResultErrorCode
message.go:12991
↓ 1 callersTypeAliasToolSearchToolResultErrorCode
message.go:14233
↓ 1 callersTypeAliasTypeA
internal/apijson/json_test.go:214
↓ 1 callersTypeAliasTypeB
internal/apijson/json_test.go:225
↓ 1 callersTypeAliasUnionInteger
internal/apiform/form_test.go:86
↓ 1 callersTypeAliasUnionInteger
internal/apiquery/query_test.go:64
↓ 1 callersTypeAliasUnionString
internal/apiquery/query_test.go:68
↓ 1 callersTypeAliasUnionTime
internal/apiform/form_test.go:105
↓ 1 callersTypeAliasUnionTime
internal/apiquery/query_test.go:87
↓ 1 callersTypeAliasUnionTime
internal/apijson/json_test.go:152
↓ 1 callersStructWebFetchToolResultBlockParamCallerUnion
Only one field can be non-zero. Use [param.IsOmitted] to confirm if a field is set.
message.go:17050
↓ 1 callersStructWebSearchToolResultBlockParamCallerUnion
Only one field can be non-zero. Use [param.IsOmitted] to confirm if a field is set.
message.go:17838
↓ 1 callersTypeAliasWebSearchToolResultErrorCode
message.go:17925
↓ 1 callersFuncTypedecoderFunc
func(node gjson.Result, value reflect.Value, state *decoderState) error
internal/apijson/decoder.go:57
↓ 1 callersFuncTypedoerFunc
func(*http.Request) (*http.Response, error)
internal/auth/middleware_test.go:177
↓ 1 callersStructencoder
map[reflect.Type]encoderFunc
internal/apiquery/encoder.go:18
↓ 1 callersFuncTypeencoderFunc
func(e *encodeState, v reflect.Value, opts encOpts)
internal/encoding/json/encode.go:366
↓ 1 callersFuncTypeencoderFunc
func(key string, value reflect.Value, writer *multipart.Writer) error
internal/apiform/encoder.go:53
↓ 1 callersFuncTypeencoderFunc
func(key string, value reflect.Value) ([]Pair, error)
internal/apiquery/encoder.go:24
↓ 1 callersFuncTypeencoderFunc
func(value reflect.Value) ([]byte, error)
internal/apijson/encoder.go:40
↓ 1 callersTypeAliasfloatEncoder
internal/encoding/json/encode.go:592
↓ 1 callersFuncTypeidentityFunc
func(ctx context.Context) (string, error)
internal/auth/workload_test.go:20
↓ 1 callersTypeAliasmetadataExtraFields
packages/param/param.go:178
↓ 1 callersTypeAliasnamedRawPtr
namedRawPtr has an empty method set, so it must take the regular pointer encoder path rather than the RawMessage one.
packages/param/encoder_test.go:589
↓ 1 callersStructopt
opt helps limit the [Optional] interface to only types in this package
packages/param/option.go:110
↓ 1 callersInterfacepart
part is one message part in the content attributes: a [textPart], a [reasoningPart], a [toolCallRequestPart], a [toolCallResponsePart], or a [genericP
internal/telemetry/content.go:16
↓ 1 callersFuncTyperoundTripFunc
func(*http.Request) (*http.Response, error)
foundry/foundry_test.go:350
↓ 1 callersFuncTyperoundTripperFunc
func(*http.Request) (*http.Response, error)
vertex/vertex_test.go:765
↓ 1 callersTypeAliassentToolResultContent
sentToolResultContent is the tool result blocks of a call, which encode as the content of the result event that the runner sends for them. It is the s
betasessiontoolrunner.go:1299
↓ 1 callersStructstep
Steps at time 0 happen before the runner attaches.
betasessiontoolrunner_fake_test.go:443
↓ 1 callersTypeAliastagOptions
tagOptions is the string following a comma in a struct field's "json" tag, or the empty string. It does not include the leading comma.
internal/encoding/json/tags.go:13
↓ 1 callersFuncTypetokenSourceFunc
func() (*oauth2.Token, error)
googlecloud/googlecloud_test.go:863
↓ 1 callersTypeAliasworkRequests
environmentworker_fake_test.go:140
TypeAliasAPIActor
Always "any"
shared/constant/constants.go:70
StructAPICall
APICall is one invocation of an SDK method that sends a request to the API, once it has a span: every attempt that retries make, and reading the respo
internal/tracing/tracing.go:159
TypeAliasAPIError
Always "api_actor"
shared/constant/constants.go:71
StructAPIErrorObject
shared/shared.go:18
StructAPIKey
organizationapikey.go:100
TypeAliasAPIKey
Always "api_error"
shared/constant/constants.go:72
StructAPIKeyCreatedBy
organizationapikey.go:293
TypeAliasAPIKeyCreatedByType
Type of the actor that created the object.
organizationapikey.go:316
StructAPIKeyOrganizationScope
organizationapikey.go:323
StructAPIKeyPrincipalUnion
APIKeyPrincipalUnion contains all possible properties and values from [APIKeyUserActor], [APIKeyServiceAccountActor]. Use the [APIKeyPrincipalUnion.A
organizationapikey.go:162
TypeAliasAPIKeyRequesterUnconfirmedErrorCode
Always "api_key"
shared/constant/constants.go:73
StructAPIKeyRequesterUnconfirmedErrorDetails
The API could not confirm that this request came from your organization, so it refused a change to an API key. If you were updating an API key, the ke
shared/shared.go:2725
StructAPIKeyScopeUnion
APIKeyScopeUnion contains all possible properties and values from [APIKeyOrganizationScope], [APIKeyWorkspaceScope]. Use the [APIKeyScopeUnion.AsAny]
organizationapikey.go:227
StructAPIKeyServiceAccountActor
organizationapikey.go:341
TypeAliasAPIKeyStatus
Status of the API key.
organizationapikey.go:284
StructAPIKeyUserActor
organizationapikey.go:361
StructAPIKeyWorkspaceScope
organizationapikey.go:381
StructAPIObject
APIObject should be embedded in api object fields, preferably using an alias to make private
packages/param/param.go:119
StructAPIUnion
APIUnion should be embedded in all api unions fields, preferably using an alias to make private
packages/param/param.go:122
TypeAliasAWS
Always "available_tools_limit_exceeded"
shared/constant/constants.go:87
TypeAliasAWSAgentcoreGateway
Always "aws"
shared/constant/constants.go:88
StructAWSExternalKeyConfig
organizationexternalkey.go:169
StructAWSExternalKeyConfigParam
The properties KMSARN, Type are required.
organizationexternalkey.go:202
TypeAliasAWSRole
Always "aws_agentcore_gateway"
shared/constant/constants.go:89
TypeAliasAccept
shared/constant/constants.go:32
StructAccessToken
AccessToken represents an access token with an optional expiry time.
internal/auth/types.go:10
TypeAliasActive
Always "accept"
shared/constant/constants.go:33
TypeAliasAdaptive
Always "active"
shared/constant/constants.go:34
StructAdditionalProperties
internal/apiform/form_test.go:53
StructAdditionalProperties
internal/apiquery/query_test.go:42
StructAdditionalProperties
internal/apijson/json_test.go:45
TypeAliasAdvisor
Always "adaptive"
shared/constant/constants.go:35
TypeAliasAdvisor20260301
Always "advisor"
shared/constant/constants.go:36
next →1–100 of 5,294, ranked by callers