MCPcopy Create free account

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

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

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
← previousnext →2,701–2,800 of 12,274, ranked by callers