anthropic 0.63.0__py3-none-any.whl → 0.64.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- anthropic/_version.py +1 -1
- anthropic/resources/messages/messages.py +2 -0
- anthropic/types/__init__.py +1 -0
- anthropic/types/cache_control_ephemeral_param.py +11 -0
- anthropic/types/cache_creation.py +13 -0
- anthropic/types/usage.py +4 -0
- {anthropic-0.63.0.dist-info → anthropic-0.64.0.dist-info}/METADATA +1 -1
- {anthropic-0.63.0.dist-info → anthropic-0.64.0.dist-info}/RECORD +10 -9
- {anthropic-0.63.0.dist-info → anthropic-0.64.0.dist-info}/WHEEL +0 -0
- {anthropic-0.63.0.dist-info → anthropic-0.64.0.dist-info}/licenses/LICENSE +0 -0
anthropic/_version.py
CHANGED
|
@@ -57,6 +57,8 @@ DEPRECATED_MODELS = {
|
|
|
57
57
|
"claude-3-opus-20240229": "January 5th, 2026",
|
|
58
58
|
"claude-2.1": "July 21st, 2025",
|
|
59
59
|
"claude-2.0": "July 21st, 2025",
|
|
60
|
+
"claude-3-5-sonnet-20241022": "October 22, 2025",
|
|
61
|
+
"claude-3-5-sonnet-20240620": "October 22, 2025",
|
|
60
62
|
}
|
|
61
63
|
|
|
62
64
|
|
anthropic/types/__init__.py
CHANGED
|
@@ -30,6 +30,7 @@ from .content_block import ContentBlock as ContentBlock
|
|
|
30
30
|
from .message_param import MessageParam as MessageParam
|
|
31
31
|
from .text_citation import TextCitation as TextCitation
|
|
32
32
|
from .beta_api_error import BetaAPIError as BetaAPIError
|
|
33
|
+
from .cache_creation import CacheCreation as CacheCreation
|
|
33
34
|
from .metadata_param import MetadataParam as MetadataParam
|
|
34
35
|
from .thinking_block import ThinkingBlock as ThinkingBlock
|
|
35
36
|
from .thinking_delta import ThinkingDelta as ThinkingDelta
|
|
@@ -9,3 +9,14 @@ __all__ = ["CacheControlEphemeralParam"]
|
|
|
9
9
|
|
|
10
10
|
class CacheControlEphemeralParam(TypedDict, total=False):
|
|
11
11
|
type: Required[Literal["ephemeral"]]
|
|
12
|
+
|
|
13
|
+
ttl: Literal["5m", "1h"]
|
|
14
|
+
"""The time-to-live for the cache control breakpoint.
|
|
15
|
+
|
|
16
|
+
This may be one the following values:
|
|
17
|
+
|
|
18
|
+
- `5m`: 5 minutes
|
|
19
|
+
- `1h`: 1 hour
|
|
20
|
+
|
|
21
|
+
Defaults to `5m`.
|
|
22
|
+
"""
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from .._models import BaseModel
|
|
4
|
+
|
|
5
|
+
__all__ = ["CacheCreation"]
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CacheCreation(BaseModel):
|
|
9
|
+
ephemeral_1h_input_tokens: int
|
|
10
|
+
"""The number of input tokens used to create the 1 hour cache entry."""
|
|
11
|
+
|
|
12
|
+
ephemeral_5m_input_tokens: int
|
|
13
|
+
"""The number of input tokens used to create the 5 minute cache entry."""
|
anthropic/types/usage.py
CHANGED
|
@@ -4,12 +4,16 @@ from typing import Optional
|
|
|
4
4
|
from typing_extensions import Literal
|
|
5
5
|
|
|
6
6
|
from .._models import BaseModel
|
|
7
|
+
from .cache_creation import CacheCreation
|
|
7
8
|
from .server_tool_usage import ServerToolUsage
|
|
8
9
|
|
|
9
10
|
__all__ = ["Usage"]
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
class Usage(BaseModel):
|
|
14
|
+
cache_creation: Optional[CacheCreation] = None
|
|
15
|
+
"""Breakdown of cached tokens by TTL"""
|
|
16
|
+
|
|
13
17
|
cache_creation_input_tokens: Optional[int] = None
|
|
14
18
|
"""The number of input tokens used to create the cache entry."""
|
|
15
19
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: anthropic
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.64.0
|
|
4
4
|
Summary: The official Python library for the anthropic API
|
|
5
5
|
Project-URL: Homepage, https://github.com/anthropics/anthropic-sdk-python
|
|
6
6
|
Project-URL: Repository, https://github.com/anthropics/anthropic-sdk-python
|
|
@@ -12,7 +12,7 @@ anthropic/_resource.py,sha256=FYEOzfhB-XWTR2gyTmQuuFoecRiVXxe_SpjZlQQGytU,1080
|
|
|
12
12
|
anthropic/_response.py,sha256=1Y7-OrGn1lOwvZ_SmMlwT9Nb2i9A1RYw2Q4-F1cwPSU,30542
|
|
13
13
|
anthropic/_streaming.py,sha256=vn8K5KgfO3Bv9NE8nwHIQEjEhkQeVE6YMnGqiJlCgqE,14023
|
|
14
14
|
anthropic/_types.py,sha256=WeAcP68yMpfs3hNEltM_k2nYMiG4xda4cFdf5kHbjP8,6299
|
|
15
|
-
anthropic/_version.py,sha256=
|
|
15
|
+
anthropic/_version.py,sha256=Vw28NYehcQi9RgIKDaxyvVKJERuqwZ7OSWJijnSZmuQ,162
|
|
16
16
|
anthropic/pagination.py,sha256=hW6DOtNbwwQrNQ8wn4PJj7WB2y_37szSDQeUBnunQ40,2202
|
|
17
17
|
anthropic/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
18
18
|
anthropic/_decoders/jsonl.py,sha256=KDLw-Frjo7gRup5qDp_BWkXIZ-mFZU5vFDz0WBhEKcs,3510
|
|
@@ -61,8 +61,8 @@ anthropic/resources/beta/messages/batches.py,sha256=6sbFpFCCRC-qN37-5n7lO3BzGXKG
|
|
|
61
61
|
anthropic/resources/beta/messages/messages.py,sha256=Dd7qofd2C-DJBqqySwIbtrjjdnaMOA5Kdtnjq1KTbXM,122055
|
|
62
62
|
anthropic/resources/messages/__init__.py,sha256=iOSBh4D7NTXqe7RNhw9HZCiFmJvDfIgVFnjaF7r27YU,897
|
|
63
63
|
anthropic/resources/messages/batches.py,sha256=w_bNgg_NV4rFQkDeixJtRokimPIT3OVpimr8D8_7v5Y,28590
|
|
64
|
-
anthropic/resources/messages/messages.py,sha256=
|
|
65
|
-
anthropic/types/__init__.py,sha256=
|
|
64
|
+
anthropic/resources/messages/messages.py,sha256=RMdwllVKjaZcBtHrMHG4WxuTJniZ6Tb08sdyAlFLh2o,116001
|
|
65
|
+
anthropic/types/__init__.py,sha256=H56hkiGRNPgQE1PANpHed0ns8nMqJGVqLmM7gVWLRWg,9458
|
|
66
66
|
anthropic/types/anthropic_beta_param.py,sha256=UyV6amEHP5EhVAxA_viLrdpX0YclbZtakiak-7XSayc,848
|
|
67
67
|
anthropic/types/base64_image_source_param.py,sha256=4djZ4GfXcL2khwcg8KpUdZILKmmzHro5YFXTdkhSqpw,725
|
|
68
68
|
anthropic/types/base64_pdf_source_param.py,sha256=N2ALmXljCEVfOh9oUbgFjH8hF3iNFoQLK7y0MfvPl4k,684
|
|
@@ -77,7 +77,8 @@ anthropic/types/beta_not_found_error.py,sha256=Oyc2bXxB1n_q1wm9ejJHY-TBCIdNL-Sl8
|
|
|
77
77
|
anthropic/types/beta_overloaded_error.py,sha256=TPBl-7AuTOj0i2IcB8l8OAYBsJE-WjxzyKGlKh0eeeI,289
|
|
78
78
|
anthropic/types/beta_permission_error.py,sha256=OU90hnoOaVLxiP_dwYbROdt25QhSZjuhKbVdTNx3uAM,289
|
|
79
79
|
anthropic/types/beta_rate_limit_error.py,sha256=-I0edM31ytNCWnO5ozYqgyzC92U7PfJbFvaACSEP7zs,287
|
|
80
|
-
anthropic/types/cache_control_ephemeral_param.py,sha256
|
|
80
|
+
anthropic/types/cache_control_ephemeral_param.py,sha256=q03wMTU8_TtKBXTlVJH6N36yIPmv4iRblwgvlZ0LLBA,529
|
|
81
|
+
anthropic/types/cache_creation.py,sha256=Br9XkoKHTr-2DpKCOBkDAzf5bPxQiYBCemHZvXRPY9M,407
|
|
81
82
|
anthropic/types/citation_char_location.py,sha256=1PmYQ4NkEgmhJPOv6m7XhcXtd0myp-gHvgtyQ0Uws-s,473
|
|
82
83
|
anthropic/types/citation_char_location_param.py,sha256=9tk6PgA-ktMZ21A1PeWgidXQjaW7cIE2ETKFGWc-6tE,538
|
|
83
84
|
anthropic/types/citation_content_block_location.py,sha256=wF2H_nZcZ7XVlc2n6ZzTsdxuh55h6lUIVEI38SXWGgw,500
|
|
@@ -162,7 +163,7 @@ anthropic/types/tool_use_block.py,sha256=qIzJL6pN2zho5RjCYiHnUaPFbQKpRWVIbxIlzAz
|
|
|
162
163
|
anthropic/types/tool_use_block_param.py,sha256=NmmecN-YJ4aBEl4YFEmO4aNyPE3M0SOoQL6NA0djxFE,606
|
|
163
164
|
anthropic/types/url_image_source_param.py,sha256=jhgWbgwFgChO8v_XZzuMpuv2u3E0R8zISam8WbVwXyw,329
|
|
164
165
|
anthropic/types/url_pdf_source_param.py,sha256=knFb8DFOWlrFFYwXnZbQx8tqejjWbPQjn3euIWPBMKk,325
|
|
165
|
-
anthropic/types/usage.py,sha256=
|
|
166
|
+
anthropic/types/usage.py,sha256=FPIepQO8jXFHX3RM2HuN-hWLz6y3UOyC4lnJRQxOSZY,1053
|
|
166
167
|
anthropic/types/web_search_result_block.py,sha256=Y8-r0n86qKex4eonDCKre4mS1w7SXleuOFMCT6HmpHU,396
|
|
167
168
|
anthropic/types/web_search_result_block_param.py,sha256=AbQnJIyfQYHSOEUYxBCGuZNqP5hmpFZI_1SxyD5QC8A,476
|
|
168
169
|
anthropic/types/web_search_tool_20250305_param.py,sha256=WACn4i31vhmX0NdfodNcUmzvZA85xEUVwm4LVLwdkTM,1779
|
|
@@ -328,7 +329,7 @@ anthropic/types/shared/not_found_error.py,sha256=R6OsCvAmsf_SB2TwoX6E63o049qZMaA
|
|
|
328
329
|
anthropic/types/shared/overloaded_error.py,sha256=PlyhHt3wmzcnynSfkWbfP4XkLoWsPa9B39V3CyAdgx8,282
|
|
329
330
|
anthropic/types/shared/permission_error.py,sha256=nuyxtLXOiEkYEbFRXiAWjxU6XtdyjkAaXQ2NgMB3pjw,282
|
|
330
331
|
anthropic/types/shared/rate_limit_error.py,sha256=eYULATjXa6KKdqeBauest7RzuN-bhGsY5BWwH9eYv4c,280
|
|
331
|
-
anthropic-0.
|
|
332
|
-
anthropic-0.
|
|
333
|
-
anthropic-0.
|
|
334
|
-
anthropic-0.
|
|
332
|
+
anthropic-0.64.0.dist-info/METADATA,sha256=9QyRGgggK_Uq4axsT4pCNOahJzT9ix0pe6Mv5uXlQLE,27053
|
|
333
|
+
anthropic-0.64.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
334
|
+
anthropic-0.64.0.dist-info/licenses/LICENSE,sha256=i_lphP-Lz65-SMrnalKeiiUxe6ngKr9_08xk_flWV6Y,1056
|
|
335
|
+
anthropic-0.64.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|