MCPcopy Create free account

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

Functions9,455 in github.com/anthropics/anthropic-sdk-python

Methodfile_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
Methodfile_upload
(self, context: BetaToolsetCallContext, input: BetaBrowserFileUploadInput)
tests/lib/tools/toolsets/_fakes.py:200
Methodfile_upload
(self, context: BetaToolsetCallContext, input: BetaBrowserFileUploadInput)
tests/lib/tools/toolsets/_fakes.py:274
Methodfiles
(self)
src/anthropic/_client.py:329
Methodfiles
(self)
src/anthropic/_client.py:763
Methodfiles
(self)
src/anthropic/_client.py:1037
Methodfiles
(self)
src/anthropic/_client.py:1080
Methodfiles
(self)
src/anthropic/_client.py:1123
Methodfiles
(self)
src/anthropic/_client.py:1166
Methodfiles
(self)
src/anthropic/resources/beta/beta.py:168
Methodfiles
(self)
src/anthropic/resources/beta/beta.py:253
Methodfiles
(self)
src/anthropic/resources/beta/beta.py:341
Methodfiles
(self)
src/anthropic/resources/beta/beta.py:406
Methodfiles
(self)
src/anthropic/resources/beta/beta.py:471
Methodfiles
(self)
src/anthropic/resources/beta/beta.py:536
Functionfiles_from_dir
(directory: str | os.PathLike[str])
src/anthropic/lib/_files.py:11
Methodfind
(self, context: BetaToolsetCallContext, input: BetaBrowserFindInput)
src/anthropic/lib/tools/_toolsets/_browser.py:646
Functionfinish_that_breaks
(_self: memories_mod.SessionMemoryStores)
tests/lib/tools/memory_sync/test_e2e_memory.py:317
Functionflaky_hash_file
(self: _file_store.LocalFileStore, rel_path: str)
tests/lib/tools/memory_sync/test_keep_only_copy.py:172
Functionflaky_put
(self: _file_store.LocalFileStore, rel: str, content: str)
tests/lib/tools/memory_sync/test_memory_sync.py:86
Functionflaky_remove
(_self: _file_store.LocalFileStore, _rel: str)
tests/lib/tools/memory_sync/test_memory_sync.py:605
Methodfn
(x: int)
tests/lib/tools/test_functions.py:556
Methodfor_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
Methodfor_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
Methodform_input
(self, context: BetaToolsetCallContext, input: BetaBrowserFormInputInput)
src/anthropic/lib/tools/_toolsets/_browser.py:390
Methodform_input
(self, context: BetaToolsetCallContext, input: BetaBrowserFormInputInput)
src/anthropic/lib/tools/_toolsets/_browser.py:640
Functionformat_collected
(code: str)
scripts/utils/ruffen-docs.py:206
Functiongate_uploads
(context: BetaConfirmContext)
tests/lib/tools/toolsets/test_confirm.py:88
Functiongated
(_input: dict[str, Any])
tests/lib/tools/test_session_runner.py:644
Functiongated
(memory_id: str, **kwargs: Any)
tests/lib/tools/memory_sync/test_two_pass.py:94
Methodget
( self, path: str, *, cast_to: Type[ResponseT], options: RequestOption
src/anthropic/_base_client.py:2172
Methodget_api_list
( self, path: str, *, model: Type[_T], page: Type[AsyncPageT],
src/anthropic/_base_client.py:2334
Functionget_auth_headers_recorder
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_bedrock_mantle.py:25
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_next_page
(self: AsyncPageT)
src/anthropic/_base_client.py:388
Methodget_page_text
(self, context: BetaToolsetCallContext, input: BetaBrowserGetPageTextInput)
src/anthropic/lib/tools/_toolsets/_browser.py:399
Methodget_page_text
(self, context: BetaToolsetCallContext, input: BetaBrowserGetPageTextInput)
src/anthropic/lib/tools/_toolsets/_browser.py:649
Methodget_page_text
(self, context: BetaToolsetCallContext, input: Any)
tests/lib/tools/toolsets/test_pipeline.py:1022
Methodget_page_text
(self, context: BetaToolsetCallContext, input: Any)
tests/lib/tools/toolsets/test_pipeline.py:1047
Methodget_page_text
(self, context: BetaToolsetCallContext, input: Any)
tests/lib/tools/toolsets/test_pipeline.py:1099
Methodget_page_text
(self, context: BetaToolsetCallContext, input: Any)
tests/lib/tools/toolsets/test_pipeline.py:1216
Methodget_page_text
(self, context: BetaToolsetCallContext, input: BetaBrowserGetPageTextInput)
tests/lib/tools/toolsets/_fakes.py:204
Methodget_page_text
(self, context: BetaToolsetCallContext, input: BetaBrowserGetPageTextInput)
tests/lib/tools/toolsets/_fakes.py:278
Methodget_page_text
(self, context: BetaToolsetCallContext, input: BetaBrowserGetPageTextInput)
tests/lib/tools/toolsets/test_interface.py:269
Methodget_page_text
(self, context: BetaToolsetCallContext, input: BetaBrowserGetPageTextInput)
tests/lib/tools/toolsets/test_interface.py:286
Functionget_required_header
(headers: HeadersLike, header: str)
src/anthropic/_utils/_utils.py:407
Functionget_time
Lookup the current time in a timezone.
tests/lib/tools/test_runners.py:1089
Functionget_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
Functionget_weather
Get the weather. Args: city: city name
tests/lib/test_bedrock.py:560
Functionget_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
Functionget_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
Methodget_weather
Get the weather. Args: city: city name
tests/lib/test_vertex.py:226
Methodget_weather
Get the weather. Args: city: city name
tests/lib/test_vertex.py:423
Methodget_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
Methodget_weather
Get the weather for a specific location.
tests/lib/tools/test_functions.py:21
Functionget_weather_async
(city: str)
tests/lib/tools/test_runners.py:1927
Methodget_weather_detailed
(location: str, unit: str = "celsius", include_forecast: bool = False)
tests/lib/tools/test_functions.py:332
Methodgive_up
(request: APIRequest, call_next: CallNext)
tests/test_middleware.py:852
Methodgive_up
(request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:1786
Functionglob
List files matching a glob pattern, newest first.
src/anthropic/lib/tools/agent_toolset.py:807
Methodgoogle_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
Functiongrep
Search file contents for a regular expression.
src/anthropic/lib/tools/agent_toolset.py:842
Methodhandle
(self, request: APIRequest, call_next: CallNext)
src/anthropic/_middleware.py:54
Methodhandle
(req: APIRequest)
src/anthropic/_base_client.py:1254
Methodhandle
(req: APIRequest)
src/anthropic/_base_client.py:1985
Methodhandle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:97
Methodhandle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:125
Methodhandle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:143
Methodhandle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:167
Methodhandle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:187
Methodhandle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:206
Methodhandle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:244
Methodhandle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:261
Methodhandle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:280
Methodhandle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:318
Methodhandle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:342
Methodhandle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:2086
Methodhandle_async
(self, request: APIRequest, call_next: AsyncCallNext)
src/anthropic/_middleware.py:57
Methodhandle_async
(self, request: APIRequest, call_next: AsyncCallNext)
src/anthropic/lib/middleware/_fallbacks.py:262
Methodhandle_async
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:106
Methodhandle_async
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:129
Methodhandle_async
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:150
Methodhandle_async
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:174
Methodhandle_async
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:192
Methodhandle_async
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:217
Methodhandle_async
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:250
Methodhandle_async
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:267
Methodhandle_async
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:286
Methodhandle_async
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:326
Methodhandle_async
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:352
Methodhandle_async_request
( self, request: httpx.Request, )
src/anthropic/_vendor/httpx_aiohttp/transport.py:149
Methodhandle_async_request
( self, request: httpx2.Request, )
tests/test_client.py:81
Methodhandle_request
( self, request: httpx2.Request, )
tests/test_client.py:72
Methodhandler
(request: httpx2.Request)
tests/test_header_case_sensitivity.py:81
Methodhandler
(request: httpx2.Request)
tests/lib/test_credentials.py:2675
Functionhanging_finish
(_self: memories_mod.SessionMemoryStores)
tests/lib/tools/memory_sync/test_e2e_memory.py:380
Functionhanging_flush
(_self: memories_mod.SessionMemoryStores)
tests/lib/tools/memory_sync/test_e2e_memory.py:342
← previousnext →2,801–2,900 of 9,455, ranked by callers