MCPcopy Create free account

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

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

Methodlist
List available models. The Models API response can be used to determine which models are available for use in the API. More
src/anthropic/resources/models.py:196
Methodlist
List available models. The Models API response can be used to determine which models are available for use in the API. More
src/anthropic/resources/beta/models.py:79
Methodlist
List available models. The Models API response can be used to determine which models are available for use in the API. More
src/anthropic/resources/beta/models.py:196
Methodlist
List all Message Batches within a Workspace. Most recently created batches are returned first. Args: after_id: ID
src/anthropic/resources/beta/messages/batches.py:159
Methodlist
List all Message Batches within a Workspace. Most recently created batches are returned first. Args: after_id: ID
src/anthropic/resources/beta/messages/batches.py:528
Methodlist
List all Message Batches within a Workspace. Most recently created batches are returned first. Args: after_id: ID
src/anthropic/resources/messages/batches.py:127
Methodlist
List all Message Batches within a Workspace. Most recently created batches are returned first. Args: after_id: ID
src/anthropic/resources/messages/batches.py:412
Functionmaybe_coerce_boolean
(val: str | None)
src/anthropic/_utils/_utils.py:333
Functionmaybe_coerce_float
(val: str | None)
src/anthropic/_utils/_utils.py:327
Functionmaybe_coerce_integer
(val: str | None)
src/anthropic/_utils/_utils.py:321
Methodmessages
(self)
src/anthropic/resources/beta/beta.py:33
Methodmessages
(self)
src/anthropic/resources/beta/beta.py:62
Methodmessages
(self)
src/anthropic/resources/beta/beta.py:94
Methodmessages
(self)
src/anthropic/resources/beta/beta.py:107
Methodmessages
(self)
src/anthropic/resources/beta/beta.py:120
Methodmessages
(self)
src/anthropic/resources/beta/beta.py:133
Methodmessages
(self)
src/anthropic/lib/bedrock/_beta.py:21
Methodmessages
(self)
src/anthropic/lib/bedrock/_beta.py:46
Methodmessages
(self)
src/anthropic/lib/bedrock/_beta.py:74
Methodmessages
(self)
src/anthropic/lib/bedrock/_beta.py:83
Methodmessages
(self)
src/anthropic/lib/bedrock/_beta.py:92
Methodmessages
(self)
src/anthropic/lib/bedrock/_beta.py:101
Methodmessages
(self)
src/anthropic/lib/vertex/_beta.py:21
Methodmessages
(self)
src/anthropic/lib/vertex/_beta.py:46
Methodmessages
(self)
src/anthropic/lib/vertex/_beta.py:74
Methodmessages
(self)
src/anthropic/lib/vertex/_beta.py:83
Methodmessages
(self)
src/anthropic/lib/vertex/_beta.py:92
Methodmessages
(self)
src/anthropic/lib/vertex/_beta.py:101
Methodmethod
(self)
src/anthropic/_response.py:101
Methodmethod
(self)
src/anthropic/_legacy_response.py:166
Methodmodel_fields_set
(self)
src/anthropic/_models.py:92
Methodmodel_id
(self)
tests/test_models.py:476
Functionmodel_parse
(model: type[_ModelT], data: Any)
src/anthropic/_compat.py:161
Methodmodels
(self)
src/anthropic/resources/beta/beta.py:29
Methodmodels
(self)
src/anthropic/resources/beta/beta.py:58
Methodmodels
(self)
src/anthropic/resources/beta/beta.py:90
Methodmodels
(self)
src/anthropic/resources/beta/beta.py:103
Methodmodels
(self)
src/anthropic/resources/beta/beta.py:116
Methodmodels
(self)
src/anthropic/resources/beta/beta.py:129
Methodnext_page_info
(self)
src/anthropic/pagination.py:27
Methodnext_page_info
(self)
src/anthropic/pagination.py:56
Methodpatch
( self, path: str, *, cast_to: Type[ResponseT], body: Body | None = No
src/anthropic/_base_client.py:1284
Methodpatch
( self, path: str, *, cast_to: Type[ResponseT], body: Body | None = No
src/anthropic/_base_client.py:1850
Methodpost
( self, path: str, *, cast_to: Type[ResponseT], body: Body | None = No
src/anthropic/_base_client.py:1797
Methodproject_id
(self)
src/anthropic/lib/vertex/_client.py:43
Methodput
( self, path: str, *, cast_to: Type[ResponseT], body: Body | None = No
src/anthropic/_base_client.py:1295
Methodput
( self, path: str, *, cast_to: Type[ResponseT], body: Body | None = No
src/anthropic/_base_client.py:1861
Functionpytest_collection_modifyitems
(items: list[pytest.Function])
tests/conftest.py:22
Methodqs
(self)
src/anthropic/_base_client.py:595
Methodqs
(self)
src/anthropic/_client.py:132
Methodqs
(self)
src/anthropic/_client.py:352
Methodread
(self)
src/anthropic/_legacy_response.py:434
Methodregion
(self)
src/anthropic/lib/vertex/_client.py:39
Functionremoveprefix
Remove a prefix from a string. Backport of `str.removeprefix` for Python < 3.9
src/anthropic/_utils/_utils.py:339
Functionremovesuffix
Remove a suffix from a string. Backport of `str.removesuffix` for Python < 3.9
src/anthropic/_utils/_utils.py:349
Methodrequest_id
(self)
src/anthropic/_response.py:300
Methodrequest_id
(self)
src/anthropic/_response.py:409
Methodrequest_id
(self)
src/anthropic/_legacy_response.py:93
Methodrequest_id
(self)
src/anthropic/lib/streaming/_beta_messages.py:46
Methodrequest_id
(self)
src/anthropic/lib/streaming/_beta_messages.py:183
Methodrequest_id
(self)
src/anthropic/lib/streaming/_messages.py:46
Methodrequest_id
(self)
src/anthropic/lib/streaming/_messages.py:183
Functionrequired_args
Decorator to enforce a given set of arguments or variants of arguments are passed to the decorated function. Useful for enforcing runtime validat
src/anthropic/_utils/_utils.py:207
Methodresponse
(self)
src/anthropic/lib/streaming/_beta_messages.py:42
Methodresponse
(self)
src/anthropic/lib/streaming/_beta_messages.py:179
Methodresponse
(self)
src/anthropic/lib/streaming/_messages.py:42
Methodresponse
(self)
src/anthropic/lib/streaming/_messages.py:179
Methodresults
Streams the results of a Message Batch as a `.jsonl` file. Each line in the file is a JSON object containing the result of a single
src/anthropic/resources/beta/messages/batches.py:340
Methodresults
Streams the results of a Message Batch as a `.jsonl` file. Each line in the file is a JSON object containing the result of a single
src/anthropic/resources/beta/messages/batches.py:709
Methodresults
Streams the results of a Message Batch as a `.jsonl` file. Each line in the file is a JSON object containing the result of a single
src/anthropic/resources/messages/batches.py:551
Methodretrieve
Get a specific model. The Models API response can be used to determine information about a specific model or resolve a model
src/anthropic/resources/models.py:158
Methodretrieve
Get a specific model. The Models API response can be used to determine information about a specific model or resolve a model
src/anthropic/resources/beta/models.py:41
Methodretrieve
Get a specific model. The Models API response can be used to determine information about a specific model or resolve a model
src/anthropic/resources/beta/models.py:158
Methodretry
(self)
src/anthropic/_streaming.py:284
Methodretry_handler
(_request: httpx.Request)
tests/test_client.py:800
Methodretry_handler
(_request: httpx.Request)
tests/test_client.py:1681
Functionsetup_logging
()
src/anthropic/_utils/_logs.py:16
Methodstatus_code
(self)
src/anthropic/_response.py:92
Methodstatus_code
(self)
src/anthropic/_legacy_response.py:158
Methodstream
Create a Message stream
src/anthropic/resources/beta/messages/messages.py:937
Methodstream
( self, *, max_tokens: int, messages: Iterable[BetaMessageParam], mode
src/anthropic/resources/beta/messages/messages.py:2113
Methodstream
Create a Message stream
src/anthropic/resources/messages/messages.py:2081
Methodstream_to_file
Streams the output to the given file. Accepts a filename or any path-like object, e.g. pathlib.Path
src/anthropic/_response.py:566
Methodstream_to_file
Streams the output to the given file. Accepts a filename or any path-like object, e.g. pathlib.Path
src/anthropic/_response.py:582
Methodstream_to_file
( self, file: str | os.PathLike[str], *, chunk_size: int | None = None, )
src/anthropic/_legacy_response.py:468
Methodtest_absolute_request_url
(self, client: Anthropic)
tests/test_client.py:628
Methodtest_absolute_request_url
(self, client: AsyncAnthropic)
tests/test_client.py:1501
Functiontest_aliases
()
tests/test_models.py:171
Functiontest_annotated_types
()
tests/test_models.py:642
Functiontest_application_inference_profile
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:97
Functiontest_array_brackets
(method: str)
tests/test_qs.py:65
Functiontest_array_comma
(method: str)
tests/test_qs.py:46
Functiontest_array_repeat
()
tests/test_qs.py:57
Functiontest_async_pathlib_includes_file_name
()
tests/test_files.py:25
Functiontest_async_response_basemodel_request_id
(client: Anthropic)
tests/test_response.py:180
Functiontest_async_response_parse_annotated_type
(async_client: AsyncAnthropic)
tests/test_response.py:217
Functiontest_async_response_parse_bool
(client: AsyncAnthropic, content: str, expected: bool)
tests/test_response.py:270
Functiontest_async_response_parse_custom_model
(async_client: AsyncAnthropic)
tests/test_response.py:144
Functiontest_async_response_parse_custom_stream
(async_client: AsyncAnthropic)
tests/test_response.py:109
Functiontest_async_response_parse_expect_model_union_non_json_content
(async_client: AsyncAnthropic)
tests/test_response.py:306
← previousnext →601–700 of 1,183, ranked by callers