MCPcopy Create free account

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

Functions9,455 in github.com/anthropics/anthropic-sdk-python

↓ 2 callersFunctionunnamed_file
(file: HttpxFileContent)
src/anthropic/_files.py:87
↓ 2 callersMethodunwrap
Verifies the webhook signature from the `webhook-id`, `webhook-timestamp` and `webhook-signature` headers using your webhook signing
src/anthropic/resources/beta/webhooks.py:29
↓ 2 callersFunctionvalid_access_token
(value: object)
src/anthropic/lib/credentials/_cache.py:30
↓ 2 callersFunctionwith_bounded_tab_urls
The report with each tab's and each download's page-supplied URL as the model will read it, folded to one line and held to the API's limit (see `b
src/anthropic/lib/tools/_toolsets/_pipeline.py:110
↓ 2 callersFunctionwrong_flavour_error
The error for a sync tool or toolset handed to the async runner (or the reverse), raised when the runner is built. A toolset mismatch is a `Toolse
src/anthropic/lib/tools/_tool_dispatch.py:68
↓ 2 callersMethodzoom
(self, context: BetaToolsetCallContext, input: BetaComputerZoomInput)
tests/lib/tools/toolsets/_computer_fakes.py:57
↓ 1 callersMethod__aenter__
(self)
src/anthropic/lib/tools/agent_toolset.py:329
↓ 1 callersMethod__aexit__
(self, *exc: object)
src/anthropic/lib/tools/_file_store.py:132
↓ 1 callersMethod__aexit__
(self, *exc: object)
src/anthropic/lib/tools/agent_toolset.py:333
↓ 1 callersMethod__apply_policy
Run the `url_policy` callable on one address, raising the refusal unless it passes or there is no policy.
src/anthropic/lib/tools/_toolsets/_browser.py:299
↓ 1 callersMethod__apply_policy
(self, url: str, context: BetaURLContext)
src/anthropic/lib/tools/_toolsets/_browser.py:549
↓ 1 callersMethod__as_proxied__
Helper method that returns the current proxy, typed as the loaded object
src/anthropic/_utils/_proxy.py:60
↓ 1 callersMethod__browser_state
(self, context: BetaToolsetCallContext)
src/anthropic/lib/tools/_toolsets/_browser.py:289
↓ 1 callersMethod__browser_state
(self, context: BetaToolsetCallContext)
src/anthropic/lib/tools/_toolsets/_browser.py:541
↓ 1 callersMethod__decode__
(self)
src/anthropic/_decoders/jsonl.py:43
↓ 1 callersMethod__decode__
(self)
src/anthropic/_decoders/jsonl.py:99
↓ 1 callersMethod__enter__
(self)
src/anthropic/lib/tools/_toolsets/_runnable.py:125
↓ 1 callersMethod__init__
Construct a new synchronous Anthropic client instance. Credentials are resolved in the following order (first match wins): 1. Explic
src/anthropic/_client.py:157
↓ 1 callersMethod__init__
(self, root: Path, removed_on_dispose: bool, utf8_only: bool = False)
src/anthropic/lib/tools/_file_store.py:87
↓ 1 callersMethod__init__
(self, content: BetaFunctionToolResultType)
src/anthropic/lib/tools/_beta_functions.py:50
↓ 1 callersMethod__init__
( self, *, cast_to: type[_T], response: httpx2.Response, client: Anthr
src/anthropic/lib/bedrock/_stream.py:15
↓ 1 callersMethod__init__
( self, *, aws_access_key: str | None = None, aws_secret_key: str | None = Non
src/anthropic/lib/bedrock/_mantle.py:165
↓ 1 callersMethod__init__
( self, aws_secret_key: str | None = None, aws_access_key: str | None = None,
src/anthropic/lib/bedrock/_client.py:136
↓ 1 callersMethod__init__
( self, *, api_key: str | None = None, aws_access_key: str | None = None,
src/anthropic/lib/aws/_client.py:35
↓ 1 callersMethod__init__
( self, *, region: str | NotGiven = not_given, project_id: str | NotGiven = no
src/anthropic/lib/vertex/_client.py:96
↓ 1 callersMethod__init__
Construct a new synchronous Claude Platform on Google Cloud client. Auth precedence (first match wins, unless `skip_auth=True`): 1.
src/anthropic/lib/google_cloud/_client.py:198
↓ 1 callersMethod__init__
( self, *, raw_iterator: Iterator[bytes], line_type: type[_T], http_re
src/anthropic/_decoders/jsonl.py:23
↓ 1 callersMethod__load__
(self)
src/anthropic/_utils/_proxy.py:65
↓ 1 callersMethod__run__
(self)
src/anthropic/lib/tools/_beta_runner.py:481
↓ 1 callersMethod__run__
(self)
src/anthropic/lib/tools/_beta_runner.py:855
↓ 1 callersMethod__stream__
(self)
src/anthropic/_streaming.py:223
↓ 1 callersMethod__stream__
(self)
src/anthropic/lib/streaming/_beta_messages.py:135
↓ 1 callersMethod__stream__
(self)
src/anthropic/lib/streaming/_beta_messages.py:289
↓ 1 callersMethod__stream__
(self)
src/anthropic/lib/streaming/_messages.py:132
↓ 1 callersMethod__stream__
(self)
src/anthropic/lib/streaming/_messages.py:285
↓ 1 callersMethod__stream_text__
(self)
src/anthropic/lib/streaming/_beta_messages.py:149
↓ 1 callersMethod__stream_text__
(self)
src/anthropic/lib/streaming/_beta_messages.py:303
↓ 1 callersMethod__stream_text__
(self)
src/anthropic/lib/streaming/_messages.py:145
↓ 1 callersMethod__stream_text__
(self)
src/anthropic/lib/streaming/_messages.py:298
↓ 1 callersFunction_add
(tag: str | None)
src/anthropic/lib/_stainless_helpers.py:124
↓ 1 callersFunction_aforce_stop_quietly
Async version of `_force_stop_quietly`.
src/anthropic/lib/environments/_poller.py:311
↓ 1 callersMethod_aiter_chunks
Given an iterator that yields raw binary data, iterate over it and yield individual SSE chunks
src/anthropic/_streaming.py:438
↓ 1 callersFunction_append_header_value
Append `addition` to a comma-separated header value, skipping tokens that are already present so the same helper isn't recorded twice. Values
src/anthropic/_base_client.py:2554
↓ 1 callersFunction_apply_delta
Apply a content_block_delta to the accumulating block at `index`.
src/anthropic/lib/middleware/_fallbacks.py:1313
↓ 1 callersFunction_apply_tool_change
Apply a single `tool_removal` / `tool_addition` block to `available`.
src/anthropic/lib/tools/_tool_dispatch.py:200
↓ 1 callersFunction_apply_tool_reference_change
Fold one `tool_removal` / `tool_addition` block into `available`.
src/anthropic/lib/tools/_tool_dispatch.py:211
↓ 1 callersFunction_archive_file_mode
Reduce an archive entry's Unix mode to `0o755` if it is executable, `0o644` otherwise. Skill bundles can ship executable scripts (e.g. `scrip
src/anthropic/lib/tools/_skills.py:127
↓ 1 callersFunction_array_suffix
(array_format: ArrayFormat, array_index: int)
src/anthropic/_utils/_utils.py:61
↓ 1 callersFunction_assert_list_type
(type_: type[object], value: object)
tests/utils.py:142
↓ 1 callersMethod_async_call_provider
Async version of `_call_provider`.
src/anthropic/lib/credentials/_cache.py:169
↓ 1 callersFunction_async_collect_files
(directory: anyio.Path, relative_to: anyio.Path, files: list[FileTypes])
src/anthropic/lib/_files.py:36
↓ 1 callersMethod_async_invoke_provider
Async version of `_invoke_provider`.
src/anthropic/lib/credentials/_cache.py:153
↓ 1 callersFunction_async_provider_function
(*, force_refresh: bool = False)
tests/lib/test_credentials.py:3430
↓ 1 callersFunction_async_transform_file
(file: FileTypes)
src/anthropic/_files.py:120
↓ 1 callersFunction_async_validate_no_symlink_escape
(target_path: AsyncPath, memory_root: AsyncPath)
src/anthropic/lib/tools/_beta_builtin_memory_tool.py:650
↓ 1 callersFunction_backfill
Fill `None` fields on `primary` from `fallback`.
src/anthropic/lib/middleware/_fallbacks.py:1607
↓ 1 callersFunction_basic_config
()
src/anthropic/_utils/_logs.py:8
↓ 1 callersFunction_bedrock_message
(content: t.List[t.Dict[str, t.Any]], stop_reason: str)
tests/lib/test_bedrock.py:511
↓ 1 callersMethod_browser_state
The browser after a call: the open tabs (one marked active) and the state changes since the previous report. Every driver implements it. The S
src/anthropic/lib/tools/_toolsets/_browser.py:329
↓ 1 callersMethod_browser_state
The browser after a call. See the synchronous class's `_browser_state`. Awaited, so a sync method here is a contract error.
src/anthropic/lib/tools/_toolsets/_browser.py:573
↓ 1 callersFunction_build_discriminated_union_meta
(*, union: type, meta_annotations: tuple[Any, ...])
src/anthropic/_models.py:783
↓ 1 callersFunction_build_federation_result
Build a `CredentialResult` for the env-var federation path (step 4 in the precedence spec). Returns `None` if the required trio isn't fully se
src/anthropic/lib/credentials/_chain.py:29
↓ 1 callersMethod_build_headers
(self, options: FinalRequestOptions, *, retries_taken: int = 0)
src/anthropic/_base_client.py:482
↓ 1 callersMethod_build_middleware_chain
Build the middleware invocation chain. The chain only depends on the immutable `self._middleware` tuple so it is built once at constr
src/anthropic/_base_client.py:1226
↓ 1 callersMethod_build_middleware_chain
Build the middleware invocation chain. The chain only depends on the immutable `self._middleware` tuple so it is built once at constr
src/anthropic/_base_client.py:1951
↓ 1 callersFunction_build_result_event
Build the result-event params matching `ev`'s tool-call kind. A custom tool call (`agent.custom_tool_use`) is answered with a `user.custom_to
src/anthropic/lib/tools/_beta_session_runner.py:332
↓ 1 callersMethod_call_oidc_federation
(self, auth: Dict[str, Any], *, force_refresh: bool = False)
src/anthropic/lib/credentials/_providers.py:645
↓ 1 callersMethod_call_provider
Call the provider, retrying once on a 401 from the token endpoint.
src/anthropic/lib/credentials/_cache.py:159
↓ 1 callersMethod_call_user_oauth
Interactive-login profile. With a `client_id` in the auth block, we run the refresh_token grant on expiry; without one, we treat the c
src/anthropic/lib/credentials/_providers.py:520
↓ 1 callersFunction_calls
()
tests/lib/tools/memory_sync/test_e2e_memory.py:103
↓ 1 callersFunction_changed_tool_name
The locally runnable tool name a tool-change ``tool`` resolves to. `tool_reference` names one directly and `tool_definition` carries one by v
src/anthropic/lib/tools/_tool_dispatch.py:224
↓ 1 callersMethod_cleanup_skills
Remove the skill directories `setup_skills` downloaded. Only the directories this context created are removed — a pre-existing `{work
src/anthropic/lib/tools/agent_toolset.py:315
↓ 1 callersFunction_coerce_expires_at
Parse a credentials-file `expires_at` field into Unix seconds.
src/anthropic/lib/credentials/_providers.py:59
↓ 1 callersMethod_collect
(self, line_bytes: bytes, *, newline_terminated: bool)
src/anthropic/lib/tools/_files.py:67
↓ 1 callersFunction_collect_files
(directory: Path, relative_to: Path, files: list[FileTypes])
src/anthropic/lib/_files.py:19
↓ 1 callersMethod_compact_after_final_turn
(self, message: ParsedBetaMessage[ResponseFormatT])
src/anthropic/lib/tools/_beta_runner.py:476
↓ 1 callersMethod_compact_after_final_turn
( self, message: ParsedBetaMessage[ResponseFormatT] )
src/anthropic/lib/tools/_beta_runner.py:847
↓ 1 callersFunction_compaction_tool_changes
The ``tool_changes`` of a ``compaction`` block, whichever shape it has in history. A caller-written block is a dict; one the runner echoed from a
src/anthropic/lib/tools/_tool_dispatch.py:187
↓ 1 callersFunction_confined
Yield the matches whose canonical path is inside `root`; a match that cannot be canonicalised (symlink loop, unreadable) is dropped, not raised.
src/anthropic/lib/tools/agent_toolset.py:793
↓ 1 callersFunction_construct_field
(value: object, field: FieldInfo, key: str)
src/anthropic/_models.py:502
↓ 1 callersFunction_convert_tool_result
Convert MCP `CallToolResult` to a value suitable for returning from `call()`.
src/anthropic/lib/tools/mcp.py:304
↓ 1 callersMethod_copy_and_prepare
A copy of `options` with `extra_body` merged into the body, and the body and query prepared. The data is walked once per request, before the
src/anthropic/_base_client.py:2077
↓ 1 callersMethod_corroborated_delete
Send the server delete only after the file's absence is confirmed. Records the miss on the first sync; deletes on a later one after t
src/anthropic/lib/tools/_memories.py:857
↓ 1 callersFunction_create_pydantic_model
(type_: _T)
src/anthropic/_models.py:940
↓ 1 callersMethod_create_schema_from_function
Create JSON schema from function signature using pydantic.
src/anthropic/lib/tools/_beta_functions.py:224
↓ 1 callersFunction_credentials_file_path
Path to `<config_dir>/credentials/<profile>.json` (secret, 0600).
src/anthropic/lib/credentials/_constants.py:186
↓ 1 callersFunction_custom_tool_result
(custom_tool_use_id: str)
tests/lib/tools/test_session_runner.py:102
↓ 1 callersFunction_dec
(*_: Any, **__: Any)
src/anthropic/_models.py:950
↓ 1 callersFunction_deepcopy_with_paths
(item: _T, paths: Sequence[Sequence[str]], index: int)
src/anthropic/_files.py:164
↓ 1 callersFunction_default_bash_env
The environment for the bash subprocess, with the runner's own credentials scrubbed. The bash tool runs model-issued commands, so it must nev
src/anthropic/lib/tools/agent_toolset.py:144
↓ 1 callersMethod_delete_remote
( self, store: _AttachedStore, rel: str, remote: BetaManagedAgentsMemory, base_sha: str )
src/anthropic/lib/tools/_memories.py:903
↓ 1 callersFunction_discriminator_cache_key
(union: type)
src/anthropic/_models.py:734
↓ 1 callersFunction_download_and_extract
Stream the skill archive to a temp file, then extract it into `dest`.
src/anthropic/lib/tools/_skills.py:269
↓ 1 callersFunction_drive_hop
Feed one hop's SSE events through `reader`, yielding the frames to forward.
src/anthropic/lib/middleware/_fallbacks.py:1021
↓ 1 callersFunction_drive_hop_async
Feed one hop's SSE events through `reader`, yielding the frames to forward. The outcome is read from `reader.finish()` afterwards — async generat
src/anthropic/lib/middleware/_fallbacks.py:1033
↓ 1 callersMethod_ensure_access_token
(self)
src/anthropic/lib/vertex/_client.py:166
↓ 1 callersMethod_ensure_access_token
(self)
src/anthropic/lib/vertex/_client.py:330
↓ 1 callersFunction_entered
()
src/anthropic/lib/tools/_beta_functions.py:573
↓ 1 callersMethod_execute
Run `ev`'s tool, post its result, and surface the dispatched call. `confirmation` is the verdict that released the call onto the work
src/anthropic/lib/tools/_beta_session_runner.py:846
↓ 1 callersFunction_extract_field_schema_pv2
(model: type[BaseModel], field_name: str)
src/anthropic/_models.py:844
← previousnext →901–1,000 of 9,455, ranked by callers