anthropic 0.59.0__py3-none-any.whl → 0.61.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/_base_client.py CHANGED
@@ -545,7 +545,10 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
545
545
  is_body_allowed = options.method.lower() != "get"
546
546
 
547
547
  if is_body_allowed:
548
- kwargs["json"] = json_data if is_given(json_data) else None
548
+ if isinstance(json_data, bytes):
549
+ kwargs["content"] = json_data
550
+ else:
551
+ kwargs["json"] = json_data if is_given(json_data) else None
549
552
  kwargs["files"] = files
550
553
  else:
551
554
  headers.pop("Content-Type", None)
@@ -704,7 +707,7 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
704
707
  expected_time = maximum_time * max_tokens / 128_000
705
708
  if expected_time > default_time or (max_nonstreaming_tokens and max_tokens > max_nonstreaming_tokens):
706
709
  raise ValueError(
707
- "Streaming is strongly recommended for operations that may take longer than 10 minutes. "
710
+ "Streaming is required for operations that may take longer than 10 minutes. "
708
711
  + "See https://github.com/anthropics/anthropic-sdk-python#long-requests for more details",
709
712
  )
710
713
  return Timeout(
anthropic/_constants.py CHANGED
@@ -23,4 +23,7 @@ MODEL_NONSTREAMING_TOKENS = {
23
23
  "claude-4-opus-20250514": 8_192,
24
24
  "anthropic.claude-opus-4-20250514-v1:0": 8_192,
25
25
  "claude-opus-4@20250514": 8_192,
26
+ "claude-opus-4-1-20250805": 8192,
27
+ "anthropic.claude-opus-4-1-20250805-v1:0": 8192,
28
+ "claude-opus-4-1@20250805": 8192,
26
29
  }
anthropic/_files.py CHANGED
@@ -69,12 +69,12 @@ def _transform_file(file: FileTypes) -> HttpxFileTypes:
69
69
  return file
70
70
 
71
71
  if is_tuple_t(file):
72
- return (file[0], _read_file_content(file[1]), *file[2:])
72
+ return (file[0], read_file_content(file[1]), *file[2:])
73
73
 
74
74
  raise TypeError(f"Expected file types input to be a FileContent type or to be a tuple")
75
75
 
76
76
 
77
- def _read_file_content(file: FileContent) -> HttpxFileContent:
77
+ def read_file_content(file: FileContent) -> HttpxFileContent:
78
78
  if isinstance(file, os.PathLike):
79
79
  return pathlib.Path(file).read_bytes()
80
80
  return file
@@ -111,12 +111,12 @@ async def _async_transform_file(file: FileTypes) -> HttpxFileTypes:
111
111
  return file
112
112
 
113
113
  if is_tuple_t(file):
114
- return (file[0], await _async_read_file_content(file[1]), *file[2:])
114
+ return (file[0], await async_read_file_content(file[1]), *file[2:])
115
115
 
116
116
  raise TypeError(f"Expected file types input to be a FileContent type or to be a tuple")
117
117
 
118
118
 
119
- async def _async_read_file_content(file: FileContent) -> HttpxFileContent:
119
+ async def async_read_file_content(file: FileContent) -> HttpxFileContent:
120
120
  if isinstance(file, os.PathLike):
121
121
  return await anyio.Path(file).read_bytes()
122
122
 
anthropic/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "anthropic"
4
- __version__ = "0.59.0" # x-release-please-version
4
+ __version__ = "0.61.0" # x-release-please-version
@@ -13,6 +13,8 @@ __all__ = ["Messages", "AsyncMessages"]
13
13
 
14
14
  class Messages(SyncAPIResource):
15
15
  create = FirstPartyMessagesAPI.create
16
+ stream = FirstPartyMessagesAPI.stream
17
+ count_tokens = FirstPartyMessagesAPI.count_tokens
16
18
 
17
19
  @cached_property
18
20
  def with_raw_response(self) -> MessagesWithRawResponse:
@@ -36,6 +38,8 @@ class Messages(SyncAPIResource):
36
38
 
37
39
  class AsyncMessages(AsyncAPIResource):
38
40
  create = FirstPartyAsyncMessagesAPI.create
41
+ stream = FirstPartyAsyncMessagesAPI.stream
42
+ count_tokens = FirstPartyAsyncMessagesAPI.count_tokens
39
43
 
40
44
  @cached_property
41
45
  def with_raw_response(self) -> AsyncMessagesWithRawResponse:
@@ -111,6 +111,8 @@ from .web_search_tool_20250305_param import WebSearchTool20250305Param as WebSea
111
111
  from .citation_content_block_location import CitationContentBlockLocation as CitationContentBlockLocation
112
112
  from .message_count_tokens_tool_param import MessageCountTokensToolParam as MessageCountTokensToolParam
113
113
  from .tool_text_editor_20250124_param import ToolTextEditor20250124Param as ToolTextEditor20250124Param
114
+ from .tool_text_editor_20250429_param import ToolTextEditor20250429Param as ToolTextEditor20250429Param
115
+ from .tool_text_editor_20250728_param import ToolTextEditor20250728Param as ToolTextEditor20250728Param
114
116
  from .content_block_source_content_param import ContentBlockSourceContentParam as ContentBlockSourceContentParam
115
117
  from .web_search_tool_result_block_param import WebSearchToolResultBlockParam as WebSearchToolResultBlockParam
116
118
  from .web_search_tool_request_error_param import WebSearchToolRequestErrorParam as WebSearchToolRequestErrorParam
@@ -95,6 +95,7 @@ from .beta_citation_search_result_location import BetaCitationSearchResultLocati
95
95
  from .beta_tool_text_editor_20241022_param import BetaToolTextEditor20241022Param as BetaToolTextEditor20241022Param
96
96
  from .beta_tool_text_editor_20250124_param import BetaToolTextEditor20250124Param as BetaToolTextEditor20250124Param
97
97
  from .beta_tool_text_editor_20250429_param import BetaToolTextEditor20250429Param as BetaToolTextEditor20250429Param
98
+ from .beta_tool_text_editor_20250728_param import BetaToolTextEditor20250728Param as BetaToolTextEditor20250728Param
98
99
  from .beta_code_execution_tool_result_block import BetaCodeExecutionToolResultBlock as BetaCodeExecutionToolResultBlock
99
100
  from .beta_code_execution_tool_result_error import BetaCodeExecutionToolResultError as BetaCodeExecutionToolResultError
100
101
  from .beta_tool_computer_use_20241022_param import BetaToolComputerUse20241022Param as BetaToolComputerUse20241022Param
@@ -17,6 +17,8 @@ class BetaCitationCharLocation(BaseModel):
17
17
 
18
18
  end_char_index: int
19
19
 
20
+ file_id: Optional[str] = None
21
+
20
22
  start_char_index: int
21
23
 
22
24
  type: Literal["char_location"]
@@ -17,6 +17,8 @@ class BetaCitationContentBlockLocation(BaseModel):
17
17
 
18
18
  end_block_index: int
19
19
 
20
+ file_id: Optional[str] = None
21
+
20
22
  start_block_index: int
21
23
 
22
24
  type: Literal["content_block_location"]
@@ -17,6 +17,8 @@ class BetaCitationPageLocation(BaseModel):
17
17
 
18
18
  end_page_number: int
19
19
 
20
+ file_id: Optional[str] = None
21
+
20
22
  start_page_number: int
21
23
 
22
24
  type: Literal["page_location"]
@@ -0,0 +1,29 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Optional
6
+ from typing_extensions import Literal, Required, TypedDict
7
+
8
+ from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam
9
+
10
+ __all__ = ["BetaToolTextEditor20250728Param"]
11
+
12
+
13
+ class BetaToolTextEditor20250728Param(TypedDict, total=False):
14
+ name: Required[Literal["str_replace_based_edit_tool"]]
15
+ """Name of the tool.
16
+
17
+ This is how the tool will be called by the model and in `tool_use` blocks.
18
+ """
19
+
20
+ type: Required[Literal["text_editor_20250728"]]
21
+
22
+ cache_control: Optional[BetaCacheControlEphemeralParam]
23
+ """Create a cache control breakpoint at this content block."""
24
+
25
+ max_characters: Optional[int]
26
+ """Maximum number of characters to display when viewing a file.
27
+
28
+ If not specified, defaults to displaying the full file.
29
+ """
@@ -12,6 +12,7 @@ from .beta_web_search_tool_20250305_param import BetaWebSearchTool20250305Param
12
12
  from .beta_tool_text_editor_20241022_param import BetaToolTextEditor20241022Param
13
13
  from .beta_tool_text_editor_20250124_param import BetaToolTextEditor20250124Param
14
14
  from .beta_tool_text_editor_20250429_param import BetaToolTextEditor20250429Param
15
+ from .beta_tool_text_editor_20250728_param import BetaToolTextEditor20250728Param
15
16
  from .beta_tool_computer_use_20241022_param import BetaToolComputerUse20241022Param
16
17
  from .beta_tool_computer_use_20250124_param import BetaToolComputerUse20250124Param
17
18
  from .beta_code_execution_tool_20250522_param import BetaCodeExecutionTool20250522Param
@@ -28,5 +29,6 @@ BetaToolUnionParam: TypeAlias = Union[
28
29
  BetaToolTextEditor20241022Param,
29
30
  BetaToolTextEditor20250124Param,
30
31
  BetaToolTextEditor20250429Param,
32
+ BetaToolTextEditor20250728Param,
31
33
  BetaWebSearchTool20250305Param,
32
34
  ]
@@ -19,6 +19,7 @@ from .beta_web_search_tool_20250305_param import BetaWebSearchTool20250305Param
19
19
  from .beta_tool_text_editor_20241022_param import BetaToolTextEditor20241022Param
20
20
  from .beta_tool_text_editor_20250124_param import BetaToolTextEditor20250124Param
21
21
  from .beta_tool_text_editor_20250429_param import BetaToolTextEditor20250429Param
22
+ from .beta_tool_text_editor_20250728_param import BetaToolTextEditor20250728Param
22
23
  from .beta_tool_computer_use_20241022_param import BetaToolComputerUse20241022Param
23
24
  from .beta_tool_computer_use_20250124_param import BetaToolComputerUse20250124Param
24
25
  from .beta_code_execution_tool_20250522_param import BetaCodeExecutionTool20250522Param
@@ -248,5 +249,6 @@ Tool: TypeAlias = Union[
248
249
  BetaToolTextEditor20241022Param,
249
250
  BetaToolTextEditor20250124Param,
250
251
  BetaToolTextEditor20250429Param,
252
+ BetaToolTextEditor20250728Param,
251
253
  BetaWebSearchTool20250305Param,
252
254
  ]
@@ -17,6 +17,8 @@ class CitationCharLocation(BaseModel):
17
17
 
18
18
  end_char_index: int
19
19
 
20
+ file_id: Optional[str] = None
21
+
20
22
  start_char_index: int
21
23
 
22
24
  type: Literal["char_location"]
@@ -17,6 +17,8 @@ class CitationContentBlockLocation(BaseModel):
17
17
 
18
18
  end_block_index: int
19
19
 
20
+ file_id: Optional[str] = None
21
+
20
22
  start_block_index: int
21
23
 
22
24
  type: Literal["content_block_location"]
@@ -17,6 +17,8 @@ class CitationPageLocation(BaseModel):
17
17
 
18
18
  end_page_number: int
19
19
 
20
+ file_id: Optional[str] = None
21
+
20
22
  start_page_number: int
21
23
 
22
24
  type: Literal["page_location"]
@@ -2,31 +2,23 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Union, Optional
6
- from typing_extensions import Literal, Required, TypeAlias, TypedDict
5
+ from typing import Union
6
+ from typing_extensions import TypeAlias
7
7
 
8
8
  from .tool_param import ToolParam
9
9
  from .tool_bash_20250124_param import ToolBash20250124Param
10
- from .cache_control_ephemeral_param import CacheControlEphemeralParam
11
10
  from .web_search_tool_20250305_param import WebSearchTool20250305Param
12
11
  from .tool_text_editor_20250124_param import ToolTextEditor20250124Param
12
+ from .tool_text_editor_20250429_param import ToolTextEditor20250429Param
13
+ from .tool_text_editor_20250728_param import ToolTextEditor20250728Param
13
14
 
14
- __all__ = ["MessageCountTokensToolParam", "TextEditor20250429"]
15
-
16
-
17
- class TextEditor20250429(TypedDict, total=False):
18
- name: Required[Literal["str_replace_based_edit_tool"]]
19
- """Name of the tool.
20
-
21
- This is how the tool will be called by the model and in `tool_use` blocks.
22
- """
23
-
24
- type: Required[Literal["text_editor_20250429"]]
25
-
26
- cache_control: Optional[CacheControlEphemeralParam]
27
- """Create a cache control breakpoint at this content block."""
28
-
15
+ __all__ = ["MessageCountTokensToolParam"]
29
16
 
30
17
  MessageCountTokensToolParam: TypeAlias = Union[
31
- ToolParam, ToolBash20250124Param, ToolTextEditor20250124Param, TextEditor20250429, WebSearchTool20250305Param
18
+ ToolParam,
19
+ ToolBash20250124Param,
20
+ ToolTextEditor20250124Param,
21
+ ToolTextEditor20250429Param,
22
+ ToolTextEditor20250728Param,
23
+ WebSearchTool20250305Param,
32
24
  ]
anthropic/types/model.py CHANGED
@@ -20,6 +20,7 @@ Model: TypeAlias = Union[
20
20
  "claude-opus-4-0",
21
21
  "claude-opus-4-20250514",
22
22
  "claude-4-opus-20250514",
23
+ "claude-opus-4-1-20250805",
23
24
  "claude-3-opus-latest",
24
25
  "claude-3-opus-20240229",
25
26
  "claude-3-haiku-20240307",
@@ -22,6 +22,7 @@ ModelParam: TypeAlias = Union[
22
22
  "claude-opus-4-0",
23
23
  "claude-opus-4-20250514",
24
24
  "claude-4-opus-20250514",
25
+ "claude-opus-4-1-20250805",
25
26
  "claude-3-opus-latest",
26
27
  "claude-3-opus-20240229",
27
28
  "claude-3-haiku-20240307",
@@ -0,0 +1,23 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Optional
6
+ from typing_extensions import Literal, Required, TypedDict
7
+
8
+ from .cache_control_ephemeral_param import CacheControlEphemeralParam
9
+
10
+ __all__ = ["ToolTextEditor20250429Param"]
11
+
12
+
13
+ class ToolTextEditor20250429Param(TypedDict, total=False):
14
+ name: Required[Literal["str_replace_based_edit_tool"]]
15
+ """Name of the tool.
16
+
17
+ This is how the tool will be called by the model and in `tool_use` blocks.
18
+ """
19
+
20
+ type: Required[Literal["text_editor_20250429"]]
21
+
22
+ cache_control: Optional[CacheControlEphemeralParam]
23
+ """Create a cache control breakpoint at this content block."""
@@ -0,0 +1,29 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Optional
6
+ from typing_extensions import Literal, Required, TypedDict
7
+
8
+ from .cache_control_ephemeral_param import CacheControlEphemeralParam
9
+
10
+ __all__ = ["ToolTextEditor20250728Param"]
11
+
12
+
13
+ class ToolTextEditor20250728Param(TypedDict, total=False):
14
+ name: Required[Literal["str_replace_based_edit_tool"]]
15
+ """Name of the tool.
16
+
17
+ This is how the tool will be called by the model and in `tool_use` blocks.
18
+ """
19
+
20
+ type: Required[Literal["text_editor_20250728"]]
21
+
22
+ cache_control: Optional[CacheControlEphemeralParam]
23
+ """Create a cache control breakpoint at this content block."""
24
+
25
+ max_characters: Optional[int]
26
+ """Maximum number of characters to display when viewing a file.
27
+
28
+ If not specified, defaults to displaying the full file.
29
+ """
@@ -2,31 +2,23 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Union, Optional
6
- from typing_extensions import Literal, Required, TypeAlias, TypedDict
5
+ from typing import Union
6
+ from typing_extensions import TypeAlias
7
7
 
8
8
  from .tool_param import ToolParam
9
9
  from .tool_bash_20250124_param import ToolBash20250124Param
10
- from .cache_control_ephemeral_param import CacheControlEphemeralParam
11
10
  from .web_search_tool_20250305_param import WebSearchTool20250305Param
12
11
  from .tool_text_editor_20250124_param import ToolTextEditor20250124Param
12
+ from .tool_text_editor_20250429_param import ToolTextEditor20250429Param
13
+ from .tool_text_editor_20250728_param import ToolTextEditor20250728Param
13
14
 
14
- __all__ = ["ToolUnionParam", "TextEditor20250429"]
15
-
16
-
17
- class TextEditor20250429(TypedDict, total=False):
18
- name: Required[Literal["str_replace_based_edit_tool"]]
19
- """Name of the tool.
20
-
21
- This is how the tool will be called by the model and in `tool_use` blocks.
22
- """
23
-
24
- type: Required[Literal["text_editor_20250429"]]
25
-
26
- cache_control: Optional[CacheControlEphemeralParam]
27
- """Create a cache control breakpoint at this content block."""
28
-
15
+ __all__ = ["ToolUnionParam"]
29
16
 
30
17
  ToolUnionParam: TypeAlias = Union[
31
- ToolParam, ToolBash20250124Param, ToolTextEditor20250124Param, TextEditor20250429, WebSearchTool20250305Param
18
+ ToolParam,
19
+ ToolBash20250124Param,
20
+ ToolTextEditor20250124Param,
21
+ ToolTextEditor20250429Param,
22
+ ToolTextEditor20250728Param,
23
+ WebSearchTool20250305Param,
32
24
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: anthropic
3
- Version: 0.59.0
3
+ Version: 0.61.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
@@ -1,10 +1,10 @@
1
1
  anthropic/__init__.py,sha256=_3qHjlaUTyCm_xLr3HAcWvxMuKwKJtVRR1TkwU9WEYE,2845
2
- anthropic/_base_client.py,sha256=pF41xe4VsXrplq61mZw7jm3UxuJ0ysNm3mIwwODVtl8,72736
2
+ anthropic/_base_client.py,sha256=70y09CJlfxxJ_cxdWlh1fEQJdj5BptTL71-XYeYp01E,72837
3
3
  anthropic/_client.py,sha256=kZlulmKAcSG7WdzYCUdXFFfATn5ZP1PO7gHQbqAe2Dc,22827
4
4
  anthropic/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
5
- anthropic/_constants.py,sha256=dZ53c7dQnlC6xcGkes61-8goAEIOwzTfsmcBfzdU9Ho,756
5
+ anthropic/_constants.py,sha256=wADeUqY3lsseF0L6jIen-PexfQ06FOtf2dVESXDM828,885
6
6
  anthropic/_exceptions.py,sha256=bkSqVWxtRdRb31H7MIvtxfh5mo_Xf7Ib3nPTOmAOmGs,4073
7
- anthropic/_files.py,sha256=rfm6t3u1wPlq2X5l3qnymAmDY8caH9V_lickXC24o6I,3627
7
+ anthropic/_files.py,sha256=_Ux6v6nAsxK4e_4efdt1DiIOZ0hGmlR2ZKKcVfJIfGU,3623
8
8
  anthropic/_legacy_response.py,sha256=QsroQ_9LHI8tSoPEvbIXXB44SvLJXaXQX7khjZpnqfE,17235
9
9
  anthropic/_models.py,sha256=VEovOb5ek_pfb-KvxfBpCYYUszw2KMUT6x_zzUzCLzk,31387
10
10
  anthropic/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
@@ -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=EW9TFA1pohaF4p9rmYwP8ffwypJpV5zfCMKWeGFB8JE,162
15
+ anthropic/_version.py,sha256=rzup-OHfbD2eLtUhg6G9S_vHQ8xxpcuodmqJIa76hiw,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
@@ -47,7 +47,7 @@ anthropic/lib/streaming/_types.py,sha256=CrR4948IWgUF7L9O0ase2QwbpiQ1JeiYXrRyVi7
47
47
  anthropic/lib/vertex/__init__.py,sha256=A8vuK1qVPtmKr1_LQgPuDRVA6I4xm_ye2aPdAa4yGsI,102
48
48
  anthropic/lib/vertex/_auth.py,sha256=Kyt_hbUc-DPlkvds4__OLR8FLPpoDas6bXhZTECxO3Y,1644
49
49
  anthropic/lib/vertex/_beta.py,sha256=8kXsUUIGstf6dZfiZtm6s9OWEueuSgra8dPvkaUacy4,3323
50
- anthropic/lib/vertex/_beta_messages.py,sha256=ClPL21UrRbJ9M10G8PcRla_Fu9GoWN_420FUuw91bmY,3197
50
+ anthropic/lib/vertex/_beta_messages.py,sha256=4fsV2F6TzB14DuHLo9k8i95vymcbixIPjsplqpsHfac,3399
51
51
  anthropic/lib/vertex/_client.py,sha256=bvemByz7HdwDIHMojcvBUN7khsI32jFglgtRVDH5o04,16619
52
52
  anthropic/resources/__init__.py,sha256=H0t_V-A_u6bIVmbAUpY9ZfgqoNIjIfyNpZz7hAiErIA,1583
53
53
  anthropic/resources/completions.py,sha256=lrht7C7OY4tNEHXGYUVkciCmnMXwYcte4myEQ7T75LI,37132
@@ -62,7 +62,7 @@ anthropic/resources/beta/messages/messages.py,sha256=Dd7qofd2C-DJBqqySwIbtrjjdna
62
62
  anthropic/resources/messages/__init__.py,sha256=iOSBh4D7NTXqe7RNhw9HZCiFmJvDfIgVFnjaF7r27YU,897
63
63
  anthropic/resources/messages/batches.py,sha256=w_bNgg_NV4rFQkDeixJtRokimPIT3OVpimr8D8_7v5Y,28590
64
64
  anthropic/resources/messages/messages.py,sha256=ea_T-P7m6XWQ3mwyujhsxT7xvcDwb0ALbWFM2TVNzWs,115893
65
- anthropic/types/__init__.py,sha256=Nv86tLK4kFXLnN2HGuTLasS2ImXV9bGlRnuDU-akfys,8863
65
+ anthropic/types/__init__.py,sha256=yg2f5AS6fAwmXDQWOYw8gmp4-Xi6dN7A25wbRdcRTxc,9071
66
66
  anthropic/types/anthropic_beta_param.py,sha256=i4XrAH4oVFJ4boTJp-Ko972wEvx0hTds4YJL28JnoW0,815
67
67
  anthropic/types/base64_image_source_param.py,sha256=4djZ4GfXcL2khwcg8KpUdZILKmmzHro5YFXTdkhSqpw,725
68
68
  anthropic/types/base64_pdf_source_param.py,sha256=N2ALmXljCEVfOh9oUbgFjH8hF3iNFoQLK7y0MfvPl4k,684
@@ -78,11 +78,11 @@ anthropic/types/beta_overloaded_error.py,sha256=TPBl-7AuTOj0i2IcB8l8OAYBsJE-Wjxz
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
80
  anthropic/types/cache_control_ephemeral_param.py,sha256=-poqnL5puq-uzfZsV029kZMgCKPF5rRQn2seG_Jpwds,325
81
- anthropic/types/citation_char_location.py,sha256=Q4AsOIa7p_Z2lI5Bqc80OVp4By1DJRyxE_B9IXV343Y,438
81
+ anthropic/types/citation_char_location.py,sha256=1PmYQ4NkEgmhJPOv6m7XhcXtd0myp-gHvgtyQ0Uws-s,473
82
82
  anthropic/types/citation_char_location_param.py,sha256=9tk6PgA-ktMZ21A1PeWgidXQjaW7cIE2ETKFGWc-6tE,538
83
- anthropic/types/citation_content_block_location.py,sha256=dYzGNeBYLQBREtOVGjd6N17I0K7GWHTgX5dhTBos4r8,465
83
+ anthropic/types/citation_content_block_location.py,sha256=wF2H_nZcZ7XVlc2n6ZzTsdxuh55h6lUIVEI38SXWGgw,500
84
84
  anthropic/types/citation_content_block_location_param.py,sha256=OWwJS3K9rPjwVXX3zic9O0SfIpGbi6268oGiZmcghrE,565
85
- anthropic/types/citation_page_location.py,sha256=4RQyuM2i2MtX8zxT8uoI9CCyr1uYIJS8RLLcsg-mhB4,440
85
+ anthropic/types/citation_page_location.py,sha256=ZrdI5X-bkcHUfTVkugX1vaLsGC_N9H6UQNTkUcii7Io,475
86
86
  anthropic/types/citation_page_location_param.py,sha256=HaGbc5OyeI0qNk9PYzwx_xGZwuoQpJ_NvwbkRXBGcTo,540
87
87
  anthropic/types/citation_web_search_result_location_param.py,sha256=L_49nL2-OQ7jv0ihuaZlGpTwlsHl7JFKQj2XyVvun0s,517
88
88
  anthropic/types/citations_config_param.py,sha256=QaqfWOS568Iv0LOlwnswhCUXF8JtS-AjGsz_fGJKmpI,271
@@ -102,7 +102,7 @@ anthropic/types/image_block_param.py,sha256=qIh7kE3IyA4wrd4KNhmFmpv2fpOeJr1Dp-WN
102
102
  anthropic/types/input_json_delta.py,sha256=s-DsbG4jVex1nYxAXNOeraCqGpbRidCbRqBR_Th2YYI,336
103
103
  anthropic/types/message.py,sha256=Uy4ZsxH0RNE4u2cBrVjsgeQyHg7To9yHBvNBTZk6MqA,3530
104
104
  anthropic/types/message_count_tokens_params.py,sha256=W2yCNHiqvTqV5drWFEJiMwc52vdLLKFdag-BT3sSerY,7357
105
- anthropic/types/message_count_tokens_tool_param.py,sha256=SS0DWLG1dvBUPDAy5nazt2K9JhxWUdDIQGZBbEBlHQg,1169
105
+ anthropic/types/message_count_tokens_tool_param.py,sha256=NEIiWMf-YkKGQzhjnHCXltzyblbEbVu6MxbitTfet4k,840
106
106
  anthropic/types/message_create_params.py,sha256=8vIp6b6wCFiHGS0rW1Ay8RTEhtVU3IT1_zHQ7jBeIVE,11624
107
107
  anthropic/types/message_delta_event.py,sha256=YXDoFicieByN-ur1L0kLMlBoLJEhQwYjD-wRUgbTiXM,279
108
108
  anthropic/types/message_delta_usage.py,sha256=xckWsOsyF2QXRuJTfMKrlkPLohMsOc0lyMFFpmD8Sws,816
@@ -112,10 +112,10 @@ anthropic/types/message_stop_event.py,sha256=rtYh1F-b9xilu8s_RdaHijP7kf3om6FvK9c
112
112
  anthropic/types/message_stream_event.py,sha256=OspCo1IFpItyJDr4Ta16o8DQmTsgVWSmeNg4BhfMM0M,285
113
113
  anthropic/types/message_tokens_count.py,sha256=JmkcWw9nZAUgr2WY5G4Mwqs2jcnMuZXh920MlUkvY70,329
114
114
  anthropic/types/metadata_param.py,sha256=p6j8bWh3FfI3PB-vJjU4JhRukP2NZdrcE2gQixw5zgw,594
115
- anthropic/types/model.py,sha256=SahaHoHnqIh71yKDM0_zsNJVJjqXESmxHYnEMWaIxJ4,795
115
+ anthropic/types/model.py,sha256=V888kWy7bfcTSpuM5pr60ij6br5xH5ImHQvxduzvrR0,831
116
116
  anthropic/types/model_info.py,sha256=JrqNQwWcOiC5ItKTZqRfeAQhPWzi0AyzzOTF6AdE-ss,646
117
117
  anthropic/types/model_list_params.py,sha256=O2GJOAHr6pB7yGAJhLjcwsDJ8ACtE1GrOrI2JDkj0w8,974
118
- anthropic/types/model_param.py,sha256=EFUM-xa-i8TNOjU9UCd22gJhnzk2ZARWHVS07ZRjDLs,841
118
+ anthropic/types/model_param.py,sha256=a9Fju4LrWXtBVVw_aNtBC75T4X5QrCffr7701MK_p_A,877
119
119
  anthropic/types/plain_text_source_param.py,sha256=zdzLMfSQZH2_9Z8ssVc5hLG1w_AuFZ2Z3E17lEntAzg,382
120
120
  anthropic/types/raw_content_block_delta.py,sha256=T1i1gSGq9u9obYbxgXYAwux-WIRqSRWJW9tBjBDXoP8,611
121
121
  anthropic/types/raw_content_block_delta_event.py,sha256=XKpY_cCljZ6NFtVCt5R38imPbnZAbFyQVIB5d4K4ZgY,393
@@ -152,7 +152,9 @@ anthropic/types/tool_choice_tool_param.py,sha256=61mEbvhxU4oGKxTlcFt1RBUzHPIIuWg
152
152
  anthropic/types/tool_param.py,sha256=CiU_bpBntP6-GknQKuI0ghI1CpsMAQWkrVAbLSbvdno,1614
153
153
  anthropic/types/tool_result_block_param.py,sha256=c7DMaO5RL6G_4aP5FUGJu8k5_uF-JMX49XVFGEL7BEM,826
154
154
  anthropic/types/tool_text_editor_20250124_param.py,sha256=uZU1b3qkuAMf_WnyPd_SyEO7iQXY75-XEYBP1JkGu4U,725
155
- anthropic/types/tool_union_param.py,sha256=GQFiQEpexUavHEworYciOCoHjTQe2PGovK7vobLbmx0,1143
155
+ anthropic/types/tool_text_editor_20250429_param.py,sha256=2laqI5jBBNignFGJhwyOWoRFjFiMAMTApJLJhcW11Lk,734
156
+ anthropic/types/tool_text_editor_20250728_param.py,sha256=ep1KG6uIZFZ94XhRD0sV3zdtXNcA9WJ9MBtm26Y88U0,906
157
+ anthropic/types/tool_union_param.py,sha256=sc_0_oZXDX1irFKjzodgFw6NoWyZK_2QwMoHb7VmG1o,814
156
158
  anthropic/types/tool_use_block.py,sha256=qIzJL6pN2zho5RjCYiHnUaPFbQKpRWVIbxIlzAzFh5g,296
157
159
  anthropic/types/tool_use_block_param.py,sha256=NmmecN-YJ4aBEl4YFEmO4aNyPE3M0SOoQL6NA0djxFE,606
158
160
  anthropic/types/url_image_source_param.py,sha256=jhgWbgwFgChO8v_XZzuMpuv2u3E0R8zISam8WbVwXyw,329
@@ -167,17 +169,17 @@ anthropic/types/web_search_tool_result_block_content.py,sha256=Ev_QL9KMO7emKGcTd
167
169
  anthropic/types/web_search_tool_result_block_param.py,sha256=BBYP395H7a_6I2874EDwxTcx6imeKPgrFL0d3aa2z_8,769
168
170
  anthropic/types/web_search_tool_result_block_param_content_param.py,sha256=YIBYcDI1GSlrI-4QBugJ_2YLpkofR7Da3vOwVDU44lo,542
169
171
  anthropic/types/web_search_tool_result_error.py,sha256=3WZaS3vYkAepbsa8yEmVNkUOYcpOHonaKfHBm1nFpr8,415
170
- anthropic/types/beta/__init__.py,sha256=E6sQ69jOL-5FgcreGinmLf2quCa1R4tVcK65l1PxI5I,11951
172
+ anthropic/types/beta/__init__.py,sha256=G3IzbsvfCDrGfKb-EasXm6BVRmQoi_Agkn7gRjV9yKY,12068
171
173
  anthropic/types/beta/beta_base64_image_source_param.py,sha256=njrnNCJcJyLt9JJQcidX3wuG9kpY_F5xWjb3DRO3tJQ,740
172
174
  anthropic/types/beta/beta_base64_pdf_block_param.py,sha256=aYzXqHuaoyXgNNIRnVo0YdyVT3l0rdpT9UoN4CmAYlI,257
173
175
  anthropic/types/beta/beta_base64_pdf_source_param.py,sha256=EeDrTSoJ0TtH2YfimFHtvwMURQ0rbStvrAEVevCnkSs,699
174
176
  anthropic/types/beta/beta_cache_control_ephemeral_param.py,sha256=l_knz_Mf0KnXkhO47kRp7AW_5WwJZV8kIjE-8JSRPDc,537
175
177
  anthropic/types/beta/beta_cache_creation.py,sha256=zqVV6J8sxETdrrOLmPQVMAsxnLptcz-ESpHeJcXrzpo,416
176
- anthropic/types/beta/beta_citation_char_location.py,sha256=r5t1wvQ21a6OZDy1s9Sv-ree_3mIFuBHBoorSsRb6i8,447
178
+ anthropic/types/beta/beta_citation_char_location.py,sha256=GoAYqL-EFKVJyGSpBR6AmziTRB320dUM-1lR3j17iwQ,482
177
179
  anthropic/types/beta/beta_citation_char_location_param.py,sha256=5Q9mepqDKAnm5BM0bMrcqJP44Pwfqw3ABDIOXW2iTCk,546
178
- anthropic/types/beta/beta_citation_content_block_location.py,sha256=grtmZIoe8oeTYmTe3LTWS-sy9LBLEKY4Fg0M-sKY7ag,474
180
+ anthropic/types/beta/beta_citation_content_block_location.py,sha256=ZZWGGR0zKA05fzuouWhxNG9RFzq3BCLU5zwbTMQtjyw,509
179
181
  anthropic/types/beta/beta_citation_content_block_location_param.py,sha256=egBVOEPTGHmlACdjQC2msxlrxUyEDE5a8tuDVORQ-Po,573
180
- anthropic/types/beta/beta_citation_page_location.py,sha256=7JKlsBhNrW3U8bHQtpNfHPy5_gVPqeHzUJ0X_DDkf6A,449
182
+ anthropic/types/beta/beta_citation_page_location.py,sha256=YPlI6R0OfVek8wT88_DX-2_OtpXE7dRoZ3TimQ9P3Jk,484
181
183
  anthropic/types/beta/beta_citation_page_location_param.py,sha256=Vdku-ReIo-VsVlaSdIVMyoLxUd-c7g3IdRLlcC2J-Yk,548
182
184
  anthropic/types/beta/beta_citation_search_result_location.py,sha256=PQGJvBAk5foB2nzPd1-9hlIjE6XB7swvrrh1A0SYjU4,487
183
185
  anthropic/types/beta/beta_citation_search_result_location_param.py,sha256=9xoAly_Z7SYf6uhb4Bu4PA33VyPuhlnDcbWwhLIaCYQ,596
@@ -263,7 +265,8 @@ anthropic/types/beta/beta_tool_result_block_param.py,sha256=g-4YcaWURLDwBVFu5k-c
263
265
  anthropic/types/beta/beta_tool_text_editor_20241022_param.py,sha256=z4plQ-egA85ettWcQm3sptpiBv3EYL1VbtrL2fldtTM,746
264
266
  anthropic/types/beta/beta_tool_text_editor_20250124_param.py,sha256=PqRpXlK9TqHPOcF5SRkGSeWc793QMNUztuIQKoGHyoI,746
265
267
  anthropic/types/beta/beta_tool_text_editor_20250429_param.py,sha256=2skxGp7C7fwrecE2dS22FPRXhxRF8VMQS4K5cNT-fbA,755
266
- anthropic/types/beta/beta_tool_union_param.py,sha256=rQyf1a58sQSQhETQdx9aHlk6Gy8LxoCPFidm2FE3rnA,1372
268
+ anthropic/types/beta/beta_tool_text_editor_20250728_param.py,sha256=Y9Kx_C2XZQ0BmXoOUEunVJeb7FnGTWH9egNc-S9lzqI,927
269
+ anthropic/types/beta/beta_tool_union_param.py,sha256=OgmPvgww57upg60_Df6Q6Q9FNQKBrmMiycYIkPHC7So,1491
267
270
  anthropic/types/beta/beta_tool_use_block.py,sha256=y1Y9ovht2t-BlJDqEOi_wk2b2XAIb2J_gkyIdzZM8fY,305
268
271
  anthropic/types/beta/beta_tool_use_block_param.py,sha256=eZvSxb6yvh_eLY0SSoN0pFSGGLxU4yJEv3nyMYZ7zBA,627
269
272
  anthropic/types/beta/beta_url_image_source_param.py,sha256=pquhkw8b13TbwhXA6_dMkPP-7vxYfbbXbjV_BVx_0ZY,337
@@ -283,7 +286,7 @@ anthropic/types/beta/deleted_file.py,sha256=VwcPcmaViwLDirEQ6zIYk570vhCbHmUk4Lj6
283
286
  anthropic/types/beta/file_list_params.py,sha256=kujdXupGnzdCtj0zTKyL6M5pgu1oXga64DXZya9uwsA,974
284
287
  anthropic/types/beta/file_metadata.py,sha256=SzNnobYc5JO233_12Jr5IDnd7SiDE8XHx4PsvyjuaDY,851
285
288
  anthropic/types/beta/file_upload_params.py,sha256=CvW5PpxpP2uyL5iIEWBi0MsNiNyTsrWm4I_5A2Qy__c,631
286
- anthropic/types/beta/message_count_tokens_params.py,sha256=hSE6u_7N-z2N-7ERpUKEqwOi2SEaAumzTSXJnugWflQ,8952
289
+ anthropic/types/beta/message_count_tokens_params.py,sha256=nDSyU4YTWp492rgUDMWoKCfeuCSjpLnPKZGBlb-FRhs,9071
287
290
  anthropic/types/beta/message_create_params.py,sha256=DfgTqYZN2E3gFwoxy956a_FfuoEfITDteNBm_Jxw5Gs,11359
288
291
  anthropic/types/beta/model_list_params.py,sha256=CqxSV6PeWqZOh9D9D1qsJeC6fsWLFQmvY1Q8G1q4Gzo,976
289
292
  anthropic/types/beta/messages/__init__.py,sha256=6yumvCsY9IXU9jZW1yIrXXGAXzXpByx2Rlc8aWHdQKQ,1202
@@ -322,7 +325,7 @@ anthropic/types/shared/not_found_error.py,sha256=R6OsCvAmsf_SB2TwoX6E63o049qZMaA
322
325
  anthropic/types/shared/overloaded_error.py,sha256=PlyhHt3wmzcnynSfkWbfP4XkLoWsPa9B39V3CyAdgx8,282
323
326
  anthropic/types/shared/permission_error.py,sha256=nuyxtLXOiEkYEbFRXiAWjxU6XtdyjkAaXQ2NgMB3pjw,282
324
327
  anthropic/types/shared/rate_limit_error.py,sha256=eYULATjXa6KKdqeBauest7RzuN-bhGsY5BWwH9eYv4c,280
325
- anthropic-0.59.0.dist-info/METADATA,sha256=u7i0Mx81_G98nk2e9maKP1y4D0g5E5hYEIdMoLYcmPk,27053
326
- anthropic-0.59.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
327
- anthropic-0.59.0.dist-info/licenses/LICENSE,sha256=i_lphP-Lz65-SMrnalKeiiUxe6ngKr9_08xk_flWV6Y,1056
328
- anthropic-0.59.0.dist-info/RECORD,,
328
+ anthropic-0.61.0.dist-info/METADATA,sha256=j-V5B4QwZ_19xsBTejMPJrHiKww8v7mN7tvrpggYt2Y,27053
329
+ anthropic-0.61.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
330
+ anthropic-0.61.0.dist-info/licenses/LICENSE,sha256=i_lphP-Lz65-SMrnalKeiiUxe6ngKr9_08xk_flWV6Y,1056
331
+ anthropic-0.61.0.dist-info/RECORD,,