Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
1,183 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
1,183
◇
Types & classes
417
↳
Endpoints
7
Function
test_top_level_alias
(use_async: bool)
tests/test_transform.py:46
Function
test_tuple_input
()
tests/test_files.py:18
Function
test_type_alias_type
()
tests/test_models.py:834
Function
test_type_compat
()
tests/test_models.py:630
Function
test_union_datetime
(use_async: bool)
tests/test_transform.py:230
Function
test_union_of_dict
()
tests/test_models.py:405
Function
test_union_of_list
(use_async: bool)
tests/test_transform.py:121
Function
test_union_of_lists
()
tests/test_models.py:329
Function
test_union_of_typeddict
(use_async: bool)
tests/test_transform.py:99
Method
test_union_response_different_types
Union of objects with the same field name using a different type
tests/test_client.py:514
Method
test_union_response_different_types
Union of objects with the same field name using a different type
tests/test_client.py:1379
Function
test_unknown_array_format
()
tests/test_qs.py:76
Function
test_unknown_fields
()
tests/test_models.py:148
Method
test_validate_headers
(self)
tests/test_client.py:338
Method
test_validate_headers
(self)
tests/test_client.py:1203
Method
test_with_options
(self)
tests/lib/test_vertex.py:61
Method
test_with_options
(self)
tests/lib/test_vertex.py:165
Method
text
Read and decode the response content into a string.
src/anthropic/_response.py:367
Method
text
Read and decode the response content into a string.
src/anthropic/_response.py:474
Method
text
Return the decoded response content. NOTE: this will be turned into a method in the next major version.
src/anthropic/_legacy_response.py:179
Method
text
(self)
src/anthropic/_legacy_response.py:420
Function
to_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
Function
to_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
Function
to_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
Function
to_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
Method
url
Returns the URL for which the request was made.
src/anthropic/_response.py:96
Method
url
(self)
src/anthropic/_legacy_response.py:162
Method
user_agent
(self)
src/anthropic/_base_client.py:635
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Method
with_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
Function
wrapped
(*args: P.args, **kwargs: P.kwargs)
src/anthropic/_response.py:693
Function
wrapped
(*args: P.args, **kwargs: P.kwargs)
src/anthropic/_legacy_response.py:381
Function
wrapper
(*args: T_ParamSpec.args, **kwargs: T_ParamSpec.kwargs)
src/anthropic/_utils/_sync.py:68
Function
wrapper
(*args: object, **kwargs: object)
src/anthropic/_utils/_utils.py:242
Method
write_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
Method
write_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
Method
write_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
← previous
1,101–1,183 of 1,183, ranked by callers