MCPcopy Create free account

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

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

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:1574
Method_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/_client.py:807
Method_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/bedrock/_mantle.py:249
Method_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/bedrock/_mantle.py:439
Method_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/bedrock/_client.py:203
Method_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/bedrock/_client.py:384
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:135
Method_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/vertex/_client.py:301
Method_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/google_cloud/_client.py:604
Method_prepare_options
(self, options: FinalRequestOptions)
tests/test_client.py:2189
Method_prepare_request
(self, request: httpx2.Request)
src/anthropic/lib/bedrock/_client.py:207
Method_prepare_request
(self, request: httpx2.Request)
src/anthropic/lib/bedrock/_client.py:388
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:139
Method_prepare_request
(self, request: httpx2.Request)
src/anthropic/lib/vertex/_client.py:305
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
Function_read_env_token
()
src/anthropic/lib/credentials/_chain.py:49
Method_record
(self, request: httpx2.Request)
tests/test_prepare.py:68
Function_replace_via_temp
(dest: Path, data: bytes, is_executable: bool)
src/anthropic/lib/tools/_file_store.py:318
Function_reset_model_build_lock
()
src/anthropic/_models.py:121
Method_reset_shadow_one_shot
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_credentials.py:4222
Function_resolved
(_path: str)
tests/lib/tools/toolsets/test_security.py:214
Function_retrieve
(session_id: str)
tests/lib/tools/memory_sync/_fake_anthropic.py:232
Function_rewrite_then_append
(runner: Any, _reply: Any, _tool_response: Any)
tests/lib/threads/helpers.py:599
Function_run_session_tools
(*_a: Any, **_kw: Any)
tests/lib/tools/memory_sync/test_e2e_memory.py:102
Function_scoped
(_client: Any, *, auth_token: str, helper: str)
tests/lib/tools/memory_sync/test_e2e_memory.py:80
Method_serialize
Always serialize as a list so Pydantic's JSON encoder is happy.
src/anthropic/_models.py:560
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:377
Method_should_retry
(self, response: httpx2.Response)
src/anthropic/_client.py:834
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_stop
(_work_id: str, **_kwargs: Any)
tests/lib/environments/test_poller_method.py:203
Method_stop_watcher
When `_stop` is set, close the work stream so `_dispatch_loop` exits.
src/anthropic/lib/tools/_beta_session_runner.py:1147
Method_stream_loop
(self)
src/anthropic/lib/tools/_beta_session_runner.py:713
Function_symlinks_in_dir
(root: Path, under: str, base: Path)
src/anthropic/lib/tools/_file_store.py:388
Function_sync_noop
(_seconds: float)
tests/lib/environments/test_poller_method.py:122
Method_sync_store
(self, store: _AttachedStore, final: bool = False)
src/anthropic/lib/tools/_memories.py:373
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:483
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:531
Method_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/_client.py:403
Method_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/_client.py:811
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
Method_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/lib/bedrock/_mantle.py:245
Method_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/lib/bedrock/_mantle.py:435
Method_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/lib/aws/_client.py:372
Method_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/lib/google_cloud/_client.py:366
Method_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/lib/google_cloud/_client.py:583
Function_waiter
(ev: anyio.Event)
src/anthropic/lib/tools/_beta_session_runner.py:1169
Methoda_sync_cm
()
tests/lib/tools/test_functions.py:542
Methodack
Note: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating se
src/anthropic/resources/beta/environments/work.py:927
Methodack
(self, work_id: str, **kwargs: Any)
tests/lib/environments/test_poller_method.py:95
Methodack
(self, work_id: str, **_kwargs: Any)
tests/lib/environments/test_worker.py:1251
Methodaclose
(self)
src/anthropic/_vendor/httpx_aiohttp/transport.py:77
Methodaclose
(self)
tests/lib/test_credentials.py:3959
Methodaction_urls
(self)
src/anthropic/resources/user_profiles/user_profiles.py:46
Methodaction_urls
(self)
src/anthropic/resources/user_profiles/user_profiles.py:402
Methodaction_urls
(self)
src/anthropic/resources/user_profiles/user_profiles.py:777
Methodaction_urls
(self)
src/anthropic/resources/user_profiles/user_profiles.py:802
Methodaction_urls
(self)
src/anthropic/resources/user_profiles/user_profiles.py:827
Methodaction_urls
(self)
src/anthropic/resources/user_profiles/user_profiles.py:852
← previousnext →2,801–2,900 of 12,434, ranked by callers