anthropic 0.66.0__py3-none-any.whl → 0.68.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.
Files changed (42) hide show
  1. anthropic/__init__.py +3 -0
  2. anthropic/_base_client.py +3 -3
  3. anthropic/_compat.py +48 -48
  4. anthropic/_models.py +54 -45
  5. anthropic/_utils/__init__.py +8 -2
  6. anthropic/_utils/_compat.py +45 -0
  7. anthropic/_utils/_datetime_parse.py +136 -0
  8. anthropic/_utils/_transform.py +5 -1
  9. anthropic/_utils/_typing.py +1 -1
  10. anthropic/_utils/_utils.py +0 -1
  11. anthropic/_version.py +1 -1
  12. anthropic/lib/tools/__init__.py +20 -0
  13. anthropic/lib/tools/_beta_functions.py +289 -0
  14. anthropic/lib/tools/_beta_runner.py +405 -0
  15. anthropic/resources/beta/messages/messages.py +370 -1
  16. anthropic/types/beta/__init__.py +14 -0
  17. anthropic/types/beta/beta_base64_pdf_source.py +15 -0
  18. anthropic/types/beta/beta_citation_config.py +9 -0
  19. anthropic/types/beta/beta_content_block.py +2 -0
  20. anthropic/types/beta/beta_content_block_param.py +4 -0
  21. anthropic/types/beta/beta_document_block.py +26 -0
  22. anthropic/types/beta/beta_plain_text_source.py +15 -0
  23. anthropic/types/beta/beta_raw_content_block_start_event.py +2 -0
  24. anthropic/types/beta/beta_request_document_block_param.py +1 -1
  25. anthropic/types/beta/beta_server_tool_usage.py +3 -0
  26. anthropic/types/beta/beta_server_tool_use_block.py +1 -1
  27. anthropic/types/beta/beta_server_tool_use_block_param.py +3 -1
  28. anthropic/types/beta/beta_tool_union_param.py +2 -0
  29. anthropic/types/beta/beta_web_fetch_block.py +21 -0
  30. anthropic/types/beta/beta_web_fetch_block_param.py +22 -0
  31. anthropic/types/beta/beta_web_fetch_tool_20250910_param.py +46 -0
  32. anthropic/types/beta/beta_web_fetch_tool_result_block.py +20 -0
  33. anthropic/types/beta/beta_web_fetch_tool_result_block_param.py +25 -0
  34. anthropic/types/beta/beta_web_fetch_tool_result_error_block.py +14 -0
  35. anthropic/types/beta/beta_web_fetch_tool_result_error_block_param.py +15 -0
  36. anthropic/types/beta/beta_web_fetch_tool_result_error_code.py +16 -0
  37. anthropic/types/beta/message_count_tokens_params.py +2 -0
  38. anthropic/types/document_block_param.py +1 -1
  39. {anthropic-0.66.0.dist-info → anthropic-0.68.0.dist-info}/METADATA +51 -1
  40. {anthropic-0.66.0.dist-info → anthropic-0.68.0.dist-info}/RECORD +42 -25
  41. {anthropic-0.66.0.dist-info → anthropic-0.68.0.dist-info}/WHEEL +0 -0
  42. {anthropic-0.66.0.dist-info → anthropic-0.68.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,21 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from typing_extensions import Literal
5
+
6
+ from ..._models import BaseModel
7
+ from .beta_document_block import BetaDocumentBlock
8
+
9
+ __all__ = ["BetaWebFetchBlock"]
10
+
11
+
12
+ class BetaWebFetchBlock(BaseModel):
13
+ content: BetaDocumentBlock
14
+
15
+ retrieved_at: Optional[str] = None
16
+ """ISO 8601 timestamp when the content was retrieved"""
17
+
18
+ type: Literal["web_fetch_result"]
19
+
20
+ url: str
21
+ """Fetched content URL"""
@@ -0,0 +1,22 @@
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_request_document_block_param import BetaRequestDocumentBlockParam
9
+
10
+ __all__ = ["BetaWebFetchBlockParam"]
11
+
12
+
13
+ class BetaWebFetchBlockParam(TypedDict, total=False):
14
+ content: Required[BetaRequestDocumentBlockParam]
15
+
16
+ type: Required[Literal["web_fetch_result"]]
17
+
18
+ url: Required[str]
19
+ """Fetched content URL"""
20
+
21
+ retrieved_at: Optional[str]
22
+ """ISO 8601 timestamp when the content was retrieved"""
@@ -0,0 +1,46 @@
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 ..._types import SequenceNotStr
9
+ from .beta_citations_config_param import BetaCitationsConfigParam
10
+ from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam
11
+
12
+ __all__ = ["BetaWebFetchTool20250910Param"]
13
+
14
+
15
+ class BetaWebFetchTool20250910Param(TypedDict, total=False):
16
+ name: Required[Literal["web_fetch"]]
17
+ """Name of the tool.
18
+
19
+ This is how the tool will be called by the model and in `tool_use` blocks.
20
+ """
21
+
22
+ type: Required[Literal["web_fetch_20250910"]]
23
+
24
+ allowed_domains: Optional[SequenceNotStr[str]]
25
+ """List of domains to allow fetching from"""
26
+
27
+ blocked_domains: Optional[SequenceNotStr[str]]
28
+ """List of domains to block fetching from"""
29
+
30
+ cache_control: Optional[BetaCacheControlEphemeralParam]
31
+ """Create a cache control breakpoint at this content block."""
32
+
33
+ citations: Optional[BetaCitationsConfigParam]
34
+ """Citations configuration for fetched documents.
35
+
36
+ Citations are disabled by default.
37
+ """
38
+
39
+ max_content_tokens: Optional[int]
40
+ """Maximum number of tokens used by including web page text content in the context.
41
+
42
+ The limit is approximate and does not apply to binary content such as PDFs.
43
+ """
44
+
45
+ max_uses: Optional[int]
46
+ """Maximum number of times the tool can be used in the API request."""
@@ -0,0 +1,20 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Union
4
+ from typing_extensions import Literal, TypeAlias
5
+
6
+ from ..._models import BaseModel
7
+ from .beta_web_fetch_block import BetaWebFetchBlock
8
+ from .beta_web_fetch_tool_result_error_block import BetaWebFetchToolResultErrorBlock
9
+
10
+ __all__ = ["BetaWebFetchToolResultBlock", "Content"]
11
+
12
+ Content: TypeAlias = Union[BetaWebFetchToolResultErrorBlock, BetaWebFetchBlock]
13
+
14
+
15
+ class BetaWebFetchToolResultBlock(BaseModel):
16
+ content: Content
17
+
18
+ tool_use_id: str
19
+
20
+ type: Literal["web_fetch_tool_result"]
@@ -0,0 +1,25 @@
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 Union, Optional
6
+ from typing_extensions import Literal, Required, TypeAlias, TypedDict
7
+
8
+ from .beta_web_fetch_block_param import BetaWebFetchBlockParam
9
+ from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam
10
+ from .beta_web_fetch_tool_result_error_block_param import BetaWebFetchToolResultErrorBlockParam
11
+
12
+ __all__ = ["BetaWebFetchToolResultBlockParam", "Content"]
13
+
14
+ Content: TypeAlias = Union[BetaWebFetchToolResultErrorBlockParam, BetaWebFetchBlockParam]
15
+
16
+
17
+ class BetaWebFetchToolResultBlockParam(TypedDict, total=False):
18
+ content: Required[Content]
19
+
20
+ tool_use_id: Required[str]
21
+
22
+ type: Required[Literal["web_fetch_tool_result"]]
23
+
24
+ cache_control: Optional[BetaCacheControlEphemeralParam]
25
+ """Create a cache control breakpoint at this content block."""
@@ -0,0 +1,14 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing_extensions import Literal
4
+
5
+ from ..._models import BaseModel
6
+ from .beta_web_fetch_tool_result_error_code import BetaWebFetchToolResultErrorCode
7
+
8
+ __all__ = ["BetaWebFetchToolResultErrorBlock"]
9
+
10
+
11
+ class BetaWebFetchToolResultErrorBlock(BaseModel):
12
+ error_code: BetaWebFetchToolResultErrorCode
13
+
14
+ type: Literal["web_fetch_tool_result_error"]
@@ -0,0 +1,15 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import Literal, Required, TypedDict
6
+
7
+ from .beta_web_fetch_tool_result_error_code import BetaWebFetchToolResultErrorCode
8
+
9
+ __all__ = ["BetaWebFetchToolResultErrorBlockParam"]
10
+
11
+
12
+ class BetaWebFetchToolResultErrorBlockParam(TypedDict, total=False):
13
+ error_code: Required[BetaWebFetchToolResultErrorCode]
14
+
15
+ type: Required[Literal["web_fetch_tool_result_error"]]
@@ -0,0 +1,16 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing_extensions import Literal, TypeAlias
4
+
5
+ __all__ = ["BetaWebFetchToolResultErrorCode"]
6
+
7
+ BetaWebFetchToolResultErrorCode: TypeAlias = Literal[
8
+ "invalid_tool_input",
9
+ "url_too_long",
10
+ "url_not_allowed",
11
+ "url_not_accessible",
12
+ "unsupported_content_type",
13
+ "too_many_requests",
14
+ "max_uses_exceeded",
15
+ "unavailable",
16
+ ]
@@ -15,6 +15,7 @@ from .beta_tool_choice_param import BetaToolChoiceParam
15
15
  from .beta_thinking_config_param import BetaThinkingConfigParam
16
16
  from .beta_tool_bash_20241022_param import BetaToolBash20241022Param
17
17
  from .beta_tool_bash_20250124_param import BetaToolBash20250124Param
18
+ from .beta_web_fetch_tool_20250910_param import BetaWebFetchTool20250910Param
18
19
  from .beta_web_search_tool_20250305_param import BetaWebSearchTool20250305Param
19
20
  from .beta_tool_text_editor_20241022_param import BetaToolTextEditor20241022Param
20
21
  from .beta_tool_text_editor_20250124_param import BetaToolTextEditor20250124Param
@@ -230,4 +231,5 @@ Tool: TypeAlias = Union[
230
231
  BetaToolTextEditor20250429Param,
231
232
  BetaToolTextEditor20250728Param,
232
233
  BetaWebSearchTool20250305Param,
234
+ BetaWebFetchTool20250910Param,
233
235
  ]
@@ -25,7 +25,7 @@ class DocumentBlockParam(TypedDict, total=False):
25
25
  cache_control: Optional[CacheControlEphemeralParam]
26
26
  """Create a cache control breakpoint at this content block."""
27
27
 
28
- citations: CitationsConfigParam
28
+ citations: Optional[CitationsConfigParam]
29
29
 
30
30
  context: Optional[str]
31
31
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: anthropic
3
- Version: 0.66.0
3
+ Version: 0.68.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
@@ -24,6 +24,7 @@ Classifier: Typing :: Typed
24
24
  Requires-Python: >=3.8
25
25
  Requires-Dist: anyio<5,>=3.5.0
26
26
  Requires-Dist: distro<2,>=1.7.0
27
+ Requires-Dist: docstring-parser<1,>=0.15
27
28
  Requires-Dist: httpx<1,>=0.25.0
28
29
  Requires-Dist: jiter<1,>=0.4.0
29
30
  Requires-Dist: pydantic<3,>=1.9.0
@@ -208,6 +209,55 @@ async for event in stream:
208
209
  print(event.type)
209
210
  ```
210
211
 
212
+ ### Tool helpers
213
+
214
+ This library provides helper functions for defining and running tools as pure python functions, for example:
215
+
216
+ ```py
217
+ import json
218
+ import rich
219
+ from typing_extensions import Literal
220
+ from anthropic import Anthropic, beta_tool
221
+
222
+ client = Anthropic()
223
+
224
+
225
+ @beta_tool
226
+ def get_weather(location: str) -> str:
227
+ """Lookup the weather for a given city in either celsius or fahrenheit
228
+
229
+ Args:
230
+ location: The city and state, e.g. San Francisco, CA
231
+ Returns:
232
+ A dictionary containing the location, temperature, and weather condition.
233
+ """
234
+ # Here you would typically make an API call to a weather service
235
+ # For demonstration, we return a mock response
236
+ return json.dumps(
237
+ {
238
+ "location": location,
239
+ "temperature": "68°F",
240
+ "condition": "Sunny",
241
+ }
242
+ )
243
+
244
+
245
+ runner = client.beta.messages.tool_runner(
246
+ max_tokens=1024,
247
+ model="claude-sonnet-4-20250514",
248
+ tools=[get_weather],
249
+ messages=[
250
+ {"role": "user", "content": "What is the weather in SF?"},
251
+ ],
252
+ )
253
+ for message in runner:
254
+ rich.print(message)
255
+ ```
256
+
257
+ On every iteration, an API request will be made, if Claude wants to call one of the given tools then it will be automatically called, and the result will be returned directly to the model in the next iteration.
258
+
259
+ For more information see the [full docs](https://github.com/anthropics/anthropic-sdk-python/tree/main/tools.md).
260
+
211
261
  ### Streaming Helpers
212
262
 
213
263
  This library provides several conveniences for streaming messages, for example:
@@ -1,22 +1,24 @@
1
- anthropic/__init__.py,sha256=_3qHjlaUTyCm_xLr3HAcWvxMuKwKJtVRR1TkwU9WEYE,2845
2
- anthropic/_base_client.py,sha256=70y09CJlfxxJ_cxdWlh1fEQJdj5BptTL71-XYeYp01E,72837
1
+ anthropic/__init__.py,sha256=6JJg_MfwoX2NEIS05VHtFvK6O5obE1HllHeRfel6DB0,2935
2
+ anthropic/_base_client.py,sha256=VdxbcECVlP8hn1oS4vFBrU87W0a1iEw0eq0NpX8Q7mI,72849
3
3
  anthropic/_client.py,sha256=kZlulmKAcSG7WdzYCUdXFFfATn5ZP1PO7gHQbqAe2Dc,22827
4
- anthropic/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
4
+ anthropic/_compat.py,sha256=DQBVORjFb33zch24jzkhM14msvnzY7mmSmgDLaVFUM8,6562
5
5
  anthropic/_constants.py,sha256=wADeUqY3lsseF0L6jIen-PexfQ06FOtf2dVESXDM828,885
6
6
  anthropic/_exceptions.py,sha256=bkSqVWxtRdRb31H7MIvtxfh5mo_Xf7Ib3nPTOmAOmGs,4073
7
7
  anthropic/_files.py,sha256=_Ux6v6nAsxK4e_4efdt1DiIOZ0hGmlR2ZKKcVfJIfGU,3623
8
8
  anthropic/_legacy_response.py,sha256=QsroQ_9LHI8tSoPEvbIXXB44SvLJXaXQX7khjZpnqfE,17235
9
- anthropic/_models.py,sha256=gazGxmyphT7CHS3bFVhdkhS0rsx2iyVVcpXkN4TXtHc,31389
9
+ anthropic/_models.py,sha256=wUXeougIoFGSKQr_XIcmamSHeupO6R7ZaQnFZC-hEl8,31957
10
10
  anthropic/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
11
11
  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=PwAzwWTKp9b08FTllhWjQPX_-8CLXWh6U-9atpUYHxg,7398
15
- anthropic/_version.py,sha256=kUZAIOAxkBJpV7HJ8PedCJByxx4XsYZr9FNnhGqGyk4,162
15
+ anthropic/_version.py,sha256=XBCqVoiIx9RiTN5BgCAlMHcs9_p4oh39-eXsN2hTYCw,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
19
- anthropic/_utils/__init__.py,sha256=QMTNChOzCs5KF_NTxyb5XpFyyfmHiQASrFovz3dHmK8,2104
19
+ anthropic/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
20
+ anthropic/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
21
+ anthropic/_utils/_datetime_parse.py,sha256=bABTs0Bc6rabdFvnIwXjEhWL15TcRgWZ_6XGTqN8xUk,4204
20
22
  anthropic/_utils/_httpx.py,sha256=buTjMcUfp_KBTwIPStAD0mx1PreJIHn10if9y__wBeY,2094
21
23
  anthropic/_utils/_logs.py,sha256=R8FqzEnxoLq-BLAzMROQmAHOKJussAkbd4eZL5xBkec,783
22
24
  anthropic/_utils/_proxy.py,sha256=aglnj2yBTDyGX9Akk2crZHrl10oqRmceUy2Zp008XEs,1975
@@ -24,9 +26,9 @@ anthropic/_utils/_reflection.py,sha256=ZmGkIgT_PuwedyNBrrKGbxoWtkpytJNU1uU4QHnmE
24
26
  anthropic/_utils/_resources_proxy.py,sha256=Y6WaTfDzBlt-GXVlTQLlIjpkSZZ8fRlMzXuRBh64CrA,604
25
27
  anthropic/_utils/_streams.py,sha256=SMC90diFFecpEg_zgDRVbdR3hSEIgVVij4taD-noMLM,289
26
28
  anthropic/_utils/_sync.py,sha256=TpGLrrhRNWTJtODNE6Fup3_k7zrWm1j2RlirzBwre-0,2862
27
- anthropic/_utils/_transform.py,sha256=Owrq-VLQMnGwPwOYHRLnnRTZTaGn1DJYSD2YROB23CU,15894
28
- anthropic/_utils/_typing.py,sha256=UAoN7JEd8A-T32Cju-dL5EyqWKO_ktG4VDQ3KOhzqG0,4787
29
- anthropic/_utils/_utils.py,sha256=ts4CiiuNpFiGB6YMdkQRh2SZvYvsl7mAF-JWHCcLDf4,12312
29
+ anthropic/_utils/_transform.py,sha256=i_U4R82RtQJtKKCriwFqmfcWjtwmmsiiF1AEXKQ_OPo,15957
30
+ anthropic/_utils/_typing.py,sha256=N_5PPuFNsaygbtA_npZd98SVN1LQQvFTKL6bkWPBZGU,4786
31
+ anthropic/_utils/_utils.py,sha256=D2QE7mVPNEJzaB50u8rvDQAUDS5jx7JoeFD7zdj-TeI,12231
30
32
  anthropic/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
31
33
  anthropic/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
34
  anthropic/lib/_extras/__init__.py,sha256=a9HX69-V9nROM4Em9a4y-xZTgiLE2jdlCyC6ZKtxfyY,53
@@ -44,6 +46,9 @@ anthropic/lib/streaming/_beta_messages.py,sha256=swDeDwTbhx33G_YjwTkusbij6CerLuW
44
46
  anthropic/lib/streaming/_beta_types.py,sha256=fny8XN85afEG6of84YuaScr3U8UeMCJxqyfuTePHNbM,2131
45
47
  anthropic/lib/streaming/_messages.py,sha256=OSV9sjb8MLThSywEFXQV9OchcNXAE2KxDacVpJbkNRM,16958
46
48
  anthropic/lib/streaming/_types.py,sha256=CrR4948IWgUF7L9O0ase2QwbpiQ1JeiYXrRyVi74-Bw,2086
49
+ anthropic/lib/tools/__init__.py,sha256=ui3gBw2-vQsl_4pKjf3O5kfUYpGATjQ6H4MPLopy0h4,525
50
+ anthropic/lib/tools/_beta_functions.py,sha256=eje6jXzDZa0azRevFF6TP_YQBo7FX3DvY4wRT5nUv7c,9738
51
+ anthropic/lib/tools/_beta_runner.py,sha256=Lcf1bltqrLXj6niPqPaFYCaFFRWKqRHbfINtbCAqjvY,15470
47
52
  anthropic/lib/vertex/__init__.py,sha256=A8vuK1qVPtmKr1_LQgPuDRVA6I4xm_ye2aPdAa4yGsI,102
48
53
  anthropic/lib/vertex/_auth.py,sha256=Kyt_hbUc-DPlkvds4__OLR8FLPpoDas6bXhZTECxO3Y,1644
49
54
  anthropic/lib/vertex/_beta.py,sha256=8kXsUUIGstf6dZfiZtm6s9OWEueuSgra8dPvkaUacy4,3323
@@ -58,7 +63,7 @@ anthropic/resources/beta/files.py,sha256=q4V7iBnUDflYrG31oNPqY9ycXTF5oryMMBmrR7i
58
63
  anthropic/resources/beta/models.py,sha256=OsXRcsEHoNuj1VjhbFLeOYgE35DnUO8m4hTPF6zcs0Q,12594
59
64
  anthropic/resources/beta/messages/__init__.py,sha256=7ZO4hB7hPBhXQja7gMzkwLXQVDlyap4JsihpA0UKZjk,849
60
65
  anthropic/resources/beta/messages/batches.py,sha256=6sbFpFCCRC-qN37-5n7lO3BzGXKGVaXhPv9y7Daj0-0,35990
61
- anthropic/resources/beta/messages/messages.py,sha256=OlRVKosYcpFW-zmrrZcwDRpKNI50GuB9pnahEEBx_YU,115891
66
+ anthropic/resources/beta/messages/messages.py,sha256=lgtY2_Pvgca5IXEYz3OhwSB7GPnnwCsv5Cbe38m_dSQ,133367
62
67
  anthropic/resources/messages/__init__.py,sha256=iOSBh4D7NTXqe7RNhw9HZCiFmJvDfIgVFnjaF7r27YU,897
63
68
  anthropic/resources/messages/batches.py,sha256=w_bNgg_NV4rFQkDeixJtRokimPIT3OVpimr8D8_7v5Y,28590
64
69
  anthropic/resources/messages/messages.py,sha256=PBhZL3iuG-A0WhNcawR3pRtgL8fR8qSmAYsx48Mksi8,109831
@@ -100,7 +105,7 @@ anthropic/types/content_block_source_content_param.py,sha256=S7jYbHw_FhL4c1pNW-N
100
105
  anthropic/types/content_block_source_param.py,sha256=Qs-wmu5DTlECLIuyTi-Ih8YrMQtyu43rKAZV1WD6--8,509
101
106
  anthropic/types/content_block_start_event.py,sha256=KIKjsrqrkrOzOlZgjbWS24Ceo2_8-5yS8WtUxtDoEbw,310
102
107
  anthropic/types/content_block_stop_event.py,sha256=JLfjHeVxDa9m1R1Pp3pjSjTLiaA6MHBi0tvyQFnfgDw,304
103
- anthropic/types/document_block_param.py,sha256=IiFFBmvMZq85VAdcucrxjfK-sGTzYtgnJ6fvzrzEsRA,1084
108
+ anthropic/types/document_block_param.py,sha256=ATGjDsb0s4A3ExJaljj5kCQh9utjygv1IKy6grGwUcM,1094
104
109
  anthropic/types/image_block_param.py,sha256=qIh7kE3IyA4wrd4KNhmFmpv2fpOeJr1Dp-WNJLjQVx0,770
105
110
  anthropic/types/input_json_delta.py,sha256=s-DsbG4jVex1nYxAXNOeraCqGpbRidCbRqBR_Th2YYI,336
106
111
  anthropic/types/message.py,sha256=Uy4ZsxH0RNE4u2cBrVjsgeQyHg7To9yHBvNBTZk6MqA,3530
@@ -173,9 +178,10 @@ anthropic/types/web_search_tool_result_block_content.py,sha256=Ev_QL9KMO7emKGcTd
173
178
  anthropic/types/web_search_tool_result_block_param.py,sha256=BBYP395H7a_6I2874EDwxTcx6imeKPgrFL0d3aa2z_8,769
174
179
  anthropic/types/web_search_tool_result_block_param_content_param.py,sha256=YIBYcDI1GSlrI-4QBugJ_2YLpkofR7Da3vOwVDU44lo,542
175
180
  anthropic/types/web_search_tool_result_error.py,sha256=3WZaS3vYkAepbsa8yEmVNkUOYcpOHonaKfHBm1nFpr8,415
176
- anthropic/types/beta/__init__.py,sha256=-essHkiV6eOfHmYPE_hELzs6x72u87uscSruSx58DsE,15073
181
+ anthropic/types/beta/__init__.py,sha256=5d89bG-xT9pE6MFpRIAN1Xp35vMubcY2OGCd1MEQqz4,16262
177
182
  anthropic/types/beta/beta_base64_image_source_param.py,sha256=njrnNCJcJyLt9JJQcidX3wuG9kpY_F5xWjb3DRO3tJQ,740
178
183
  anthropic/types/beta/beta_base64_pdf_block_param.py,sha256=aYzXqHuaoyXgNNIRnVo0YdyVT3l0rdpT9UoN4CmAYlI,257
184
+ anthropic/types/beta/beta_base64_pdf_source.py,sha256=RbkrF6vfc4tMgntlk3U7jmrdpa876HxO8iDa28szsKA,321
179
185
  anthropic/types/beta/beta_base64_pdf_source_param.py,sha256=EeDrTSoJ0TtH2YfimFHtvwMURQ0rbStvrAEVevCnkSs,699
180
186
  anthropic/types/beta/beta_bash_code_execution_output_block.py,sha256=3HnSSH_XDKQKbp1Twg_szNHXVxoeVX6EwbLJ_V2nqEg,326
181
187
  anthropic/types/beta/beta_bash_code_execution_output_block_param.py,sha256=MvZUE4MZdIccAf5_QmLKsvHnocVr-o8iqdrXvQ3idU8,392
@@ -189,6 +195,7 @@ anthropic/types/beta/beta_cache_control_ephemeral_param.py,sha256=l_knz_Mf0KnXkh
189
195
  anthropic/types/beta/beta_cache_creation.py,sha256=zqVV6J8sxETdrrOLmPQVMAsxnLptcz-ESpHeJcXrzpo,416
190
196
  anthropic/types/beta/beta_citation_char_location.py,sha256=GoAYqL-EFKVJyGSpBR6AmziTRB320dUM-1lR3j17iwQ,482
191
197
  anthropic/types/beta/beta_citation_char_location_param.py,sha256=5Q9mepqDKAnm5BM0bMrcqJP44Pwfqw3ABDIOXW2iTCk,546
198
+ anthropic/types/beta/beta_citation_config.py,sha256=S59joae15tW789z4lmQ_KsxzUYnuWDX1VArKvNWNGi0,211
192
199
  anthropic/types/beta/beta_citation_content_block_location.py,sha256=ZZWGGR0zKA05fzuouWhxNG9RFzq3BCLU5zwbTMQtjyw,509
193
200
  anthropic/types/beta/beta_citation_content_block_location_param.py,sha256=egBVOEPTGHmlACdjQC2msxlrxUyEDE5a8tuDVORQ-Po,573
194
201
  anthropic/types/beta/beta_citation_page_location.py,sha256=YPlI6R0OfVek8wT88_DX-2_OtpXE7dRoZ3TimQ9P3Jk,484
@@ -215,10 +222,11 @@ anthropic/types/beta/beta_code_execution_tool_result_error_param.py,sha256=rTdT_
215
222
  anthropic/types/beta/beta_container.py,sha256=YhzjG6KsxwareMzDRnn9g8wobw_FMYsYWrFR16h0V54,367
216
223
  anthropic/types/beta/beta_container_upload_block.py,sha256=T-W7H8tlzin7_b_A6-hHxBBi9qJk0H7M-2JK_pnXyXE,300
217
224
  anthropic/types/beta/beta_container_upload_block_param.py,sha256=rqPN69iuHa6elrNfy-x_pMrm-xOLh_PTmqBrFhKzbhA,602
218
- anthropic/types/beta/beta_content_block.py,sha256=7OfQLCW857sVlLgRKEIO3cPkEHtvbsBZTJxdLtYcIgQ,1569
219
- anthropic/types/beta/beta_content_block_param.py,sha256=OARMmfH5SgMEVGndRSm5FzvmhG31tfgSgJ1I4zEB9Vs,2066
225
+ anthropic/types/beta/beta_content_block.py,sha256=vmZXOq7Frx8xAYVV5eDC9FbNq-wyL8C-J6Tlg0yp7a8,1680
226
+ anthropic/types/beta/beta_content_block_param.py,sha256=87vnYL2-j7vOtT-dldIn0XNdVkhwWY_R_u64cmGZaQc,2260
220
227
  anthropic/types/beta/beta_content_block_source_content_param.py,sha256=IxeRBqzUPEC35VXHr4xHkQdpMw_A5hqSnBwyixn9v7E,445
221
228
  anthropic/types/beta/beta_content_block_source_param.py,sha256=baurrUKAlsFMqHnhtEN_1dGYC7b1vakKpdLiX87pFhU,530
229
+ anthropic/types/beta/beta_document_block.py,sha256=lehaAYYdGHJay8F_J-GfMLOYWAe0G8gVWfeixA5XH2s,834
222
230
  anthropic/types/beta/beta_file_document_source_param.py,sha256=a5_eicJChOrOoBr7MIVj5hA-MZFs1syo5Oi8W_Jv1_4,350
223
231
  anthropic/types/beta/beta_file_image_source_param.py,sha256=5ogaJ3H_NNz2M1Qa5XWyB2uUf-0HHHLkwYXJuA3kOwQ,344
224
232
  anthropic/types/beta/beta_image_block_param.py,sha256=CkS_-Ft9RuiIEdsUNXUFMSphVYD2RCxJGSU_2C4ZGyk,910
@@ -232,10 +240,11 @@ anthropic/types/beta/beta_message_param.py,sha256=jelI5bL_5DFMW5-aKDpBf1KsK-CvIZ
232
240
  anthropic/types/beta/beta_message_tokens_count.py,sha256=KFm3BISAW3trg014_5cKrkMJ_WRLs15yQFlCJle_Vf8,338
233
241
  anthropic/types/beta/beta_metadata_param.py,sha256=julUtAFfgnCXSt0sN8qQ-_GuhJvpXbQyqlPhyzE8jmQ,602
234
242
  anthropic/types/beta/beta_model_info.py,sha256=hFbhNT1THKUqBKYEB0QvtQ1UBVgcoO_dtXFUPbuWqAA,655
243
+ anthropic/types/beta/beta_plain_text_source.py,sha256=u3XpMPojTxn-_LvFdYYMLc_b8WI2ggIXdoZ4pDK4Q-Y,314
235
244
  anthropic/types/beta/beta_plain_text_source_param.py,sha256=5VW_apR2n3-G6KmDq6b58Me7kGTcN2IAHAwsGbPrlVQ,390
236
245
  anthropic/types/beta/beta_raw_content_block_delta.py,sha256=W9lWCYhkAI-KWMiQs42h8AbwryMo9HXw4mNnrmv7Krg,690
237
246
  anthropic/types/beta/beta_raw_content_block_delta_event.py,sha256=-hn4oaYfZHCWJ5mUWeAHDM9h_XiPnLJIROqhztkiDM4,415
238
- anthropic/types/beta/beta_raw_content_block_start_event.py,sha256=0OZuBY9hFvqqivaVEgXKhSm_CT2BAWX3-mPAbHCnr5E,1839
247
+ anthropic/types/beta/beta_raw_content_block_start_event.py,sha256=2UDrpyyC8V6DJADY1oI1P6kHzMS6drucGn05U96ZX3c,1950
239
248
  anthropic/types/beta/beta_raw_content_block_stop_event.py,sha256=JcCrM004eYBjmsbFQ_0J-vAngAPCKlkdv30ylh7fi70,308
240
249
  anthropic/types/beta/beta_raw_message_delta_event.py,sha256=o4gGROi2CmzPQhZ1ZVlXYQWWzDbg9YqbjgCv_Jdpat4,1505
241
250
  anthropic/types/beta/beta_raw_message_start_event.py,sha256=v7dcNblqSy9jD65ah1LvvNWD71IRBbYMcIG0L3SyXkA,343
@@ -243,14 +252,14 @@ anthropic/types/beta/beta_raw_message_stop_event.py,sha256=Xyo-UPOLgjOTCYA8kYZoK
243
252
  anthropic/types/beta/beta_raw_message_stream_event.py,sha256=8Aq-QAF0Fk6esNiI_L44Mbr9SMaIFqNfi8p2NF6aO80,999
244
253
  anthropic/types/beta/beta_redacted_thinking_block.py,sha256=DVNuN59cCWpVBFWTYvE5fVPwBEb1LRF27d-BHVgApJI,300
245
254
  anthropic/types/beta/beta_redacted_thinking_block_param.py,sha256=BTpab5mqgUtlSgtXTPap0x8HpqVAyTvLoB3pf6o1TqI,366
246
- anthropic/types/beta/beta_request_document_block_param.py,sha256=deG7Q4pEfvug7SSDymWF-VkWypcXxFfOtzmlG20BgH8,1309
255
+ anthropic/types/beta/beta_request_document_block_param.py,sha256=lEIWndNXBXQSANKa6KL9BgC6T7MGHfq43z0ObvDqw6k,1319
247
256
  anthropic/types/beta/beta_request_mcp_server_tool_configuration_param.py,sha256=CFIzeyT9ni1lBMCUzIwkyp8D_6ry9MmWLaPhMQByVMA,441
248
257
  anthropic/types/beta/beta_request_mcp_server_url_definition_param.py,sha256=j8N0ixvGHFheT2KqqI64HKufHmVST9VcJgShtlkPzUw,644
249
258
  anthropic/types/beta/beta_request_mcp_tool_result_block_param.py,sha256=xK9SY8bmetn-LWN4hks8KDbeh2WiF0pttcCXsB99v84,761
250
259
  anthropic/types/beta/beta_search_result_block_param.py,sha256=uqzKu_6YVDRe6rIbVSmfvQE7YleyRfa_UncwI2k3cuI,842
251
- anthropic/types/beta/beta_server_tool_usage.py,sha256=2QfadWgy4RRhlsFLwZkoPzRssC_D-u0Fm79TF5Y0ouY,274
252
- anthropic/types/beta/beta_server_tool_use_block.py,sha256=t1hk-lMwjpDosGvIXmKweIB7S7nvF_TWJ4F85T9PVwA,413
253
- anthropic/types/beta/beta_server_tool_use_block_param.py,sha256=O-PVvzL0KfHyjEcleHyoAdS8ZnKL-ieXth7R85DFPoI,735
260
+ anthropic/types/beta/beta_server_tool_usage.py,sha256=StokZ2PZBQ5r5X8ri71h-eZsFHqLdT0138Tafqy2az4,352
261
+ anthropic/types/beta/beta_server_tool_use_block.py,sha256=w1TMUg0APiwSZqiUkXd137Fg1SGr9xIX90qvMrZF6Jg,426
262
+ anthropic/types/beta/beta_server_tool_use_block_param.py,sha256=yafWnsAG5jz7NzqcfWAnLtH86p-nNejxW1IUQmmnIJk,762
254
263
  anthropic/types/beta/beta_signature_delta.py,sha256=LGjB7AM6uCcjn5diCtgzSPGMssf-hfS-JQbvtTmY2-I,289
255
264
  anthropic/types/beta/beta_stop_reason.py,sha256=K128DdKu6vMjONi6uAqKpbdoOLqUYRoOapg8jZV0Z0E,283
256
265
  anthropic/types/beta/beta_text_block.py,sha256=irciVXypUcB5drTF5p0btH1QzB3ZlfEXq7XxjF1cs_U,684
@@ -289,12 +298,20 @@ anthropic/types/beta/beta_tool_text_editor_20241022_param.py,sha256=z4plQ-egA85e
289
298
  anthropic/types/beta/beta_tool_text_editor_20250124_param.py,sha256=PqRpXlK9TqHPOcF5SRkGSeWc793QMNUztuIQKoGHyoI,746
290
299
  anthropic/types/beta/beta_tool_text_editor_20250429_param.py,sha256=2skxGp7C7fwrecE2dS22FPRXhxRF8VMQS4K5cNT-fbA,755
291
300
  anthropic/types/beta/beta_tool_text_editor_20250728_param.py,sha256=Y9Kx_C2XZQ0BmXoOUEunVJeb7FnGTWH9egNc-S9lzqI,927
292
- anthropic/types/beta/beta_tool_union_param.py,sha256=1dHhf5cu3cGhXtn8DmHlIwQv94ML3A25MhhZF4tXybM,1619
301
+ anthropic/types/beta/beta_tool_union_param.py,sha256=wRhleqW64OX__NaNFroxejvPFnM4IoSNm8g9Oc2YhnA,1732
293
302
  anthropic/types/beta/beta_tool_use_block.py,sha256=y1Y9ovht2t-BlJDqEOi_wk2b2XAIb2J_gkyIdzZM8fY,305
294
303
  anthropic/types/beta/beta_tool_use_block_param.py,sha256=eZvSxb6yvh_eLY0SSoN0pFSGGLxU4yJEv3nyMYZ7zBA,627
295
304
  anthropic/types/beta/beta_url_image_source_param.py,sha256=pquhkw8b13TbwhXA6_dMkPP-7vxYfbbXbjV_BVx_0ZY,337
296
305
  anthropic/types/beta/beta_url_pdf_source_param.py,sha256=Ox2U0GM60MJgQBec8NKPw49uZz9DgR8mhxLCZT7RIVk,333
297
306
  anthropic/types/beta/beta_usage.py,sha256=H0PAOPwTs8V2myo89yCS9vG78hCIv39ooGza39N-nB8,1088
307
+ anthropic/types/beta/beta_web_fetch_block.py,sha256=zL3A3YWcuTPndBPCXkS2QnVN8dSA5x93x_qoYfWvYw4,523
308
+ anthropic/types/beta/beta_web_fetch_block_param.py,sha256=6q6BR5Mjbknd-S3fIr5FkDEfXZt8CfnlpXB1XviNhz4,631
309
+ anthropic/types/beta/beta_web_fetch_tool_20250910_param.py,sha256=DhrTmvRb_4w7Pr8BBP-myzHdT2jdBxi3nJ55CMH8okk,1509
310
+ anthropic/types/beta/beta_web_fetch_tool_result_block.py,sha256=2xU16Q2_n6Zq98vlv1YxTpTZk8n7UZS_vMKslJywO8o,602
311
+ anthropic/types/beta/beta_web_fetch_tool_result_block_param.py,sha256=mimTpFFFtDZWDPrG9e5A-2KoEfZblKyqMla7e-zzr6M,928
312
+ anthropic/types/beta/beta_web_fetch_tool_result_error_block.py,sha256=JWP7NwNHIvw0K-OJ2TKWsIWBFV0HMAkdeu0CzA-cQXU,441
313
+ anthropic/types/beta/beta_web_fetch_tool_result_error_block_param.py,sha256=X9uEu6D34gbMrBewbIo66cd0FOnGzXNVr0w5sfgShoQ,508
314
+ anthropic/types/beta/beta_web_fetch_tool_result_error_code.py,sha256=-kZjKVIUcmPnv15dDbYbs0Hr1xqj4X2LVW1V22A4oV0,436
298
315
  anthropic/types/beta/beta_web_search_result_block.py,sha256=8k1ltqF03HVb440Nvms4fRD1xKZmvbrFG-BHeot-SGU,405
299
316
  anthropic/types/beta/beta_web_search_result_block_param.py,sha256=pAKcEO3RC5clujQoGSAJOO2o1gpfsYzaebsZ6aIMOfk,484
300
317
  anthropic/types/beta/beta_web_search_tool_20250305_param.py,sha256=PxvB_MdxWD1XEa1YH-Jmmse9cJXjJR4rNt2ZhpT0n20,1851
@@ -309,7 +326,7 @@ anthropic/types/beta/deleted_file.py,sha256=VwcPcmaViwLDirEQ6zIYk570vhCbHmUk4Lj6
309
326
  anthropic/types/beta/file_list_params.py,sha256=kujdXupGnzdCtj0zTKyL6M5pgu1oXga64DXZya9uwsA,974
310
327
  anthropic/types/beta/file_metadata.py,sha256=SzNnobYc5JO233_12Jr5IDnd7SiDE8XHx4PsvyjuaDY,851
311
328
  anthropic/types/beta/file_upload_params.py,sha256=CvW5PpxpP2uyL5iIEWBi0MsNiNyTsrWm4I_5A2Qy__c,631
312
- anthropic/types/beta/message_count_tokens_params.py,sha256=YGOmzNJRPLI1jiKRiMLSjTWVoQysD1xlM-1qmKh7d_M,8614
329
+ anthropic/types/beta/message_count_tokens_params.py,sha256=Uuom_SmOaDyoEv8QwFsc9av4oO9eOkKn2SfLGJDeMGY,8727
313
330
  anthropic/types/beta/message_create_params.py,sha256=aJy6wb5qCYhIfgFg9NQREQDxg8cwoOW5KAam6Vnawro,10821
314
331
  anthropic/types/beta/model_list_params.py,sha256=CqxSV6PeWqZOh9D9D1qsJeC6fsWLFQmvY1Q8G1q4Gzo,976
315
332
  anthropic/types/beta/messages/__init__.py,sha256=6yumvCsY9IXU9jZW1yIrXXGAXzXpByx2Rlc8aWHdQKQ,1202
@@ -348,7 +365,7 @@ anthropic/types/shared/not_found_error.py,sha256=R6OsCvAmsf_SB2TwoX6E63o049qZMaA
348
365
  anthropic/types/shared/overloaded_error.py,sha256=PlyhHt3wmzcnynSfkWbfP4XkLoWsPa9B39V3CyAdgx8,282
349
366
  anthropic/types/shared/permission_error.py,sha256=nuyxtLXOiEkYEbFRXiAWjxU6XtdyjkAaXQ2NgMB3pjw,282
350
367
  anthropic/types/shared/rate_limit_error.py,sha256=eYULATjXa6KKdqeBauest7RzuN-bhGsY5BWwH9eYv4c,280
351
- anthropic-0.66.0.dist-info/METADATA,sha256=fDkA3IeEzPoi_eumFDVRVEZsiWQJGaojKdJbEDSyZzU,27053
352
- anthropic-0.66.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
353
- anthropic-0.66.0.dist-info/licenses/LICENSE,sha256=i_lphP-Lz65-SMrnalKeiiUxe6ngKr9_08xk_flWV6Y,1056
354
- anthropic-0.66.0.dist-info/RECORD,,
368
+ anthropic-0.68.0.dist-info/METADATA,sha256=v27Ud_PHScKrCxi_FuUQLPA98LOh21l1vzQxP50CEgQ,28528
369
+ anthropic-0.68.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
370
+ anthropic-0.68.0.dist-info/licenses/LICENSE,sha256=i_lphP-Lz65-SMrnalKeiiUxe6ngKr9_08xk_flWV6Y,1056
371
+ anthropic-0.68.0.dist-info/RECORD,,