Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
12,274 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
12,274
◇
Types & classes
3,937
↳
Endpoints
46
Method
_answered_count
How many stored messages there are up to the last reply. Those after it were sent and never answered.
src/anthropic/lib/threads/_thread_state.py:375
Method
_api_key_auth
(self)
src/anthropic/_client.py:374
Method
_api_key_auth
(self)
src/anthropic/_client.py:782
Method
_api_key_auth
(self)
src/anthropic/lib/aws/_client.py:141
Method
_api_key_auth
(self)
src/anthropic/lib/aws/_client.py:366
Function
_append_reply_and_changed_tool_response
(runner: Any, reply: Any, tool_response: Any)
tests/lib/threads/helpers.py:583
Function
_append_reply_and_own_result
(runner: Any, reply: Any, _tool_response: Any)
tests/lib/threads/helpers.py:575
Function
_append_reply_tool_response_and_text
(runner: Any, reply: Any, tool_response: Any)
tests/lib/threads/helpers.py:579
Function
_async_navigate
Custom tool that shares a browser member's name.
tests/lib/tools/toolsets/test_runner.py:164
Function
_async_noop
(_seconds: float)
tests/lib/environments/test_poller_method.py:126
Function
_async_tool
An async tool.
tests/lib/tools/toolsets/test_runner.py:775
Method
_base_url
(self)
src/anthropic/lib/credentials/_workload.py:198
Method
_bearer_auth
(self)
src/anthropic/_client.py:381
Method
_bearer_auth
(self)
src/anthropic/_client.py:789
Method
_browser_state
(self, context: BetaToolsetCallContext)
tests/lib/tools/toolsets/test_pipeline.py:472
Method
_browser_state
(self, context: BetaToolsetCallContext, returned: Any = returned)
tests/lib/tools/toolsets/test_pipeline.py:542
Method
_browser_state
(self, context: BetaToolsetCallContext)
tests/lib/tools/toolsets/test_pipeline.py:958
Method
_browser_state
(self, context: BetaToolsetCallContext)
tests/lib/tools/toolsets/test_pipeline.py:1107
Method
_browser_state
(self, context: BetaToolsetCallContext)
tests/lib/tools/toolsets/_fakes.py:164
Method
_browser_state
(self, context: BetaToolsetCallContext)
tests/lib/tools/toolsets/_fakes.py:234
Method
_browser_state
(self, context: BetaToolsetCallContext)
tests/lib/tools/toolsets/test_interface.py:38
Method
_browser_state
(self, context: BetaToolsetCallContext)
tests/lib/tools/toolsets/test_interface.py:44
Method
_build_workload_delegate
(self, auth: Dict[str, Any])
src/anthropic/lib/credentials/_providers.py:882
Function
_causes
Flatten an exception and any ExceptionGroup members it wraps.
tests/lib/tools/memory_sync/test_e2e_memory.py:33
Method
_client
The thread's client. It sends the runner's requests, and its options say whether the run has spans.
src/anthropic/lib/tools/_beta_runner.py:255
Function
_close
()
tests/lib/tools/test_session_runner.py:1333
Method
_current_snapshot_or_none
(self)
src/anthropic/lib/streaming/_beta_messages.py:139
Method
_current_snapshot_or_none
(self)
src/anthropic/lib/streaming/_beta_messages.py:311
Method
_current_snapshot_or_none
(self)
src/anthropic/lib/streaming/_messages.py:299
Function
_deny
(context: BetaComputerConfirmContext)
tests/lib/tools/toolsets/test_computer_pipeline.py:41
Function
_deny
(context: BetaConfirmContext)
tests/lib/tools/toolsets/test_confirm.py:40
Method
_dispatch_loop
(self)
src/anthropic/lib/tools/_beta_session_runner.py:922
Method
_download
(self, version: str, *, skill_id: str)
tests/lib/tools/test_skills.py:427
Function
_empty_headers
()
src/anthropic/lib/credentials/_types.py:10
Function
_empty_skill_dirs
()
src/anthropic/lib/tools/agent_toolset.py:191
Function
_exc_func
(*_: Any, **__: Any)
src/anthropic/_models.py:1041
Function
_fail
()
tests/lib/test_google_cloud.py:578
Function
_fake_refresh
(creds: _FakeCredentials)
tests/lib/test_google_cloud.py:520
Method
_flush_store
(self, store: _AttachedStore)
src/anthropic/lib/tools/_memories.py:466
Method
_gen
()
tests/lib/tools/test_session_runner.py:234
Method
_gen
(self)
tests/lib/tools/test_session_runner.py:1500
Method
_gen
(self)
tests/lib/tools/test_session_runner.py:1689
Method
_get_page_items
(self)
src/anthropic/pagination.py:30
Method
_get_page_items
(self)
src/anthropic/pagination.py:67
Method
_get_page_items
(self)
src/anthropic/pagination.py:103
Method
_get_page_items
(self)
src/anthropic/pagination.py:132
Method
_get_page_items
(self)
src/anthropic/pagination.py:160
Method
_get_page_items
(self)
src/anthropic/pagination.py:184
Method
_get_page_items
(self)
src/anthropic/pagination.py:209
Method
_get_page_items
(self)
src/anthropic/pagination.py:234
Method
_get_page_items
(self)
src/anthropic/pagination.py:260
Method
_get_page_items
(self)
src/anthropic/pagination.py:290
Method
_handle_request
( self, thread: BetaMessageThread[ResponseFormatT] )
src/anthropic/lib/tools/_beta_runner.py:952
Method
_handle_request
( self, thread: BetaMessageThread[ResponseFormatT] )
src/anthropic/lib/tools/_beta_runner.py:1065
Method
_handle_request
( self, thread: BetaAsyncMessageThread[ResponseFormatT] )
src/anthropic/lib/tools/_beta_runner.py:1497
Method
_handle_request
( self, thread: BetaAsyncMessageThread[ResponseFormatT] )
src/anthropic/lib/tools/_beta_runner.py:1610
Method
_heartbeat
( work_id: str = work_item.id, environment_id: str = work_item.environ
src/anthropic/lib/environments/_worker.py:738
Method
_idle_watchdog
Stop the runner once `max_idle` seconds have passed since the turn ended with no new events. Event-driven: it blocks on the idle cloc
src/anthropic/lib/tools/_beta_session_runner.py:1118
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
Function
_intercept_scoped_client
Make `_scoped_client` return the parent client unchanged so the runner's requests land on the test fakes. The real `_scoped_client` builds an
tests/lib/tools/test_session_runner.py:33
Method
_isolate
(self, monkeypatch: pytest.MonkeyPatch, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:261
Method
_isolate
(self, monkeypatch: pytest.MonkeyPatch, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:1458
Method
_isolate
(self, monkeypatch: pytest.MonkeyPatch, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:1553
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:48
Method
_iterator
(self)
src/anthropic/_streaming.py:176
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
_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:871
Function
_low_retry_timeout
(*_args: Any, **_kwargs: Any)
tests/test_client.py:54
Function
_low_retry_timeout
(*_args: Any, **_kwargs: Any)
tests/test_middleware.py:51
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)
src/anthropic/lib/bedrock/_client.py:199
Method
_make_sse_decoder
(self)
src/anthropic/lib/bedrock/_client.py:380
Function
_md_match
(match: Match[str])
scripts/utils/ruffen-docs.py:64
Method
_mkstemp_enospc
(*_args: Any, **_kwargs: Any)
tests/lib/test_credentials.py:5187
Function
_mtime_or_zero
(p: Path)
src/anthropic/lib/tools/agent_toolset.py:807
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
_no_sleep
(monkeypatch: pytest.MonkeyPatch)
tests/lib/environments/test_poller_method.py:131
Function
_no_tools
(_env: Any)
tests/lib/environments/test_worker.py:466
Function
_not_a_bool
(context: BetaComputerConfirmContext)
tests/lib/tools/toolsets/test_computer_pipeline.py:45
Method
_observer
(self)
src/anthropic/_streaming.py:54
Method
_observer
(self)
src/anthropic/_streaming.py:182
Method
_on_lease_ttl
(ttl: float)
src/anthropic/lib/environments/_worker.py:734
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:352
Method
_parser
(resp: SyncPageT)
src/anthropic/_base_client.py:1569
Method
_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/_client.py:807
← previous
next →
2,701–2,800 of 12,274, ranked by callers