Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
9,455 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
9,455
◇
Types & classes
3,151
↳
Endpoints
25
Method
file_upload
Default-disabled. Enabling it in `configs` lets a page read files on the machine running the browser: pass a `file_policy` confined to one ded
src/anthropic/lib/tools/_toolsets/_browser.py:655
Method
file_upload
(self, context: BetaToolsetCallContext, input: BetaBrowserFileUploadInput)
tests/lib/tools/toolsets/_fakes.py:200
Method
file_upload
(self, context: BetaToolsetCallContext, input: BetaBrowserFileUploadInput)
tests/lib/tools/toolsets/_fakes.py:274
Method
files
(self)
src/anthropic/_client.py:329
Method
files
(self)
src/anthropic/_client.py:763
Method
files
(self)
src/anthropic/_client.py:1037
Method
files
(self)
src/anthropic/_client.py:1080
Method
files
(self)
src/anthropic/_client.py:1123
Method
files
(self)
src/anthropic/_client.py:1166
Method
files
(self)
src/anthropic/resources/beta/beta.py:168
Method
files
(self)
src/anthropic/resources/beta/beta.py:253
Method
files
(self)
src/anthropic/resources/beta/beta.py:341
Method
files
(self)
src/anthropic/resources/beta/beta.py:406
Method
files
(self)
src/anthropic/resources/beta/beta.py:471
Method
files
(self)
src/anthropic/resources/beta/beta.py:536
Function
files_from_dir
(directory: str | os.PathLike[str])
src/anthropic/lib/_files.py:11
Method
find
(self, context: BetaToolsetCallContext, input: BetaBrowserFindInput)
src/anthropic/lib/tools/_toolsets/_browser.py:646
Function
finish_that_breaks
(_self: memories_mod.SessionMemoryStores)
tests/lib/tools/memory_sync/test_e2e_memory.py:317
Function
flaky_hash_file
(self: _file_store.LocalFileStore, rel_path: str)
tests/lib/tools/memory_sync/test_keep_only_copy.py:172
Function
flaky_put
(self: _file_store.LocalFileStore, rel: str, content: str)
tests/lib/tools/memory_sync/test_memory_sync.py:86
Function
flaky_remove
(_self: _file_store.LocalFileStore, _rel: str)
tests/lib/tools/memory_sync/test_memory_sync.py:605
Method
fn
(x: int)
tests/lib/tools/test_functions.py:556
Method
for_base_url
Return the provider a client with `base_url` should exchange through. Either `self`, bound to `base_url`, or — if another client already
src/anthropic/lib/credentials/_types.py:101
Method
for_base_url
Return the provider a client with `base_url` should exchange through. Binds in place, unless another client already bound this instance to a
src/anthropic/lib/credentials/_workload.py:216
Method
form_input
(self, context: BetaToolsetCallContext, input: BetaBrowserFormInputInput)
src/anthropic/lib/tools/_toolsets/_browser.py:390
Method
form_input
(self, context: BetaToolsetCallContext, input: BetaBrowserFormInputInput)
src/anthropic/lib/tools/_toolsets/_browser.py:640
Function
format_collected
(code: str)
scripts/utils/ruffen-docs.py:206
Function
gate_uploads
(context: BetaConfirmContext)
tests/lib/tools/toolsets/test_confirm.py:88
Function
gated
(_input: dict[str, Any])
tests/lib/tools/test_session_runner.py:644
Function
gated
(memory_id: str, **kwargs: Any)
tests/lib/tools/memory_sync/test_two_pass.py:94
Method
get
( self, path: str, *, cast_to: Type[ResponseT], options: RequestOption
src/anthropic/_base_client.py:2172
Method
get_api_list
( self, path: str, *, model: Type[_T], page: Type[AsyncPageT],
src/anthropic/_base_client.py:2334
Function
get_auth_headers_recorder
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_bedrock_mantle.py:25
Method
get_final_text
Returns all `text` content blocks concatenated together. > [!NOTE] > Currently the API will only respond with a single content block.
src/anthropic/lib/streaming/_beta_messages.py:105
Method
get_final_text
Returns all `text` content blocks concatenated together. > [!NOTE] > Currently the API will only respond with a single content block.
src/anthropic/lib/streaming/_beta_messages.py:259
Method
get_final_text
Returns all `text` content blocks concatenated together. > [!NOTE] > Currently the API will only respond with a single content block.
src/anthropic/lib/streaming/_messages.py:102
Method
get_final_text
Returns all `text` content blocks concatenated together. > [!NOTE] > Currently the API will only respond with a single content block.
src/anthropic/lib/streaming/_messages.py:255
Method
get_next_page
(self: AsyncPageT)
src/anthropic/_base_client.py:388
Method
get_page_text
(self, context: BetaToolsetCallContext, input: BetaBrowserGetPageTextInput)
src/anthropic/lib/tools/_toolsets/_browser.py:399
Method
get_page_text
(self, context: BetaToolsetCallContext, input: BetaBrowserGetPageTextInput)
src/anthropic/lib/tools/_toolsets/_browser.py:649
Method
get_page_text
(self, context: BetaToolsetCallContext, input: Any)
tests/lib/tools/toolsets/test_pipeline.py:1022
Method
get_page_text
(self, context: BetaToolsetCallContext, input: Any)
tests/lib/tools/toolsets/test_pipeline.py:1047
Method
get_page_text
(self, context: BetaToolsetCallContext, input: Any)
tests/lib/tools/toolsets/test_pipeline.py:1099
Method
get_page_text
(self, context: BetaToolsetCallContext, input: Any)
tests/lib/tools/toolsets/test_pipeline.py:1216
Method
get_page_text
(self, context: BetaToolsetCallContext, input: BetaBrowserGetPageTextInput)
tests/lib/tools/toolsets/_fakes.py:204
Method
get_page_text
(self, context: BetaToolsetCallContext, input: BetaBrowserGetPageTextInput)
tests/lib/tools/toolsets/_fakes.py:278
Method
get_page_text
(self, context: BetaToolsetCallContext, input: BetaBrowserGetPageTextInput)
tests/lib/tools/toolsets/test_interface.py:269
Method
get_page_text
(self, context: BetaToolsetCallContext, input: BetaBrowserGetPageTextInput)
tests/lib/tools/toolsets/test_interface.py:286
Function
get_required_header
(headers: HeadersLike, header: str)
src/anthropic/_utils/_utils.py:407
Function
get_time
Lookup the current time in a timezone.
tests/lib/tools/test_runners.py:1089
Function
get_transformed_string
Transforms a JSON schema of type string to ensure it conforms to the API's expectations. Specifically, it ensures that if the schema is of type "
src/anthropic/lib/_parse/_transform.py:35
Function
get_weather
Get the weather. Args: city: city name
tests/lib/test_bedrock.py:560
Function
get_weather
Lookup the weather for a given city in either celsius or fahrenheit Args: location: The city and state, e.g. San Francisco, CA un
examples/tools_runner.py:12
Function
get_weather
Lookup the weather for a given city in either celsius or fahrenheit Args: location: The city and state, e.g. San Francisco, CA un
examples/tools_runner_search_tool.py:15
Method
get_weather
Get the weather. Args: city: city name
tests/lib/test_vertex.py:226
Method
get_weather
Get the weather. Args: city: city name
tests/lib/test_vertex.py:423
Method
get_weather
Lookup the weather for a given city in either celsius or fahrenheit Args: location: The city and state, e.g. San Francisc
tests/lib/tools/test_runners.py:179
Method
get_weather
Get the weather for a specific location.
tests/lib/tools/test_functions.py:21
Function
get_weather_async
(city: str)
tests/lib/tools/test_runners.py:1927
Method
get_weather_detailed
(location: str, unit: str = "celsius", include_forecast: bool = False)
tests/lib/tools/test_functions.py:332
Method
give_up
(request: APIRequest, call_next: CallNext)
tests/test_middleware.py:852
Method
give_up
(request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:1786
Function
glob
List files matching a glob pattern, newest first.
src/anthropic/lib/tools/agent_toolset.py:807
Method
google_credentials
The `google.auth` credentials in use (explicit or lazily-loaded ADC), if any. Distinct from `.credentials`, which is the base client's first-
src/anthropic/lib/google_cloud/_client.py:103
Function
grep
Search file contents for a regular expression.
src/anthropic/lib/tools/agent_toolset.py:842
Method
handle
(self, request: APIRequest, call_next: CallNext)
src/anthropic/_middleware.py:54
Method
handle
(req: APIRequest)
src/anthropic/_base_client.py:1254
Method
handle
(req: APIRequest)
src/anthropic/_base_client.py:1985
Method
handle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:97
Method
handle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:125
Method
handle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:143
Method
handle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:167
Method
handle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:187
Method
handle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:206
Method
handle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:244
Method
handle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:261
Method
handle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:280
Method
handle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:318
Method
handle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:342
Method
handle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:2086
Method
handle_async
(self, request: APIRequest, call_next: AsyncCallNext)
src/anthropic/_middleware.py:57
Method
handle_async
(self, request: APIRequest, call_next: AsyncCallNext)
src/anthropic/lib/middleware/_fallbacks.py:262
Method
handle_async
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:106
Method
handle_async
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:129
Method
handle_async
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:150
Method
handle_async
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:174
Method
handle_async
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:192
Method
handle_async
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:217
Method
handle_async
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:250
Method
handle_async
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:267
Method
handle_async
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:286
Method
handle_async
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:326
Method
handle_async
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:352
Method
handle_async_request
( self, request: httpx.Request, )
src/anthropic/_vendor/httpx_aiohttp/transport.py:149
Method
handle_async_request
( self, request: httpx2.Request, )
tests/test_client.py:81
Method
handle_request
( self, request: httpx2.Request, )
tests/test_client.py:72
Method
handler
(request: httpx2.Request)
tests/test_header_case_sensitivity.py:81
Method
handler
(request: httpx2.Request)
tests/lib/test_credentials.py:2675
Function
hanging_finish
(_self: memories_mod.SessionMemoryStores)
tests/lib/tools/memory_sync/test_e2e_memory.py:380
Function
hanging_flush
(_self: memories_mod.SessionMemoryStores)
tests/lib/tools/memory_sync/test_e2e_memory.py:342
← previous
next →
2,801–2,900 of 9,455, ranked by callers