MCPcopy Create free account

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

Functions12,274 in github.com/anthropics/anthropic-sdk-python

↓ 10 callersFunction_result_text
Concatenated text of the posted-back result's text blocks.
tests/lib/tools/test_session_runner.py:137
↓ 10 callersFunction_run_async
( client: AsyncAnthropic, *, tools: list[Any], messages: list[BetaMessageParam] )
tests/lib/tools/toolsets/test_runner.py:129
↓ 10 callersFunction_run_sync
(client: Anthropic, *, tools: list[Any], messages: list[BetaMessageParam])
tests/lib/tools/toolsets/test_runner.py:119
↓ 10 callersFunctionaccumulate_managed_agents_event
( accumulated: AccumulatedEvent | None, event: BetaManagedAgentsAgentMessageEvent, )
src/anthropic/lib/sessions/_accumulate.py:22
↓ 10 callersMethodack
(self, work_id: str, **kwargs: Any)
tests/lib/environments/test_poller_method.py:75
↓ 10 callersFunctionattributes
The attributes to start a span with: `values` without those that are `None`.
src/anthropic/lib/_tracing/_attributes.py:49
↓ 10 callersMethodbind_base_url
Set the API `base_url` the token exchange POSTs to. For standalone use (no client) or tests. Clients bind through `for_base_url`, whi
src/anthropic/lib/credentials/_workload.py:201
↓ 10 callersMethodclose
(self)
src/anthropic/lib/tools/agent_toolset.py:583
↓ 10 callersMethodclose
(self)
tests/utils.py:205
↓ 10 callersFunctionconstruct
(client_class: ClientClass, *arguments: dict[str, object])
tests/lib/test_client_copy.py:206
↓ 10 callersFunctioncopy_platform_client
Builds the client that a platform client's `copy()` returns. `platform_options` holds the other arguments of the constructor of `client`, with th
src/anthropic/lib/_platform_client.py:16
↓ 10 callersMethodcreate_enrollment_url
Create Enrollment URL Args: user_profile_id: The ID of the user profile to create an enrollment URL for (`uprof_...`).
src/anthropic/resources/beta/user_profiles/user_profiles.py:513
↓ 10 callersFunctioncreate_stream_async
( client: AsyncAnthropic, *, speed: Literal["standard", "fast"] | Omit = omit )
tests/lib/test_refusal_fallback_streaming.py:227
↓ 10 callersFunctionfold
( msg: BetaManagedAgentsAgentMessageEvent, ev: BetaManagedAgentsDeltaEvent, )
tests/lib/sessions/test_accumulate.py:34
↓ 10 callersMethodhandle_item
Service a single, already-claimed work item without the poll loop. Builds the per-session `AgentToolContext` (workdir from this worke
src/anthropic/lib/environments/_worker.py:569
↓ 10 callersMethodhashtree
`{rel_path: sha256_hex}` of every file under the directory `under`. Unchanged files — same size, mtime, and ctime since the last call —
src/anthropic/lib/tools/_file_store.py:184
↓ 10 callersFunctionmake_event_iterator
( content: Iterator[bytes], *, sync: bool, client: Anthropic, async_client: AsyncAnthropic
tests/test_streaming.py:376
↓ 10 callersMethodmcp_oauth_validate
Validate an MCP OAuth Credential Args: vault_id: Identifier of the vault containing the credential. credential_
src/anthropic/resources/beta/vaults/credentials.py:524
↓ 10 callersMethodparse
(self, *, to: type[_T])
src/anthropic/_response.py:308
↓ 10 callersMethodparse
(self, *, to: type[_T])
src/anthropic/_response.py:421
↓ 10 callersMethodpause
Pause Deployment Args: deployment_id: Unique identifier of the deployment to pause. betas: This endpoint is in
src/anthropic/resources/beta/deployments.py:520
↓ 10 callersFunctionplatform_arguments
(client_class: ClientClass)
tests/lib/test_client_copy.py:182
↓ 10 callersMethodpoll
(self, environment_id: str, **kwargs: Any)
tests/lib/environments/test_poller_method.py:71
↓ 10 callersMethodredact
Redact a Memory Version Args: memory_store_id: The ID of the memory store that holds the version (`memstore_...`).
src/anthropic/resources/beta/memory_stores/memory_versions.py:261
↓ 10 callersMethodregenerate_signing_secret
Replace an organization webhook endpoint's signing secret. The old secret stops working immediately. The new secret is returned only
src/anthropic/resources/beta/organization/webhooks.py:465
↓ 10 callersFunctionresolve_workspace_id
Resolve the workspace ID from constructor arg or env var(s). Returns None if no workspace ID is available (caller should raise).
src/anthropic/lib/aws/_credentials.py:93
↓ 10 callersMethodreveal_token
The Tunnels API is in research preview. It requires the `anthropic-beta: mcp-tunnels-2026-06-22` header and may change without a
src/anthropic/resources/beta/tunnels/tunnels.py:361
↓ 10 callersMethodrotate_token
The Tunnels API is in research preview. It requires the `anthropic-beta: mcp-tunnels-2026-06-22` header and may change without a
src/anthropic/resources/beta/tunnels/tunnels.py:436
↓ 10 callersMethodsign_out
Sign a member out of Claude everywhere, without removing them from the organization. This ends their sign-in sessions and removes the
src/anthropic/resources/beta/organization/users.py:263
↓ 10 callersMethodstats
Get statistics about the work queue for an environment. Args: betas: Optional header to specify the beta version(s) you wa
src/anthropic/resources/beta/environments/work.py:522
↓ 10 callersMethodtest
Send one test span, named `anthropic.test`, to the destination with its registered headers, once and without retries, and report the
src/anthropic/resources/beta/organization/telemetry_destinations/telemetry_destinations.py:503
↓ 10 callersMethodto_dict
(self)
src/anthropic/lib/tools/_tool_params.py:24
↓ 10 callersMethodunpause
Unpause Deployment Args: deployment_id: Unique identifier of the deployment to unpause. betas: This endpoint is
src/anthropic/resources/beta/deployments.py:652
↓ 9 callersMethod_enforce_trailing_slash
(self, url: URL)
src/anthropic/_base_client.py:516
↓ 9 callersFunction_member_use
( name: str, input: dict[str, Any] | None = None, *, toolset_name: str | None = "browser" )
tests/lib/tools/toolsets/test_runnable.py:26
↓ 9 callersFunction_thread_terminated
(session_thread_id: str)
tests/lib/tools/test_session_runner.py:119
↓ 9 callersMethodaclose
(self)
tests/lib/test_credentials.py:3934
↓ 9 callersFunctionassert_empty_iter
(iter: Iterator[ServerSentEvent] | AsyncIterator[ServerSentEvent])
tests/test_streaming.py:371
↓ 9 callersFunctionasync_to_httpx_files
(files: None)
src/anthropic/_files.py:99
↓ 9 callersFunctionasyncify
Take a blocking function and create an async one that receives the same positional and keyword arguments. Usage: ```python def
src/anthropic/_utils/_sync.py:28
↓ 9 callersFunctionbeta_write_tool
(ctx: AgentToolContext)
src/anthropic/lib/tools/agent_toolset.py:743
↓ 9 callersFunctionblock_starts
(events: list[BetaRawMessageStreamEvent])
tests/lib/test_refusal_fallback_streaming.py:207
↓ 9 callersFunctionconsume
()
tests/lib/tools/test_session_runner.py:1388
↓ 9 callersFunctioncreate_message_async
( client: AsyncAnthropic, *, speed: Literal["standard", "fast"] | Omit = omit )
tests/lib/test_refusal_fallback.py:101
↓ 9 callersFunctioncreated
(path: str, content: str)
tests/lib/tools/memory_sync/_fake_anthropic.py:73
↓ 9 callersMethodfinish
(self, reason: _LeaseEndReason)
src/anthropic/lib/environments/_worker.py:143
↓ 9 callersMethodlabel
Names a stream event after the block it belongs to, such as `a: content_block_stop`.
tests/lib/tools/test_runner_eager_tools.py:1080
↓ 9 callersFunctionmarked
A user message whose only block has a `cache_control` marker.
tests/lib/threads/helpers.py:169
↓ 9 callersFunctionrequest_body
(call: MockRequestCall)
tests/test_middleware.py:80
↓ 9 callersFunctionrun_turn
Call `send()`, `parse()` or `stream()`, and read a stream to its end.
tests/lib/threads/test_async_beta_threads.py:1852
↓ 9 callersMethodsend
Send Events Args: events: Events to send to the `session`. betas: This endpoint is in beta: requests must send
src/anthropic/resources/beta/sessions/events.py:165
↓ 9 callersFunctionto_httpx_files
(files: None)
src/anthropic/_files.py:42
↓ 9 callersMethodto_json
Generates a JSON string representing this model as it would be received from or sent to the API (but with indentation). By default, fields th
src/anthropic/_models.py:252
↓ 9 callersFunctiontool_stream_events
The events of `stream_events`, with a `tool_use` block after the text.
tests/test_open_telemetry.py:754
↓ 9 callersFunctionuploads_fail
Every create and update raises a connection error — after the server has saved the write (the response was lost) or before it arrived at all.
tests/lib/tools/memory_sync/test_lost_response.py:38
↓ 9 callersMethodwait
(self, context: BetaToolsetCallContext, input: BetaBrowserWaitInput)
src/anthropic/lib/tools/_toolsets/_browser.py:402
↓ 8 callersMethod_auth_block
Return the cached `authentication` sub-object from the config file.
src/anthropic/lib/credentials/_providers.py:501
↓ 8 callersFunction_blob_resource
(uri: str = "file:///x.bin", blob: str = "", mime: str | None = None)
tests/lib/tools/test_mcp_tool.py:47
↓ 8 callersMethod_calculate_nonstreaming_timeout
(self, max_tokens: int, max_nonstreaming_tokens: int | None)
src/anthropic/_base_client.py:859
↓ 8 callersFunction_downloaded
A `SessionMemoryStores` with one store already downloaded to disk.
tests/lib/tools/memory_sync/test_final_flush.py:26
↓ 8 callersMethod_make_client
(self)
tests/lib/test_bedrock_mantle.py:178
↓ 8 callersFunction_message_json
()
tests/lib/test_stainless_helpers.py:41
↓ 8 callersMethod_resolve_under_root
(self, rel_path: str)
src/anthropic/lib/tools/_file_store.py:252
↓ 8 callersMethod_runnable_tools
The tools the runner runs, by name: the thread's runnable tools with the overrides applied.
src/anthropic/lib/tools/_beta_runner.py:531
↓ 8 callersMethod_sent_authorization
(client: Anthropic | AsyncAnthropic, respx_mock: MockRouter)
tests/lib/test_credentials.py:4259
↓ 8 callersFunction_sync_weather_tool
()
tests/lib/tools/test_runners.py:2512
↓ 8 callersFunction_workload_credentials
()
tests/lib/test_credentials.py:2444
↓ 8 callersFunctionas_current_span
Makes `span`, if any, the current span for the block, without ending it when the block exits.
src/anthropic/lib/_tracing/_tools.py:170
↓ 8 callersFunctionassert_sends_conversation
Assert that `request`, which follows the `toolu_a` reply `msg_a` to the weather question, shows the model `conversation`. With default settings it
tests/lib/threads/helpers.py:652
↓ 8 callersFunctioncall
Makes a request the way an SDK method does, which names its span.
tests/test_tracing.py:149
↓ 8 callersMethoddo
(self, name: str, context: BetaToolsetCallContext, input: Any)
tests/lib/tools/toolsets/_fakes.py:79
↓ 8 callersFunctionerror_body
(*, type: str, message: str)
tests/test_middleware.py:76
↓ 8 callersFunctionget_origin
(tp: type[Any])
src/anthropic/_utils/_compat.py:19
↓ 8 callersFunctionplatform_clients
One client of each platform class, sync and async, with the `open_telemetry` option.
tests/test_open_telemetry.py:3802
↓ 8 callersFunctionrun_turn
Call `send()`, `parse()` or `stream()`, and read a stream to its end.
tests/lib/threads/test_beta_threads.py:2259
↓ 8 callersMethodto_dict
(self)
tests/lib/streaming/test_beta_messages.py:43
↓ 8 callersFunctionunvalidated
Build one of the SDK's own context or report models around objects that already exist (a parsed `tool_use` block, a member's input model, a driver
src/anthropic/lib/tools/_toolsets/_runnable.py:66
↓ 8 callersFunctionurl_attributes
(span: ReadableSpan)
tests/test_open_telemetry.py:2900
↓ 8 callersFunctionutf8_size
(text: str)
tests/test_open_telemetry.py:275
↓ 8 callersMethodvalidate_archive
Check whether a plugin marketplace, uploaded as a `.zip` of the marketplace directory, would synchronize into claude.ai, without conn
src/anthropic/resources/beta/organization/plugin_marketplaces.py:309
↓ 8 callersMethodvalidate_repository
Check whether a plugin marketplace held in a public GitHub repository would synchronize into claude.ai, without connecting or storing
src/anthropic/resources/beta/organization/plugin_marketplaces.py:408
↓ 7 callersFunction_async_compact_runner
( client: AsyncAnthropic, *, context_management: Union[BetaContextManagementConfigParam, Omit] = o
tests/lib/tools/test_runners.py:2552
↓ 7 callersFunction_async_weather_tool
()
tests/lib/tools/test_runners.py:2521
↓ 7 callersFunction_downloaded
A `SessionMemoryStores` with one store already downloaded to disk.
tests/lib/tools/memory_sync/test_keep_only_copy.py:21
↓ 7 callersMethod_ensure_memory_root
Ensure the memory root directory exists
src/anthropic/lib/tools/_beta_builtin_memory_tool.py:682
↓ 7 callersFunction_error_text
(desktop: FakeDesktop, name: str, input: dict[str, Any])
tests/lib/tools/toolsets/test_computer_pipeline.py:53
↓ 7 callersFunction_get_weather
(location: str, units: Literal["c", "f"])
tests/lib/tools/test_runners.py:2429
↓ 7 callersFunction_mcp_field_v1_or_v2
(obj: Any, name: str)
src/anthropic/lib/tools/mcp.py:80
↓ 7 callersFunction_message
(*blocks: dict[str, Any], stop: str = "tool_use")
tests/lib/tools/toolsets/test_computer_runner.py:40
↓ 7 callersFunction_message_response
()
tests/lib/test_credentials.py:2395
↓ 7 callersFunction_mock_client
(result: CallToolResult | None = None)
tests/lib/tools/test_mcp_tool.py:67
↓ 7 callersFunction_mock_token_endpoint
(respx_mock: MockRouter)
tests/lib/test_credentials.py:2386
↓ 7 callersFunction_read_result
(contents: list[Any])
tests/lib/tools/test_mcp_tool.py:51
↓ 7 callersFunction_requests
(respx_mock: MockRouter)
tests/lib/tools/toolsets/test_computer_runner.py:63
↓ 7 callersFunction_set_ambient_first_party_credentials
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws.py:138
↓ 7 callersFunction_text_resource
(uri: str = "file:///x.txt", text: str = "hello", mime: str | None = None)
tests/lib/tools/test_mcp_tool.py:43
↓ 7 callersFunction_use
(name: str, input: dict[str, Any], id: str = "toolu_1")
tests/lib/tools/toolsets/test_computer_pipeline.py:49
↓ 7 callersMethod_validate_path
Validate and resolve memory paths
src/anthropic/lib/tools/_beta_builtin_memory_tool.py:400
↓ 7 callersFunction_work_json
(work_id: str)
tests/lib/environments/test_poller_method.py:575
↓ 7 callersMethodaclose
(self)
src/anthropic/_tracing.py:606
← previousnext →301–400 of 12,274, ranked by callers