Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-go
/ types & classes
Types & classes
5,294 in github.com/anthropics/anthropic-sdk-go
⨍
Functions
17,396
◇
Types & classes
5,294
↓ 311 callers
FuncType
RequestOptionFunc
func(*RequestConfig) error
internal/requestconfig/requestconfig.go:87
↓ 6 callers
FuncType
roundTripperFunc
func(*http.Request) (*http.Response, error)
bedrock/bedrock_test.go:505
↓ 3 callers
Struct
BetaToolUseBlockCallerUnion
BetaToolUseBlockCallerUnion contains all possible properties and values from [BetaDirectCaller], [BetaServerToolCaller], [BetaServerToolCaller20260120
betamessage.go:23234
↓ 3 callers
Struct
ToolUseBlockCallerUnion
ToolUseBlockCallerUnion contains all possible properties and values from [DirectCaller], [ServerToolCaller], [ServerToolCaller20260120]. Use the [Too
message.go:15989
↓ 3 callers
Struct
test
betasessiontoolrunner_test.go:172
↓ 2 callers
TypeAlias
ErrorType
shared/shared.go:1734
↓ 2 callers
FuncType
PreRequestOptionFunc
func(*RequestConfig) error
internal/requestconfig/requestconfig.go:88
↓ 2 callers
TypeAlias
UnionInteger
internal/apijson/json_test.go:133
↓ 2 callers
Struct
action
action has its call ids filled in when its time comes.
betasessiontoolrunner_properties_test.go:53
↓ 2 callers
FuncType
doerFunc
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 callers
FuncType
readerFunc
func([]byte) (int, error)
client_test.go:1814
↓ 2 callers
FuncType
roundTripFunc
roundTripFunc adapts a function to http.RoundTripper.
lib/betafallback/betafallback_test.go:1127
↓ 2 callers
FuncType
roundTripFunc
func(*http.Request) (*http.Response, error)
googlecloud/googlecloud_test.go:397
↓ 2 callers
Struct
test
workpoller_test.go:137
↓ 1 callers
TypeAlias
Base64ImageSourceMediaType
message.go:271
↓ 1 callers
TypeAlias
BashCodeExecutionToolResultErrorCode
message.go:566
↓ 1 callers
TypeAlias
BetaAdvisorToolResultErrorParamErrorCode
betamessage.go:727
↓ 1 callers
TypeAlias
BetaBashCodeExecutionToolResultErrorParamErrorCode
betamessage.go:1138
↓ 1 callers
Struct
BetaServerToolUseBlockParamCallerUnion
Only one field can be non-zero. Use [param.IsOmitted] to confirm if a field is set.
betamessage.go:17741
↓ 1 callers
TypeAlias
BetaServerToolUseBlockParamName
betamessage.go:17725
↓ 1 callers
TypeAlias
BetaTextEditorCodeExecutionToolResultErrorParamErrorCode
betamessage.go:18912
↓ 1 callers
TypeAlias
BetaToolSearchToolResultErrorParamErrorCode
betamessage.go:21047
↓ 1 callers
Struct
BetaWebFetchToolResultBlockParamCallerUnion
Only one field can be non-zero. Use [param.IsOmitted] to confirm if a field is set.
betamessage.go:24691
↓ 1 callers
Struct
BetaWebSearchToolResultBlockParamCallerUnion
Only one field can be non-zero. Use [param.IsOmitted] to confirm if a field is set.
betamessage.go:26081
↓ 1 callers
TypeAlias
Delim
A Delim is a JSON array or object delimiter, one of [ ] { or }.
internal/encoding/json/stream.go:354
↓ 1 callers
TypeAlias
EncodedAsDate
EncodedAsDate is not be stable and shouldn't be relied upon
packages/param/encoder.go:16
↓ 1 callers
TypeAlias
ErrorCode
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 callers
TypeAlias
JoinedOption
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 callers
TypeAlias
Model
Always "middle_click"
shared/constant/constants.go:386
↓ 1 callers
TypeAlias
Number
A Number represents a JSON number literal.
internal/encoding/json/decode.go:193
↓ 1 callers
Interface
RequestOption
internal/requestconfig/requestconfig.go:83
↓ 1 callers
Struct
ServerToolUseBlockParamCallerUnion
Only one field can be non-zero. Use [param.IsOmitted] to confirm if a field is set.
message.go:12115
↓ 1 callers
TypeAlias
ServerToolUseBlockParamName
message.go:12100
↓ 1 callers
TypeAlias
Text
Always "terminal"
shared/constant/constants.go:608
↓ 1 callers
TypeAlias
TextEditorCodeExecutionToolResultErrorCode
message.go:12991
↓ 1 callers
TypeAlias
ToolSearchToolResultErrorCode
message.go:14233
↓ 1 callers
TypeAlias
TypeA
internal/apijson/json_test.go:214
↓ 1 callers
TypeAlias
TypeB
internal/apijson/json_test.go:225
↓ 1 callers
TypeAlias
UnionInteger
internal/apiform/form_test.go:86
↓ 1 callers
TypeAlias
UnionInteger
internal/apiquery/query_test.go:64
↓ 1 callers
TypeAlias
UnionString
internal/apiquery/query_test.go:68
↓ 1 callers
TypeAlias
UnionTime
internal/apiform/form_test.go:105
↓ 1 callers
TypeAlias
UnionTime
internal/apiquery/query_test.go:87
↓ 1 callers
TypeAlias
UnionTime
internal/apijson/json_test.go:152
↓ 1 callers
Struct
WebFetchToolResultBlockParamCallerUnion
Only one field can be non-zero. Use [param.IsOmitted] to confirm if a field is set.
message.go:17050
↓ 1 callers
Struct
WebSearchToolResultBlockParamCallerUnion
Only one field can be non-zero. Use [param.IsOmitted] to confirm if a field is set.
message.go:17838
↓ 1 callers
TypeAlias
WebSearchToolResultErrorCode
message.go:17925
↓ 1 callers
FuncType
decoderFunc
func(node gjson.Result, value reflect.Value, state *decoderState) error
internal/apijson/decoder.go:57
↓ 1 callers
FuncType
doerFunc
func(*http.Request) (*http.Response, error)
internal/auth/middleware_test.go:177
↓ 1 callers
Struct
encoder
map[reflect.Type]encoderFunc
internal/apiquery/encoder.go:18
↓ 1 callers
FuncType
encoderFunc
func(e *encodeState, v reflect.Value, opts encOpts)
internal/encoding/json/encode.go:366
↓ 1 callers
FuncType
encoderFunc
func(key string, value reflect.Value, writer *multipart.Writer) error
internal/apiform/encoder.go:53
↓ 1 callers
FuncType
encoderFunc
func(key string, value reflect.Value) ([]Pair, error)
internal/apiquery/encoder.go:24
↓ 1 callers
FuncType
encoderFunc
func(value reflect.Value) ([]byte, error)
internal/apijson/encoder.go:40
↓ 1 callers
TypeAlias
floatEncoder
internal/encoding/json/encode.go:592
↓ 1 callers
FuncType
identityFunc
func(ctx context.Context) (string, error)
internal/auth/workload_test.go:20
↓ 1 callers
TypeAlias
metadataExtraFields
packages/param/param.go:178
↓ 1 callers
TypeAlias
namedRawPtr
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 callers
Struct
opt
opt helps limit the [Optional] interface to only types in this package
packages/param/option.go:110
↓ 1 callers
Interface
part
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 callers
FuncType
roundTripFunc
func(*http.Request) (*http.Response, error)
foundry/foundry_test.go:350
↓ 1 callers
FuncType
roundTripperFunc
func(*http.Request) (*http.Response, error)
vertex/vertex_test.go:765
↓ 1 callers
TypeAlias
sentToolResultContent
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 callers
Struct
step
Steps at time 0 happen before the runner attaches.
betasessiontoolrunner_fake_test.go:443
↓ 1 callers
TypeAlias
tagOptions
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 callers
FuncType
tokenSourceFunc
func() (*oauth2.Token, error)
googlecloud/googlecloud_test.go:863
↓ 1 callers
TypeAlias
workRequests
environmentworker_fake_test.go:140
TypeAlias
APIActor
Always "any"
shared/constant/constants.go:70
Struct
APICall
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
TypeAlias
APIError
Always "api_actor"
shared/constant/constants.go:71
Struct
APIErrorObject
shared/shared.go:18
Struct
APIKey
organizationapikey.go:100
TypeAlias
APIKey
Always "api_error"
shared/constant/constants.go:72
Struct
APIKeyCreatedBy
organizationapikey.go:293
TypeAlias
APIKeyCreatedByType
Type of the actor that created the object.
organizationapikey.go:316
Struct
APIKeyOrganizationScope
organizationapikey.go:323
Struct
APIKeyPrincipalUnion
APIKeyPrincipalUnion contains all possible properties and values from [APIKeyUserActor], [APIKeyServiceAccountActor]. Use the [APIKeyPrincipalUnion.A
organizationapikey.go:162
TypeAlias
APIKeyRequesterUnconfirmedErrorCode
Always "api_key"
shared/constant/constants.go:73
Struct
APIKeyRequesterUnconfirmedErrorDetails
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
Struct
APIKeyScopeUnion
APIKeyScopeUnion contains all possible properties and values from [APIKeyOrganizationScope], [APIKeyWorkspaceScope]. Use the [APIKeyScopeUnion.AsAny]
organizationapikey.go:227
Struct
APIKeyServiceAccountActor
organizationapikey.go:341
TypeAlias
APIKeyStatus
Status of the API key.
organizationapikey.go:284
Struct
APIKeyUserActor
organizationapikey.go:361
Struct
APIKeyWorkspaceScope
organizationapikey.go:381
Struct
APIObject
APIObject should be embedded in api object fields, preferably using an alias to make private
packages/param/param.go:119
Struct
APIUnion
APIUnion should be embedded in all api unions fields, preferably using an alias to make private
packages/param/param.go:122
TypeAlias
AWS
Always "available_tools_limit_exceeded"
shared/constant/constants.go:87
TypeAlias
AWSAgentcoreGateway
Always "aws"
shared/constant/constants.go:88
Struct
AWSExternalKeyConfig
organizationexternalkey.go:169
Struct
AWSExternalKeyConfigParam
The properties KMSARN, Type are required.
organizationexternalkey.go:202
TypeAlias
AWSRole
Always "aws_agentcore_gateway"
shared/constant/constants.go:89
TypeAlias
Accept
shared/constant/constants.go:32
Struct
AccessToken
AccessToken represents an access token with an optional expiry time.
internal/auth/types.go:10
TypeAlias
Active
Always "accept"
shared/constant/constants.go:33
TypeAlias
Adaptive
Always "active"
shared/constant/constants.go:34
Struct
AdditionalProperties
internal/apiform/form_test.go:53
Struct
AdditionalProperties
internal/apiquery/query_test.go:42
Struct
AdditionalProperties
internal/apijson/json_test.go:45
TypeAlias
Advisor
Always "adaptive"
shared/constant/constants.go:35
TypeAlias
Advisor20260301
Always "advisor"
shared/constant/constants.go:36
next →
1–100 of 5,294, ranked by callers