MCPcopy Create free account

hub / github.com/anthropics/anthropic-sdk-go / functions

Functions17,396 in github.com/anthropics/anthropic-sdk-go

↓ 5 callersFunctionfederationConfig
(t *testing.T, credPath string)
internal/auth/integration_test.go:1626
↓ 5 callersFunctionfixed
(schedules ...schedule)
betasessiontoolrunner_properties_test.go:58
↓ 5 callersFunctionfsErrorMessage
fsErrorMessage maps a filesystem error to a consistent, language-independent message so the model sees the same wording regardless of the host runtime
tools/agenttoolset/agenttoolset.go:222
↓ 5 callersFunctiongivenAmong
(f *fakeSession, events []event)
betasessiontoolrunner_properties_test.go:234
↓ 5 callersFunctionindexes
(n int)
betasessiontoolrunner_properties_test.go:149
↓ 5 callersMethodlast
last returns the attributes that the latest span named name started with.
opentelemetry_test.go:1417
↓ 5 callersFunctionlistModels
(client anthropic.Client, opts ...option.RequestOption)
option/requestoption_test.go:214
↓ 5 callersFunctionmakeStaticConfig
(region string)
aws/aws_test.go:23
↓ 5 callersFunctionmarkedTurn
markedTurn returns the params of a turn that sends one marked user message.
betamessagethreadutil_test.go:184
↓ 5 callersFunctionmarkedUserMessage
markedUserMessage is a user message with a cache breakpoint on its block.
betamessagethreadutil_test.go:170
↓ 5 callersFunctionmayAppendQuote
(b []byte, quoted bool)
internal/encoding/json/encode.go:1407
↓ 5 callersMethodmessage
()
environmentworker_fake_test.go:228
↓ 5 callersFunctionmessagesJSON
messagesJSON returns the JSON of the list of messages, each with those of its parts whose JSON is in the element of parts at its index.
internal/telemetry/content.go:464
↓ 5 callersFunctionmustMarshal
(v any)
lib/betafallback/streaming.go:834
↓ 5 callersMethodmustNext
mustNext takes the next turn, which must not fail.
betatoolrunnerthread_test.go:53
↓ 5 callersFunctionnewUserProfileTestClient
(t *testing.T, handler http.HandlerFunc)
bedrock/bedrock_test.go:1203
↓ 5 callersFunctionnewUserProfileTestClient
(t *testing.T, handler http.HandlerFunc)
vertex/vertex_test.go:1014
↓ 5 callersFunctionparentIDs
(spans []sdktrace.ReadOnlySpan)
workpoller_test.go:72
↓ 5 callersFunctionparseJSONStructTag
(field reflect.StructField)
internal/apijson/tag.go:22
↓ 5 callersFunctionpausedReply
pausedReply is a reply that stopped with pause_turn.
betamessagethreadutil_test.go:234
↓ 5 callersFunctionperforming
(actions ...runnerAction)
betasessiontoolrunner_properties_test.go:687
↓ 5 callersFunctionpermission
permission is allow, deny or unconfirmed, as far as the runner was told.
betasessiontoolrunner_properties_test.go:247
↓ 5 callersMethodpostsOf
(id string)
betasessiontoolrunner_fake_test.go:197
↓ 5 callersFunctionrawArray
rawArray renders the wire JSON of each item as an array, skipping any item with none, such as a block whose start event carried no content_block.
messageutil.go:172
↓ 5 callersFunctionrefusal
(status int, details any)
environmentworker_fake_test.go:737
↓ 5 callersFunctionrequireGaps
(t *testing.T, want []timeRange, times []float64)
workpoller_test.go:49
↓ 5 callersMethodscanWhile
scanWhile processes bytes in d.data[d.off:] until it receives a scan code not equal to op.
internal/encoding/json/decode.go:300
↓ 5 callersFunctionschemaToBytes
schemaToBytes converts a map schema to JSON bytes for use with NewBetaToolFromBytes.
toolrunner/runner_test.go:21
↓ 5 callersFunctionsecondHeartbeatFails
(status int)
environmentworker_properties_test.go:417
↓ 5 callersFunctionsendMessage
(t *testing.T, client *Client)
foundry/foundry_test.go:71
↓ 5 callersFunctionsentHeaders
sentHeaders returns a transport that answers with the message, and the headers of the last request it got.
opentelemetry_propagation_test.go:49
↓ 5 callersMethodsleep
sleep releases f.mu while it sleeps.
betasessiontoolrunner_fake_test.go:415
↓ 5 callersFunctionsleepingFor
(s float64)
workpoller_test.go:35
↓ 5 callersMethodterminateThreadShown
terminateThreadShown writes no result, and the log may not show the termination.
betasessiontoolrunner_fake_test.go:735
↓ 5 callersFunctiontokenConfig
tokenConfig returns a config that authenticates with token.
option/requestoption_test.go:297
↓ 5 callersFunctiontoolRemovalJSON
(name string)
betatoolrunner_test.go:507
↓ 5 callersMethodtools
(labels ...string)
betatoolrunner_test.go:400
↓ 5 callersFunctiontransformSchema
transformSchema transforms a [jsonschema.Schema] in-place to ensure it conforms to the Anthropic API's expectations. The transformation process: - Pr
schemautil.go:35
↓ 5 callersFunctiontypeEncoder
(t reflect.Type)
internal/encoding/json/encode.go:377
↓ 5 callersFunctionunmarshalContentBlockParam
(t *testing.T, jsonData string)
messageutil_test.go:14
↓ 5 callersFunctionunyielded
(f *fakeSession)
betasessiontoolrunner_properties_test.go:384
↓ 5 callersFunctionupdated
(path, content, was string)
environmentworker_fake_test.go:682
↓ 5 callersMethodwaitUntil
waitUntil needs a runner that has attached.
betasessiontoolrunner_fake_test.go:784
↓ 5 callersFunctionwasGiven
(f *fakeSession, ids ...string)
betasessiontoolrunner_properties_test.go:230
↓ 4 callersMethodClose
()
packages/ssestream/ssestream.go:19
↓ 4 callersFunctionCommonAttributes
CommonAttributes returns the attributes that every span of opts has: those of [tracing.ClientAttributes], with the provider of a third-party platform
internal/telemetry/apicall.go:17
↓ 4 callersMethodCurrent
Current returns the most recent claimed work item. Only valid after Next returned true and before the next Next call.
lib/environments/poller.go:351
↓ 4 callersFunctionDefaultDir
DefaultDir returns the SDK's default configuration directory (the same one [LoadConfig] reads from when ANTHROPIC_CONFIG_DIR is unset). Returns an emp
config/writers.go:125
↓ 4 callersMethodErr
()
betasessiontoolrunner_fake_test.go:1429
↓ 4 callersMethodGetContent
Returns a subunion which exports methods to access subproperties Or use AsAny() to get the underlying value
message.go:10729
↓ 4 callersMethodGetType
Returns a pointer to the underlying variant's property, if present.
message.go:14710
↓ 4 callersMethodInt64
Int64 returns the number as an int64.
internal/encoding/json/decode.go:204
↓ 4 callersFunctionIsNull
(v T)
internal/encoding/json/sentinel/null.go:38
↓ 4 callersFunctionIsValueNull
for internal use only
internal/encoding/json/sentinel/null.go:29
↓ 4 callersFunctionJoin
Join returns a single [RequestOption] that applies opts in order, at the position the joined option occupies in the caller's option list. It is equiva
option/requestoption.go:482
↓ 4 callersMethodLs
Ls returns the relative path of every file under the directory under.
internal/filestore/filestore.go:225
↓ 4 callersMethodMove
Move renames src to dst; an existing dst is refused. The banned store root as either end does nothing.
internal/filestore/filestore.go:310
↓ 4 callersMethodNew
The Tunnels API is in research preview. It requires the `anthropic-beta: mcp-tunnels-2026-06-22` header and may change without a deprecation period. I
betatunnel.go:52
↓ 4 callersMethodNew
Register an OpenTelemetry destination for the organization. The destination starts in state `enabled`. An organization can have at most 10 destinatio
betaorganizationtelemetrydestination.go:55
↓ 4 callersMethodNew
Create a Memory
betabedrockmemorystorememory.go:40
↓ 4 callersMethodNew
Create a Memory Store
betamemorystore.go:47
↓ 4 callersMethodNew
Create an external key config owned by the caller's organization. When the returned error is an [*apierror.Error], compare the [apierror.Error.ErrorC
organizationexternalkey.go:50
↓ 4 callersMethodNew
Creates a session. In a session that has an `s3_mount` or `s3_object` resource, `initial_events` start the sandbox, and the request does not wait for
betabedrocksession.go:57
↓ 4 callersMethodNew
Create an external key config owned by the caller's organization. When the returned error is an [*apierror.Error], compare the [apierror.Error.ErrorC
betaorganizationexternalkey.go:50
↓ 4 callersMethodNew
Create a Vault
betavault.go:45
↓ 4 callersMethodNew
Send a batch of Message creation requests. The Message Batches API can be used to process multiple Messages API requests at once. Once a Message Batc
betamessagebatch.go:61
↓ 4 callersMethodNew
Register one of your end customers and get the ID to send on the requests you make for them. See the [User profiles guide](https://platform.claude.co
betauserprofile.go:56
↓ 4 callersMethodNew
Create a Memory
betamemorystorememory.go:44
↓ 4 callersMethodNew
Create Session
betasession.go:51
↓ 4 callersMethodNew
Create Skill Version When the returned error is an [*apierror.Error], compare the [apierror.Error.ErrorCode] against these values. - [ErrorCodeClaud
betaskillversion.go:56
↓ 4 callersMethodNew
Create a Memory Store
betabedrockmemorystore.go:49
↓ 4 callersMethodNew
Register a bucket in the organization's own cloud account. It is saved as `pending_configuration` and verified when activated. When the returned erro
betaorganizationexternalstorage.go:58
↓ 4 callersMethodNew
Send a batch of Message creation requests. The Message Batches API can be used to process multiple Messages API requests at once. Once a Message Batc
messagebatch.go:61
↓ 4 callersMethodNew
Create a new environment with the specified configuration. When the returned error is an [*apierror.Error], compare the [apierror.Error.ErrorCode] ag
betaenvironment.go:53
↓ 4 callersMethodNew
Create an organization webhook endpoint. An organization webhook endpoint belongs to the organization rather than to one of its workspaces. An organi
betaorganizationwebhook.go:57
↓ 4 callersFunctionNewBetaToolFromJSONSchema
NewBetaToolFromJSONSchema creates a BetaTool by inferring the schema from struct type T using reflection. The struct should use jsonschema tags to def
toolrunner/tool.go:94
↓ 4 callersFunctionNewClient
NewClient returns a client for cfg. It never reads the first-party ANTHROPIC_API_KEY, ANTHROPIC_BASE_URL or config profiles, so a first-party credenti
foundry/foundry.go:78
↓ 4 callersMethodOverrides
()
packages/param/param.go:102
↓ 4 callersFunctionQualifiers
Qualifiers returns what the SDK method that sends req set with WithQualifiers, which every attempt of its API call has. It is nil for any other reques
internal/requestconfig/requestconfig.go:897
↓ 4 callersMethodRawJSON
Returns the unmodified JSON received from the API
internal/apierror/apierror.go:54
↓ 4 callersFunctionRedactHeaders
RedactHeaders returns headers with every value of each sensitive header replaced by "***", without modifying headers. The result may be headers itself
internal/apierror/apierror.go:183
↓ 4 callersMethodRemoveTools
RemoveTools takes tools away from the model without changing Params.Tools. The runner stops running them at once, even for a call in the message it la
betatoolrunner.go:264
↓ 4 callersFunctionRequireSecureTokenEndpoint
RequireSecureTokenEndpoint rejects base URLs that would cause a JWT assertion, authorization code or refresh token to be sent over cleartext HTTP. Loc
config/https.go:15
↓ 4 callersMethodServeHTTP
(w http.ResponseWriter, r *http.Request)
internal/auth/integration_test.go:1327
↓ 4 callersMethodSetOnFetch
(fn func(path string) int)
lib/environments/memories_test.go:148
↓ 4 callersMethodSetOnList
(fn func())
lib/environments/memories_test.go:142
↓ 4 callersMethodSetStatus
(code codes.Code, _ string)
internal/tracing/attributes_test.go:238
↓ 4 callersMethodStart
(ctx context.Context, name string, opts ...trace.SpanStartOption)
opentelemetry_toolrunner_test.go:1242
↓ 4 callersMethodTracer
(string, ...trace.TracerOption)
client_test.go:1240
↓ 4 callersMethodTracer
Tracer returns the tracer for these options, or nil when the spans are disabled.
internal/tracing/tracing.go:130
↓ 4 callersFunctionTypeFor
Original src code from Go 1.23 go/src/reflect/type.go (taken 1/9/25) * func (t *rtype) OverflowInt(x int64) bool { k := t.Kind() switch k { case I
internal/encoding/json/shims/shims.go:68
↓ 4 callersMethodUnmarshalJSON
(data []byte)
betasession.go:1281
↓ 4 callersMethodUnmarshalJSON
(data []byte)
internal/apierror/apierror.go:56
↓ 4 callersMethodUpload
Upload File When the returned error is an [*apierror.Error], compare the [apierror.Error.ErrorCode] against these values. - [ErrorCodeClaudeCodeKeyC
file.go:173
↓ 4 callersFunctionaccumulateBetaMessage
accumulateBetaMessage folds raw stream events into a BetaMessage the way a caller of Beta.Messages.NewStreaming does.
betamessageutil_test.go:289
↓ 4 callersFunctionaccumulateManagedAgentsEvent
(acc *BetaManagedAgentsEventAccumulator, eventType string, event E)
betasessionutil.go:66
↓ 4 callersMethodadoptHistory
adoptHistory makes the next turn start a new thread when Params.Messages no longer begins with the stored history. A turn in progress still adds to th
betamessagethreadutil.go:182
↓ 4 callersFunctionapiError
(status int, message string)
betasessiontoolrunner_fake_test.go:859
↓ 4 callersFunctionappendCompact
(dst, src []byte, opts encOpts)
internal/encoding/json/indent.go:51
↓ 4 callersFunctionappendString
(dst []byte, src Bytes, escapeHTML bool)
internal/encoding/json/encode.go:1036
← previousnext →601–700 of 17,396, ranked by callers