MCPcopy Create free account

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

Functions14,068 in github.com/anthropics/anthropic-sdk-python

Methodfiles
(self)
src/anthropic/resources/beta/beta.py:579
Functionfiles_from_dir
(directory: str | os.PathLike[str])
src/anthropic/lib/_files.py:11
Methodfinal_attempt
The response of the call's final attempt, which the error of a failed call carries.
src/anthropic/_tracing.py:301
Methodfind
(self, context: BetaToolsetCallContext, input: BetaBrowserFindInput)
src/anthropic/lib/tools/_toolsets/_browser.py:646
Methodfinish
(self, exit_code: int, *, stderr_end: str, create_file: Callable[[], IO[bytes]])
src/anthropic/lib/tools/agent_toolset.py:762
Methodfinish
(self, end: str = "")
src/anthropic/lib/tools/agent_toolset.py:815
Methodfinished
(self)
tests/test_open_telemetry.py:148
Methodfinished
(self, session: FakeSession)
tests/lib/tools/test_session_runner_properties.py:420
Methodfinished
(self)
tests/lib/tools/test_open_telemetry.py:133
Methodfit
(parts: list[Part], limit: int)
tests/test_open_telemetry.py:6344
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
Functionfn
(_input: object)
tests/lib/tools/test_session_runner.py:114
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:212
Methodfork
Return a new, independent thread with a copy of this one's history, request fields, tools and request options, and no `previous_message_id`. S
src/anthropic/lib/threads/_beta_threads.py:127
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
Methodforward
(next_req: APIRequest)
src/anthropic/_base_client.py:1477
Methodforward
(next_req: APIRequest)
src/anthropic/_base_client.py:2282
Functionfull_disk
(_api: FakeApi)
tests/lib/tools/memory_sync/test_e2e_memory.py:348
Methodfunction
(*_args: object, **_kwargs: object)
tests/test_open_telemetry.py:8174
Functiongate_uploads
(context: BetaConfirmContext)
tests/lib/tools/toolsets/test_confirm.py:88
Functiongated
(memory_id: str, **kwargs: Any)
tests/lib/tools/memory_sync/test_two_pass.py:94
Functiongc_disabled
()
tests/lib/streaming/test_messages.py:267
Methodgenerate_span_id
(self)
tests/test_open_telemetry.py:4117
Methodget
( self, path: str, *, cast_to: Type[ResponseT], options: RequestOption
src/anthropic/_base_client.py:2487
Methodget_api_list
( self, path: str, *, model: Type[_T], page: Type[AsyncPageT],
src/anthropic/_base_client.py:2649
Functionget_auth_headers_recorder
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_bedrock_mantle.py:73
Methodget_description
(self)
tests/test_open_telemetry.py:206
Methodget_description
(self)
tests/test_open_telemetry.py:7913
Methodget_description
(self)
tests/lib/tools/test_open_telemetry.py:1029
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:113
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:287
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:275
Methodget_next_page
(self: AsyncPageT)
src/anthropic/_base_client.py:406
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
Methodget_platform
()
tests/test_open_telemetry.py:2411
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:1067
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:79
Functionget_weather
Get the weather. Args: city: city name
tests/lib/test_bedrock.py:790
Functionget_weather
The weather in a city. Args: city: The city.
tests/lib/tools/test_open_telemetry.py:168
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:634
Methodget_weather
Get the weather. Args: city: city name
tests/lib/test_vertex.py:1169
Methodget_weather
(city: str)
tests/lib/tools/test_open_telemetry.py:469
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:188
Methodget_weather
Get the weather for a specific location.
tests/lib/tools/test_functions.py:21
Methodget_weather
(location: str)
tests/lib/threads/test_tool_runner_threading.py:356
Methodget_weather
(location: str)
tests/lib/threads/test_async_beta_threads.py:1332
Functionget_weather_async
(city: str)
tests/lib/tools/test_runners.py:1935
Methodget_weather_detailed
(location: str, unit: str = "celsius", include_forecast: bool = False)
tests/lib/tools/test_functions.py:332
Methodgetaddrinfo
(*_args: object, **_kwargs: object)
tests/test_client.py:1794
Methodgetaddrinfo
(*_args: object, **_kwargs: object)
tests/test_client.py:3605
Functiongetitimer
(_which: int)
tests/lib/tools/test_agent_toolset.py:908
Methodgive_up
(request: APIRequest, call_next: CallNext)
tests/test_middleware.py:996
Methodgive_up
(request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:2043
Functionglob
List files matching a glob pattern, newest first.
src/anthropic/lib/tools/agent_toolset.py:1111
Methodgoogle
(self)
src/anthropic/resources/beta/user_profiles/providers/providers.py:19
Methodgoogle
(self)
src/anthropic/resources/beta/user_profiles/providers/providers.py:44
Methodgoogle
(self)
src/anthropic/resources/beta/user_profiles/providers/providers.py:72
Methodgoogle
(self)
src/anthropic/resources/beta/user_profiles/providers/providers.py:81
Methodgoogle
(self)
src/anthropic/resources/beta/user_profiles/providers/providers.py:90
Methodgoogle
(self)
src/anthropic/resources/beta/user_profiles/providers/providers.py:99
Methodgoogle
(self)
src/anthropic/resources/beta/organization/providers/providers.py:19
Methodgoogle
(self)
src/anthropic/resources/beta/organization/providers/providers.py:44
Methodgoogle
(self)
src/anthropic/resources/beta/organization/providers/providers.py:72
Methodgoogle
(self)
src/anthropic/resources/beta/organization/providers/providers.py:81
Methodgoogle
(self)
src/anthropic/resources/beta/organization/providers/providers.py:90
Methodgoogle
(self)
src/anthropic/resources/beta/organization/providers/providers.py:99
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:147
Functiongrep
Search file contents for a regular expression.
src/anthropic/lib/tools/agent_toolset.py:1151
Functionhandle
(request: httpx2.Request)
tests/lib/environments/_schedules.py:228
Methodhandle
(self, request: APIRequest, call_next: CallNext)
src/anthropic/_middleware.py:54
Methodhandle
(req: APIRequest)
src/anthropic/_base_client.py:1476
Methodhandle
(req: APIRequest)
src/anthropic/_base_client.py:2281
Methodhandle
(self, request: APIRequest, call_next: CallNext)
src/anthropic/lib/_retry.py:80
Methodhandle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:99
Methodhandle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:127
Methodhandle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:142
Methodhandle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:152
Methodhandle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:170
Methodhandle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:194
Methodhandle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:214
Methodhandle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:233
Methodhandle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:271
Methodhandle
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:288
← previousnext →4,101–4,200 of 14,068, ranked by callers