MCPcopy Create free account

hub / github.com/anthropics/anthropic-sdk-python / types & classes

Types & classes417 in github.com/anthropics/anthropic-sdk-python

↓ 51 callersClassPropertyInfo
Metadata class to be used in Annotated types to provide information about a given type. For example: class MyParams(TypedDict): acco
src/anthropic/_utils/_transform.py:40
↓ 29 callersClassFinalRequestOptions
src/anthropic/_models.py:766
↓ 24 callersClassAnthropic
src/anthropic/_client.py:51
↓ 22 callersClassAsyncAnthropic
src/anthropic/_client.py:271
↓ 9 callersClassLegacyAPIResponse
This is a legacy class as it will be replaced by `APIResponse` and `AsyncAPIResponse` in the `_response.py` file in the next major release.
src/anthropic/_legacy_response.py:47
↓ 8 callersClassAPIResponse
src/anthropic/_response.py:298
↓ 8 callersClassAsyncAPIResponse
src/anthropic/_response.py:407
↓ 7 callersClassQuerystring
src/anthropic/_qs.py:23
↓ 6 callersClassAnthropicError
src/anthropic/_exceptions.py:21
↓ 5 callersClassModel
tests/test_models.py:161
↓ 4 callersClassAPIStatusError
Raised when an API response has a status code of 4xx or 5xx.
src/anthropic/_exceptions.py:57
↓ 4 callersClassAWSEventStreamDecoder
src/anthropic/lib/bedrock/_stream_decoder.py:24
↓ 4 callersClassOmit
In certain situations you need to be able to represent a case where a default value has to be explicitly removed and `None` is not an appropriate
src/anthropic/_types.py:136
↓ 3 callersClassAPIResponseValidationError
src/anthropic/_exceptions.py:47
↓ 3 callersClassAnthropicVertex
src/anthropic/lib/vertex/_client.py:84
↓ 3 callersClassAsyncAnthropicVertex
src/anthropic/lib/vertex/_client.py:226
↓ 3 callersClassServerSentEvent
src/anthropic/_streaming.py:258
↓ 2 callersClassAPIConnectionError
src/anthropic/_exceptions.py:71
↓ 2 callersClassAPITimeoutError
src/anthropic/_exceptions.py:76
↓ 2 callersClassAnthropicBedrock
src/anthropic/lib/bedrock/_client.py:102
↓ 2 callersClassAsyncBatchesWithRawResponse
src/anthropic/resources/beta/messages/batches.py:793
↓ 2 callersClassAsyncBatchesWithRawResponse
src/anthropic/resources/messages/batches.py:621
↓ 2 callersClassAsyncBatchesWithStreamingResponse
src/anthropic/resources/beta/messages/batches.py:835
↓ 2 callersClassAsyncBatchesWithStreamingResponse
src/anthropic/resources/messages/batches.py:663
↓ 2 callersClassAsyncMessages
src/anthropic/lib/bedrock/_beta_messages.py:37
↓ 2 callersClassAsyncMessages
src/anthropic/lib/vertex/_beta_messages.py:37
↓ 2 callersClassAsyncMessagesWithRawResponse
src/anthropic/resources/beta/messages/messages.py:2419
↓ 2 callersClassAsyncMessagesWithRawResponse
src/anthropic/lib/bedrock/_beta_messages.py:69
↓ 2 callersClassAsyncMessagesWithRawResponse
src/anthropic/lib/vertex/_beta_messages.py:69
↓ 2 callersClassAsyncMessagesWithStreamingResponse
src/anthropic/resources/beta/messages/messages.py:2451
↓ 2 callersClassAsyncMessagesWithStreamingResponse
src/anthropic/lib/bedrock/_beta_messages.py:87
↓ 2 callersClassAsyncMessagesWithStreamingResponse
src/anthropic/lib/vertex/_beta_messages.py:87
↓ 2 callersClassAsyncModelsWithRawResponse
src/anthropic/resources/beta/models.py:267
↓ 2 callersClassAsyncModelsWithStreamingResponse
src/anthropic/resources/beta/models.py:291
↓ 2 callersClassAsyncStream
Provides the core interface to iterate over an asynchronous stream response.
src/anthropic/_streaming.py:161
↓ 2 callersClassBatchesWithRawResponse
src/anthropic/resources/beta/messages/batches.py:772
↓ 2 callersClassBatchesWithRawResponse
src/anthropic/resources/messages/batches.py:600
↓ 2 callersClassBatchesWithStreamingResponse
src/anthropic/resources/beta/messages/batches.py:814
↓ 2 callersClassBatchesWithStreamingResponse
src/anthropic/resources/messages/batches.py:642
↓ 2 callersClassMessages
src/anthropic/lib/bedrock/_beta_messages.py:14
↓ 2 callersClassMessages
src/anthropic/lib/vertex/_beta_messages.py:14
↓ 2 callersClassMessagesWithRawResponse
src/anthropic/resources/beta/messages/messages.py:2403
↓ 2 callersClassMessagesWithRawResponse
src/anthropic/lib/bedrock/_beta_messages.py:60
↓ 2 callersClassMessagesWithRawResponse
src/anthropic/lib/vertex/_beta_messages.py:60
↓ 2 callersClassMessagesWithStreamingResponse
src/anthropic/resources/beta/messages/messages.py:2435
↓ 2 callersClassMessagesWithStreamingResponse
src/anthropic/lib/bedrock/_beta_messages.py:78
↓ 2 callersClassMessagesWithStreamingResponse
src/anthropic/lib/vertex/_beta_messages.py:78
↓ 2 callersClassModelsWithRawResponse
src/anthropic/resources/beta/models.py:255
↓ 2 callersClassModelsWithStreamingResponse
src/anthropic/resources/beta/models.py:279
↓ 2 callersClassNotGiven
A sentinel singleton class used to distinguish omitted keyword arguments from those passed in with the value None (which may have different b
src/anthropic/_types.py:107
↓ 2 callersClassPageInfo
Stores the necessary information to build the request to retrieve the next page. Either `url` or `params` must be set.
src/anthropic/_base_client.py:115
↓ 2 callersClassRequest
src/anthropic/types/messages/batch_create_params.py:21
↓ 2 callersClassStream
Provides the core interface to iterate over a synchronous stream response.
src/anthropic/_streaming.py:44
↓ 2 callersClassStreamAlreadyConsumed
Attempted to read or stream content, but the content has already been streamed. This can happen if you use a method like `.iter_lines()`
src/anthropic/_response.py:605
↓ 1 callersClassAnthropicWithRawResponse
src/anthropic/_client.py:491
↓ 1 callersClassAnthropicWithStreamedResponse
src/anthropic/_client.py:507
↓ 1 callersClassAsyncAnthropicBedrock
src/anthropic/lib/bedrock/_client.py:246
↓ 1 callersClassAsyncAnthropicWithRawResponse
src/anthropic/_client.py:499
↓ 1 callersClassAsyncAnthropicWithStreamedResponse
src/anthropic/_client.py:515
↓ 1 callersClassAsyncBatches
src/anthropic/resources/beta/messages/batches.py:403
↓ 1 callersClassAsyncBatches
src/anthropic/resources/messages/batches.py:315
↓ 1 callersClassAsyncBeta
src/anthropic/lib/bedrock/_beta.py:44
↓ 1 callersClassAsyncBeta
src/anthropic/lib/vertex/_beta.py:44
↓ 1 callersClassAsyncBetaWithRawResponse
src/anthropic/resources/beta/beta.py:98
↓ 1 callersClassAsyncBetaWithRawResponse
src/anthropic/lib/bedrock/_beta.py:78
↓ 1 callersClassAsyncBetaWithRawResponse
src/anthropic/lib/vertex/_beta.py:78
↓ 1 callersClassAsyncBetaWithStreamingResponse
src/anthropic/resources/beta/beta.py:124
↓ 1 callersClassAsyncBetaWithStreamingResponse
src/anthropic/lib/bedrock/_beta.py:96
↓ 1 callersClassAsyncBetaWithStreamingResponse
src/anthropic/lib/vertex/_beta.py:96
↓ 1 callersClassAsyncCompletions
src/anthropic/resources/completions.py:411
↓ 1 callersClassAsyncCompletionsWithRawResponse
src/anthropic/resources/completions.py:799
↓ 1 callersClassAsyncCompletionsWithStreamingResponse
src/anthropic/resources/completions.py:817
↓ 1 callersClassAsyncHttpxClientWrapper
src/anthropic/_base_client.py:1354
↓ 1 callersClassAsyncJSONLDecoder
A decoder for [JSON Lines](https://jsonlines.org) format. This class provides an async iterator over a byte-iterator that parses each JSON Line
src/anthropic/_decoders/jsonl.py:59
↓ 1 callersClassAsyncMessageStream
src/anthropic/lib/streaming/_messages.py:161
↓ 1 callersClassAsyncMessageStreamManager
Wrapper over AsyncMessageStream that is returned by `.stream()` so that an async context manager can be used without `await`ing the original c
src/anthropic/lib/streaming/_messages.py:266
↓ 1 callersClassAsyncMessages
src/anthropic/resources/beta/messages/messages.py:1229
↓ 1 callersClassAsyncMessagesWithRawResponse
src/anthropic/resources/messages/messages.py:2376
↓ 1 callersClassAsyncMessagesWithStreamingResponse
src/anthropic/resources/messages/messages.py:2408
↓ 1 callersClassAsyncModels
src/anthropic/resources/beta/models.py:138
↓ 1 callersClassAsyncModelsWithRawResponse
src/anthropic/resources/models.py:267
↓ 1 callersClassAsyncModelsWithStreamingResponse
src/anthropic/resources/models.py:291
↓ 1 callersClassAsyncPaginator
src/anthropic/_base_client.py:248
↓ 1 callersClassAsyncResponseContextManager
Context manager for ensuring that a request is not made until it is entered and that the response will always be closed when the context manag
src/anthropic/_response.py:663
↓ 1 callersClassBasicModel
tests/test_models.py:15
↓ 1 callersClassBatches
src/anthropic/resources/beta/messages/batches.py:34
↓ 1 callersClassBatches
src/anthropic/resources/messages/batches.py:30
↓ 1 callersClassBeta
src/anthropic/lib/bedrock/_beta.py:19
↓ 1 callersClassBeta
src/anthropic/lib/vertex/_beta.py:19
↓ 1 callersClassBetaAsyncMessageStream
src/anthropic/lib/streaming/_beta_messages.py:161
↓ 1 callersClassBetaAsyncMessageStreamManager
Wrapper over BetaAsyncMessageStream that is returned by `.stream()` so that an async context manager can be used without `await`ing the origin
src/anthropic/lib/streaming/_beta_messages.py:266
↓ 1 callersClassBetaMessageStream
src/anthropic/lib/streaming/_beta_messages.py:24
↓ 1 callersClassBetaMessageStreamManager
Wrapper over MessageStream that is returned by `.stream()`. ```py with client.beta.messages.stream(...) as stream: for chunk in strea
src/anthropic/lib/streaming/_beta_messages.py:129
↓ 1 callersClassBetaWithRawResponse
src/anthropic/resources/beta/beta.py:85
↓ 1 callersClassBetaWithRawResponse
src/anthropic/lib/bedrock/_beta.py:69
↓ 1 callersClassBetaWithRawResponse
src/anthropic/lib/vertex/_beta.py:69
↓ 1 callersClassBetaWithStreamingResponse
src/anthropic/resources/beta/beta.py:111
↓ 1 callersClassBetaWithStreamingResponse
src/anthropic/lib/bedrock/_beta.py:87
↓ 1 callersClassBetaWithStreamingResponse
src/anthropic/lib/vertex/_beta.py:87
↓ 1 callersClassChild
tests/test_models.py:190
next →1–100 of 417, ranked by callers