MCPcopy Create free account

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

Functions1,183 in github.com/anthropics/anthropic-sdk-python

Functiontest_top_level_alias
(use_async: bool)
tests/test_transform.py:46
Functiontest_tuple_input
()
tests/test_files.py:18
Functiontest_type_alias_type
()
tests/test_models.py:834
Functiontest_type_compat
()
tests/test_models.py:630
Functiontest_union_datetime
(use_async: bool)
tests/test_transform.py:230
Functiontest_union_of_dict
()
tests/test_models.py:405
Functiontest_union_of_list
(use_async: bool)
tests/test_transform.py:121
Functiontest_union_of_lists
()
tests/test_models.py:329
Functiontest_union_of_typeddict
(use_async: bool)
tests/test_transform.py:99
Methodtest_union_response_different_types
Union of objects with the same field name using a different type
tests/test_client.py:514
Methodtest_union_response_different_types
Union of objects with the same field name using a different type
tests/test_client.py:1379
Functiontest_unknown_array_format
()
tests/test_qs.py:76
Functiontest_unknown_fields
()
tests/test_models.py:148
Methodtest_validate_headers
(self)
tests/test_client.py:338
Methodtest_validate_headers
(self)
tests/test_client.py:1203
Methodtest_with_options
(self)
tests/lib/test_vertex.py:61
Methodtest_with_options
(self)
tests/lib/test_vertex.py:165
Methodtext
Read and decode the response content into a string.
src/anthropic/_response.py:367
Methodtext
Read and decode the response content into a string.
src/anthropic/_response.py:474
Methodtext
Return the decoded response content. NOTE: this will be turned into a method in the next major version.
src/anthropic/_legacy_response.py:179
Methodtext
(self)
src/anthropic/_legacy_response.py:420
Functionto_custom_raw_response_wrapper
Higher order function that takes one of our bound API methods and an `APIResponse` class and wraps the method to support returning the given respo
src/anthropic/_response.py:811
Functionto_custom_streamed_response_wrapper
Higher order function that takes one of our bound API methods and an `APIResponse` class and wraps the method to support streaming and returning t
src/anthropic/_response.py:727
Functionto_raw_response_wrapper
Higher order function that takes one of our bound API methods and wraps it to support returning the raw `APIResponse` object directly.
src/anthropic/_response.py:777
Functionto_raw_response_wrapper
Higher order function that takes one of our bound API methods and wraps it to support returning the raw `APIResponse` object directly.
src/anthropic/_legacy_response.py:375
Methodurl
Returns the URL for which the request was made.
src/anthropic/_response.py:96
Methodurl
(self)
src/anthropic/_legacy_response.py:162
Methoduser_agent
(self)
src/anthropic/_base_client.py:635
Methodwith_raw_response
This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content.
src/anthropic/resources/completions.py:34
Methodwith_raw_response
This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content.
src/anthropic/resources/completions.py:413
Methodwith_raw_response
This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content.
src/anthropic/resources/models.py:23
Methodwith_raw_response
This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content.
src/anthropic/resources/models.py:140
Methodwith_raw_response
This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content.
src/anthropic/resources/beta/beta.py:37
Methodwith_raw_response
This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content.
src/anthropic/resources/beta/beta.py:66
Methodwith_raw_response
This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content.
src/anthropic/resources/beta/models.py:23
Methodwith_raw_response
This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content.
src/anthropic/resources/beta/models.py:140
Methodwith_raw_response
This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content.
src/anthropic/resources/beta/messages/batches.py:36
Methodwith_raw_response
This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content.
src/anthropic/resources/beta/messages/batches.py:405
Methodwith_raw_response
This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content.
src/anthropic/resources/beta/messages/messages.py:59
Methodwith_raw_response
This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content.
src/anthropic/resources/beta/messages/messages.py:1235
Methodwith_raw_response
This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content.
src/anthropic/resources/messages/batches.py:32
Methodwith_raw_response
This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content.
src/anthropic/resources/messages/batches.py:317
Methodwith_raw_response
This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content.
src/anthropic/resources/messages/messages.py:67
Methodwith_raw_response
This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content.
src/anthropic/resources/messages/messages.py:1217
Methodwith_raw_response
This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content.
src/anthropic/lib/bedrock/_beta.py:25
Methodwith_raw_response
This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content.
src/anthropic/lib/bedrock/_beta.py:50
Methodwith_raw_response
This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content.
src/anthropic/lib/bedrock/_beta_messages.py:18
Methodwith_raw_response
This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content.
src/anthropic/lib/bedrock/_beta_messages.py:41
Methodwith_raw_response
This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content.
src/anthropic/lib/vertex/_beta.py:25
Methodwith_raw_response
This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content.
src/anthropic/lib/vertex/_beta.py:50
Methodwith_raw_response
This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content.
src/anthropic/lib/vertex/_beta_messages.py:18
Methodwith_raw_response
This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content.
src/anthropic/lib/vertex/_beta_messages.py:41
Methodwith_streaming_response
An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com
src/anthropic/resources/completions.py:44
Methodwith_streaming_response
An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com
src/anthropic/resources/completions.py:423
Methodwith_streaming_response
An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com
src/anthropic/resources/models.py:33
Methodwith_streaming_response
An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com
src/anthropic/resources/models.py:150
Methodwith_streaming_response
An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com
src/anthropic/resources/beta/beta.py:47
Methodwith_streaming_response
An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com
src/anthropic/resources/beta/beta.py:76
Methodwith_streaming_response
An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com
src/anthropic/resources/beta/models.py:33
Methodwith_streaming_response
An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com
src/anthropic/resources/beta/models.py:150
Methodwith_streaming_response
An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com
src/anthropic/resources/beta/messages/batches.py:46
Methodwith_streaming_response
An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com
src/anthropic/resources/beta/messages/batches.py:415
Methodwith_streaming_response
An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com
src/anthropic/resources/beta/messages/messages.py:69
Methodwith_streaming_response
An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com
src/anthropic/resources/beta/messages/messages.py:1245
Methodwith_streaming_response
An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com
src/anthropic/resources/messages/batches.py:42
Methodwith_streaming_response
An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com
src/anthropic/resources/messages/batches.py:327
Methodwith_streaming_response
An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com
src/anthropic/resources/messages/messages.py:77
Methodwith_streaming_response
An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com
src/anthropic/resources/messages/messages.py:1227
Methodwith_streaming_response
An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com
src/anthropic/lib/bedrock/_beta.py:35
Methodwith_streaming_response
An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com
src/anthropic/lib/bedrock/_beta.py:60
Methodwith_streaming_response
An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com
src/anthropic/lib/bedrock/_beta_messages.py:28
Methodwith_streaming_response
An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com
src/anthropic/lib/bedrock/_beta_messages.py:51
Methodwith_streaming_response
An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com
src/anthropic/lib/vertex/_beta.py:35
Methodwith_streaming_response
An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com
src/anthropic/lib/vertex/_beta.py:60
Methodwith_streaming_response
An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com
src/anthropic/lib/vertex/_beta_messages.py:28
Methodwith_streaming_response
An alternative to `.with_raw_response` that doesn't eagerly read the response body. For more information, see https://www.github.com
src/anthropic/lib/vertex/_beta_messages.py:51
Functionwrapped
(*args: P.args, **kwargs: P.kwargs)
src/anthropic/_response.py:693
Functionwrapped
(*args: P.args, **kwargs: P.kwargs)
src/anthropic/_legacy_response.py:381
Functionwrapper
(*args: T_ParamSpec.args, **kwargs: T_ParamSpec.kwargs)
src/anthropic/_utils/_sync.py:68
Functionwrapper
(*args: object, **kwargs: object)
src/anthropic/_utils/_utils.py:242
Methodwrite_to_file
Write the output to the given file. Accepts a filename or any path-like object, e.g. pathlib.Path Note: if you want to stream the da
src/anthropic/_response.py:522
Methodwrite_to_file
Write the output to the given file. Accepts a filename or any path-like object, e.g. pathlib.Path Note: if you want to stream the da
src/anthropic/_response.py:547
Methodwrite_to_file
Write the output to the given file. Accepts a filename or any path-like object, e.g. pathlib.Path Note: if you want to stream the da
src/anthropic/_legacy_response.py:449
← previous1,101–1,183 of 1,183, ranked by callers