Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
14,068 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
14,068
◇
Types & classes
4,501
↳
Endpoints
96
Method
_heartbeat_until_end
(self, serving: anyio.CancelScope)
src/anthropic/lib/environments/_lease.py:78
Method
_init_proxy_transport
( self, proxy: httpx.Proxy, verify: ssl.SSLContext | str | bool = True, cert:
src/anthropic/_vendor/httpx_aiohttp/client.py:46
Method
_init_transport
( self, verify: ssl.SSLContext | str | bool = True, cert: t.Union[str, t.Tuple[str, st
src/anthropic/_vendor/httpx_aiohttp/client.py:21
Method
_isolate
(self, monkeypatch: pytest.MonkeyPatch, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:266
Method
_isolate
(self, monkeypatch: pytest.MonkeyPatch, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:1463
Method
_isolate
(self, monkeypatch: pytest.MonkeyPatch, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:1558
Function
_isolate_environment
Ambient first-party / google-cloud env vars must not leak into these tests.
tests/lib/test_google_cloud.py:30
Method
_iter
()
tests/lib/tools/memory_sync/test_memory_sync.py:668
Method
_iter
()
tests/lib/tools/memory_sync/_fake_anthropic.py:107
Method
_iterator
(self)
src/anthropic/_streaming.py:50
Method
_iterator
(self)
src/anthropic/_streaming.py:178
Method
_iterator
(self)
src/anthropic/_decoders/jsonl.py:38
Method
_iterator
(self)
src/anthropic/_decoders/jsonl.py:99
Function
_json_default
(value: Any)
src/anthropic/lib/credentials/_secrets.py:89
Method
_kill_after_exit
(self, watchdog: subprocess.Popen[bytes] | None)
src/anthropic/lib/tools/agent_toolset.py:679
Method
_last_reply
The most recent reply the history records.
src/anthropic/lib/threads/_thread_state.py:127
Function
_lazy
(**kwargs: Any)
src/anthropic/lib/tools/_beta_functions.py:585
Function
_leave_tools_alone
(runner: Any)
tests/lib/tools/test_runners.py:1677
Method
_load_config
(self)
src/anthropic/lib/credentials/_providers.py:877
Function
_low_retry_timeout
(*_args: Any, **_kwargs: Any)
tests/test_client.py:57
Function
_low_retry_timeout
(*_args: Any, **_kwargs: Any)
tests/test_middleware.py:52
Function
_make_dir_and_ancestors
(path: Path)
src/anthropic/lib/tools/_file_store.py:297
Function
_make_dirs_below_root
(root: Path, directory: Path)
src/anthropic/lib/tools/_file_store.py:308
Method
_make_sse_decoder
(self, options: FinalRequestOptions | None = None)
src/anthropic/lib/bedrock/_client.py:145
Function
_md_match
(match: Match[str])
scripts/utils/ruffen-docs.py:64
Method
_mkstemp_enospc
(*_args: Any, **_kwargs: Any)
tests/lib/test_credentials.py:5668
Function
_mtime_or_zero
(p: Path)
src/anthropic/lib/tools/agent_toolset.py:1090
Function
_new_system_with_a_rewritten_history
(runner: Any)
tests/lib/threads/helpers.py:876
Function
_new_system_without_the_reply
(runner: Any)
tests/lib/threads/helpers.py:871
Function
_no_retry_delay
(*_args: Any, **_kwargs: Any)
tests/test_prepare.py:129
Function
_not_a_bool
(context: BetaComputerConfirmContext)
tests/lib/tools/toolsets/test_computer_pipeline.py:45
Method
_observer
(self)
src/anthropic/_streaming.py:56
Method
_observer
(self)
src/anthropic/_streaming.py:184
Method
_open_stream
( self, messages: Iterable[BetaMessageParam | BetaMessage], overrides: TurnOverrides )
src/anthropic/lib/threads/_beta_threads.py:531
Method
_params
The thread's `params` that a request takes: the request fields, with `tools` as the definitions sent, and the whole history, `messages` includ
src/anthropic/lib/tools/_beta_runner.py:242
Method
_parsed_docstring
(self)
src/anthropic/lib/tools/_beta_functions.py:212
Method
_parser
(resp: AsyncPageT)
src/anthropic/_base_client.py:354
Method
_parser
(resp: SyncPageT)
src/anthropic/_base_client.py:1680
Method
_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/bedrock/_mantle.py:248
Method
_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/bedrock/_mantle.py:438
Method
_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/bedrock/_client.py:245
Method
_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/bedrock/_client.py:427
Method
_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/aws/_client.py:378
Method
_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/vertex/_client.py:134
Method
_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/vertex/_client.py:300
Method
_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/google_cloud/_client.py:604
Method
_prepare_options
(self, options: FinalRequestOptions)
tests/test_client.py:2552
Method
_prepare_request
(self, request: httpx2.Request)
src/anthropic/lib/bedrock/_client.py:249
Method
_prepare_request
(self, request: httpx2.Request)
src/anthropic/lib/bedrock/_client.py:431
Method
_prepare_request
(self, request: httpx2.Request)
src/anthropic/lib/aws/_client.py:158
Method
_prepare_request
(self, request: httpx2.Request)
src/anthropic/lib/vertex/_client.py:138
Method
_prepare_request
(self, request: httpx2.Request)
src/anthropic/lib/vertex/_client.py:304
Method
_prepare_request
(self, request: httpx2.Request)
src/anthropic/lib/google_cloud/_client.py:399
Method
_prepare_request
(self, request: httpx2.Request)
src/anthropic/lib/google_cloud/_client.py:617
Method
_prepare_url
(self, url: str)
src/anthropic/lib/google_cloud/_client.py:126
Function
_quote_fragment_part
Percent-encode `value` for use in a URI fragment. Considers characters not in `fragment` set from RFC 3986 §3.5 to be unsafe. https://datatra
src/anthropic/_utils/_path.py:38
Function
_quote_path_segment_part
Percent-encode `value` for use in a URI path segment. Considers characters not in `pchar` set from RFC 3986 §3.3 to be unsafe. https://datatr
src/anthropic/_utils/_path.py:17
Function
_quote_query_part
Percent-encode `value` for use in a URI query string. Considers &, = and characters not in `query` set from RFC 3986 §3.4 to be unsafe. https
src/anthropic/_utils/_path.py:29
Function
_raise_unless_vanished
(error: OSError)
src/anthropic/lib/tools/_file_store.py:359
Method
_read
(self, stdout: IO[bytes], stderr: IO[bytes])
src/anthropic/lib/tools/agent_toolset.py:735
Function
_read_env_token
()
src/anthropic/lib/credentials/_chain.py:49
Method
_record
(self, request: httpx2.Request)
tests/test_prepare.py:68
Method
_replace_saved_output
(self)
src/anthropic/lib/tools/agent_toolset.py:694
Function
_replace_via_temp
(dest: Path, data: bytes, is_executable: bool)
src/anthropic/lib/tools/_file_store.py:318
Method
_repr_pretty_
(self, printer: Any, _cycle: bool)
tests/lib/tools/_fake_sessions_api.py:75
Function
_reset_model_build_lock
()
src/anthropic/_models.py:122
Method
_reset_shadow_one_shot
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_credentials.py:4703
Function
_resolved
(_path: str)
tests/lib/tools/toolsets/test_security.py:214
Method
_respond
(self, kind: str, request: httpx2.Request)
tests/lib/environments/_fake_work_api.py:198
Function
_retrieve
(session_id: str)
tests/lib/tools/memory_sync/_fake_anthropic.py:235
Function
_rewrite_then_append
(runner: Any, _reply: Any, _tool_response: Any)
tests/lib/threads/helpers.py:599
Method
_run
(self, thread: str | None, run: Callable[[RunningCall], Awaitable[None]])
src/anthropic/lib/tools/_beta_session_runner.py:948
Method
_run_call
( self, call: DispatchedToolUseEvent, tool: BetaAnyRunnableTool, confirmation:
src/anthropic/lib/tools/_beta_session_runner.py:586
Method
_save_in_turn
(self, save: Callable[[], Awaitable[None]])
src/anthropic/lib/environments/_worker.py:580
Method
_serialize
Always serialize as a list so Pydantic's JSON encoder is happy.
src/anthropic/_models.py:561
Method
_serve_session
(self)
src/anthropic/lib/environments/_worker.py:501
Function
_set_messages_params
(thread: BetaMessageThread[Any] | BetaAsyncMessageThread[Any])
tests/lib/threads/helpers.py:823
Function
_set_messages_params_max_tokens
(thread: BetaMessageThread[Any] | BetaAsyncMessageThread[Any])
tests/lib/threads/helpers.py:831
Method
_set_private_attributes
( self, model: Type[_T], client: AsyncAPIClient, options: FinalRequestOptions,
src/anthropic/_base_client.py:379
Method
_should_retry
(self, response: httpx2.Response)
src/anthropic/_client.py:806
Method
_sleep
(self, seconds: float)
src/anthropic/_resource.py:22
Method
_sleep
(self, seconds: float)
src/anthropic/_resource.py:38
Method
_spin
(self)
examples/memory/basic.py:61
Function
_symlinks_in_dir
(root: Path, under: str, base: Path)
src/anthropic/lib/tools/_file_store.py:388
Method
_test
()
tests/lib/tools/test_mcp_tool.py:335
Method
_toolset_confirm
(self, name: str, shown: BetaToolsetCallContext)
src/anthropic/lib/tools/_toolsets/_base.py:407
Method
_toolset_run
( self, context: BetaToolsetCallContext, name: str, input: Mapping[str, object] )
src/anthropic/lib/tools/_toolsets/_computer.py:179
Method
_toolset_run
( self, context: BetaToolsetCallContext, name: str, input: Mapping[str, object] )
src/anthropic/lib/tools/_toolsets/_computer.py:299
Method
_toolset_run
( self, context: BetaToolsetCallContext, name: str, input: Mapping[str, object] )
src/anthropic/lib/tools/_toolsets/_browser.py:256
Method
_toolset_run
( self, context: BetaToolsetCallContext, name: str, input: Mapping[str, object] )
src/anthropic/lib/tools/_toolsets/_browser.py:497
Method
_toolsets_by_family
The runnable toolsets among the thread's tools, read again on each access, and the ones the runner was given apart from them, by family (`tool
src/anthropic/lib/tools/_beta_runner.py:601
Method
_tracer
This client's tracer, or `None` when it has no spans. The client gets it when it first needs it, so constructing or copying a client calls no
src/anthropic/_base_client.py:485
Function
_update_max_tokens
(thread: BetaMessageThread[Any] | BetaAsyncMessageThread[Any])
tests/lib/threads/helpers.py:827
Function
_update_system
(thread: BetaMessageThread[Any] | BetaAsyncMessageThread[Any])
tests/lib/threads/helpers.py:815
Function
_update_tools
(thread: BetaMessageThread[Any] | BetaAsyncMessageThread[Any])
tests/lib/threads/helpers.py:819
Method
_validate
(v: Iterable[_T], handler: "ValidatorFunctionWrapHandler")
src/anthropic/_models.py:532
Method
_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/_client.py:379
Method
_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/_client.py:783
Method
_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/lib/foundry.py:299
Method
_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/lib/foundry.py:505
← previous
next →
3,101–3,200 of 14,068, ranked by callers