anthropic 0.69.0__py3-none-any.whl → 0.71.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/lib/__init__.py +1 -0
- anthropic/lib/_files.py +42 -0
- anthropic/pagination.py +117 -1
- anthropic/resources/beta/__init__.py +14 -0
- anthropic/resources/beta/beta.py +32 -0
- anthropic/resources/beta/messages/messages.py +140 -122
- anthropic/resources/beta/skills/__init__.py +33 -0
- anthropic/resources/beta/skills/skills.py +680 -0
- anthropic/resources/beta/skills/versions.py +658 -0
- anthropic/resources/completions.py +36 -42
- anthropic/resources/messages/messages.py +90 -96
- anthropic/types/anthropic_beta_param.py +3 -0
- anthropic/types/beta/__init__.py +9 -0
- anthropic/types/beta/beta_container.py +5 -0
- anthropic/types/beta/beta_container_params.py +18 -0
- anthropic/types/beta/beta_message.py +4 -1
- anthropic/types/beta/beta_raw_message_delta_event.py +1 -1
- anthropic/types/beta/beta_skill.py +18 -0
- anthropic/types/beta/beta_skill_params.py +18 -0
- anthropic/types/beta/beta_thinking_config_enabled_param.py +1 -1
- anthropic/types/beta/message_count_tokens_params.py +14 -10
- anthropic/types/beta/message_create_params.py +25 -19
- anthropic/types/beta/messages/batch_create_params.py +1 -0
- anthropic/types/beta/skill_create_params.py +31 -0
- anthropic/types/beta/skill_create_response.py +49 -0
- anthropic/types/beta/skill_delete_response.py +19 -0
- anthropic/types/beta/skill_list_params.py +38 -0
- anthropic/types/beta/skill_list_response.py +49 -0
- anthropic/types/beta/skill_retrieve_response.py +49 -0
- anthropic/types/beta/skills/__init__.py +10 -0
- anthropic/types/beta/skills/version_create_params.py +24 -0
- anthropic/types/beta/skills/version_create_response.py +49 -0
- anthropic/types/beta/skills/version_delete_response.py +19 -0
- anthropic/types/beta/skills/version_list_params.py +25 -0
- anthropic/types/beta/skills/version_list_response.py +49 -0
- anthropic/types/beta/skills/version_retrieve_response.py +49 -0
- anthropic/types/completion_create_params.py +5 -6
- anthropic/types/message_count_tokens_params.py +9 -9
- anthropic/types/message_create_params.py +13 -15
- anthropic/types/messages/batch_create_params.py +1 -0
- anthropic/types/model.py +2 -0
- anthropic/types/model_param.py +2 -0
- anthropic/types/stop_reason.py +1 -3
- anthropic/types/thinking_config_enabled_param.py +1 -1
- {anthropic-0.69.0.dist-info → anthropic-0.71.0.dist-info}/METADATA +1 -1
- {anthropic-0.69.0.dist-info → anthropic-0.71.0.dist-info}/RECORD +49 -29
- {anthropic-0.69.0.dist-info → anthropic-0.71.0.dist-info}/WHEEL +0 -0
- {anthropic-0.69.0.dist-info → anthropic-0.71.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -71,10 +71,10 @@ class Completions(SyncAPIResource):
|
|
|
71
71
|
The Text Completions API is a legacy API.
|
|
72
72
|
|
|
73
73
|
We recommend using the
|
|
74
|
-
[Messages API](https://docs.
|
|
74
|
+
[Messages API](https://docs.claude.com/en/api/messages) going forward.
|
|
75
75
|
|
|
76
76
|
Future models and features will not be compatible with Text Completions. See our
|
|
77
|
-
[migration guide](https://docs.
|
|
77
|
+
[migration guide](https://docs.claude.com/en/api/migrating-from-text-completions-to-messages)
|
|
78
78
|
for guidance in migrating from Text Completions to Messages.
|
|
79
79
|
|
|
80
80
|
Args:
|
|
@@ -96,10 +96,9 @@ class Completions(SyncAPIResource):
|
|
|
96
96
|
"\n\nHuman: {userQuestion}\n\nAssistant:"
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
-
See [prompt validation](https://docs.
|
|
100
|
-
our guide to
|
|
101
|
-
|
|
102
|
-
details.
|
|
99
|
+
See [prompt validation](https://docs.claude.com/en/api/prompt-validation) and
|
|
100
|
+
our guide to [prompt design](https://docs.claude.com/en/docs/intro-to-prompting)
|
|
101
|
+
for more details.
|
|
103
102
|
|
|
104
103
|
metadata: An object describing metadata about the request.
|
|
105
104
|
|
|
@@ -111,7 +110,7 @@ class Completions(SyncAPIResource):
|
|
|
111
110
|
|
|
112
111
|
stream: Whether to incrementally stream the response using server-sent events.
|
|
113
112
|
|
|
114
|
-
See [streaming](https://docs.
|
|
113
|
+
See [streaming](https://docs.claude.com/en/api/streaming) for details.
|
|
115
114
|
|
|
116
115
|
temperature: Amount of randomness injected into the response.
|
|
117
116
|
|
|
@@ -178,10 +177,10 @@ class Completions(SyncAPIResource):
|
|
|
178
177
|
The Text Completions API is a legacy API.
|
|
179
178
|
|
|
180
179
|
We recommend using the
|
|
181
|
-
[Messages API](https://docs.
|
|
180
|
+
[Messages API](https://docs.claude.com/en/api/messages) going forward.
|
|
182
181
|
|
|
183
182
|
Future models and features will not be compatible with Text Completions. See our
|
|
184
|
-
[migration guide](https://docs.
|
|
183
|
+
[migration guide](https://docs.claude.com/en/api/migrating-from-text-completions-to-messages)
|
|
185
184
|
for guidance in migrating from Text Completions to Messages.
|
|
186
185
|
|
|
187
186
|
Args:
|
|
@@ -203,14 +202,13 @@ class Completions(SyncAPIResource):
|
|
|
203
202
|
"\n\nHuman: {userQuestion}\n\nAssistant:"
|
|
204
203
|
```
|
|
205
204
|
|
|
206
|
-
See [prompt validation](https://docs.
|
|
207
|
-
our guide to
|
|
208
|
-
|
|
209
|
-
details.
|
|
205
|
+
See [prompt validation](https://docs.claude.com/en/api/prompt-validation) and
|
|
206
|
+
our guide to [prompt design](https://docs.claude.com/en/docs/intro-to-prompting)
|
|
207
|
+
for more details.
|
|
210
208
|
|
|
211
209
|
stream: Whether to incrementally stream the response using server-sent events.
|
|
212
210
|
|
|
213
|
-
See [streaming](https://docs.
|
|
211
|
+
See [streaming](https://docs.claude.com/en/api/streaming) for details.
|
|
214
212
|
|
|
215
213
|
metadata: An object describing metadata about the request.
|
|
216
214
|
|
|
@@ -285,10 +283,10 @@ class Completions(SyncAPIResource):
|
|
|
285
283
|
The Text Completions API is a legacy API.
|
|
286
284
|
|
|
287
285
|
We recommend using the
|
|
288
|
-
[Messages API](https://docs.
|
|
286
|
+
[Messages API](https://docs.claude.com/en/api/messages) going forward.
|
|
289
287
|
|
|
290
288
|
Future models and features will not be compatible with Text Completions. See our
|
|
291
|
-
[migration guide](https://docs.
|
|
289
|
+
[migration guide](https://docs.claude.com/en/api/migrating-from-text-completions-to-messages)
|
|
292
290
|
for guidance in migrating from Text Completions to Messages.
|
|
293
291
|
|
|
294
292
|
Args:
|
|
@@ -310,14 +308,13 @@ class Completions(SyncAPIResource):
|
|
|
310
308
|
"\n\nHuman: {userQuestion}\n\nAssistant:"
|
|
311
309
|
```
|
|
312
310
|
|
|
313
|
-
See [prompt validation](https://docs.
|
|
314
|
-
our guide to
|
|
315
|
-
|
|
316
|
-
details.
|
|
311
|
+
See [prompt validation](https://docs.claude.com/en/api/prompt-validation) and
|
|
312
|
+
our guide to [prompt design](https://docs.claude.com/en/docs/intro-to-prompting)
|
|
313
|
+
for more details.
|
|
317
314
|
|
|
318
315
|
stream: Whether to incrementally stream the response using server-sent events.
|
|
319
316
|
|
|
320
|
-
See [streaming](https://docs.
|
|
317
|
+
See [streaming](https://docs.claude.com/en/api/streaming) for details.
|
|
321
318
|
|
|
322
319
|
metadata: An object describing metadata about the request.
|
|
323
320
|
|
|
@@ -466,10 +463,10 @@ class AsyncCompletions(AsyncAPIResource):
|
|
|
466
463
|
The Text Completions API is a legacy API.
|
|
467
464
|
|
|
468
465
|
We recommend using the
|
|
469
|
-
[Messages API](https://docs.
|
|
466
|
+
[Messages API](https://docs.claude.com/en/api/messages) going forward.
|
|
470
467
|
|
|
471
468
|
Future models and features will not be compatible with Text Completions. See our
|
|
472
|
-
[migration guide](https://docs.
|
|
469
|
+
[migration guide](https://docs.claude.com/en/api/migrating-from-text-completions-to-messages)
|
|
473
470
|
for guidance in migrating from Text Completions to Messages.
|
|
474
471
|
|
|
475
472
|
Args:
|
|
@@ -491,10 +488,9 @@ class AsyncCompletions(AsyncAPIResource):
|
|
|
491
488
|
"\n\nHuman: {userQuestion}\n\nAssistant:"
|
|
492
489
|
```
|
|
493
490
|
|
|
494
|
-
See [prompt validation](https://docs.
|
|
495
|
-
our guide to
|
|
496
|
-
|
|
497
|
-
details.
|
|
491
|
+
See [prompt validation](https://docs.claude.com/en/api/prompt-validation) and
|
|
492
|
+
our guide to [prompt design](https://docs.claude.com/en/docs/intro-to-prompting)
|
|
493
|
+
for more details.
|
|
498
494
|
|
|
499
495
|
metadata: An object describing metadata about the request.
|
|
500
496
|
|
|
@@ -506,7 +502,7 @@ class AsyncCompletions(AsyncAPIResource):
|
|
|
506
502
|
|
|
507
503
|
stream: Whether to incrementally stream the response using server-sent events.
|
|
508
504
|
|
|
509
|
-
See [streaming](https://docs.
|
|
505
|
+
See [streaming](https://docs.claude.com/en/api/streaming) for details.
|
|
510
506
|
|
|
511
507
|
temperature: Amount of randomness injected into the response.
|
|
512
508
|
|
|
@@ -573,10 +569,10 @@ class AsyncCompletions(AsyncAPIResource):
|
|
|
573
569
|
The Text Completions API is a legacy API.
|
|
574
570
|
|
|
575
571
|
We recommend using the
|
|
576
|
-
[Messages API](https://docs.
|
|
572
|
+
[Messages API](https://docs.claude.com/en/api/messages) going forward.
|
|
577
573
|
|
|
578
574
|
Future models and features will not be compatible with Text Completions. See our
|
|
579
|
-
[migration guide](https://docs.
|
|
575
|
+
[migration guide](https://docs.claude.com/en/api/migrating-from-text-completions-to-messages)
|
|
580
576
|
for guidance in migrating from Text Completions to Messages.
|
|
581
577
|
|
|
582
578
|
Args:
|
|
@@ -598,14 +594,13 @@ class AsyncCompletions(AsyncAPIResource):
|
|
|
598
594
|
"\n\nHuman: {userQuestion}\n\nAssistant:"
|
|
599
595
|
```
|
|
600
596
|
|
|
601
|
-
See [prompt validation](https://docs.
|
|
602
|
-
our guide to
|
|
603
|
-
|
|
604
|
-
details.
|
|
597
|
+
See [prompt validation](https://docs.claude.com/en/api/prompt-validation) and
|
|
598
|
+
our guide to [prompt design](https://docs.claude.com/en/docs/intro-to-prompting)
|
|
599
|
+
for more details.
|
|
605
600
|
|
|
606
601
|
stream: Whether to incrementally stream the response using server-sent events.
|
|
607
602
|
|
|
608
|
-
See [streaming](https://docs.
|
|
603
|
+
See [streaming](https://docs.claude.com/en/api/streaming) for details.
|
|
609
604
|
|
|
610
605
|
metadata: An object describing metadata about the request.
|
|
611
606
|
|
|
@@ -680,10 +675,10 @@ class AsyncCompletions(AsyncAPIResource):
|
|
|
680
675
|
The Text Completions API is a legacy API.
|
|
681
676
|
|
|
682
677
|
We recommend using the
|
|
683
|
-
[Messages API](https://docs.
|
|
678
|
+
[Messages API](https://docs.claude.com/en/api/messages) going forward.
|
|
684
679
|
|
|
685
680
|
Future models and features will not be compatible with Text Completions. See our
|
|
686
|
-
[migration guide](https://docs.
|
|
681
|
+
[migration guide](https://docs.claude.com/en/api/migrating-from-text-completions-to-messages)
|
|
687
682
|
for guidance in migrating from Text Completions to Messages.
|
|
688
683
|
|
|
689
684
|
Args:
|
|
@@ -705,14 +700,13 @@ class AsyncCompletions(AsyncAPIResource):
|
|
|
705
700
|
"\n\nHuman: {userQuestion}\n\nAssistant:"
|
|
706
701
|
```
|
|
707
702
|
|
|
708
|
-
See [prompt validation](https://docs.
|
|
709
|
-
our guide to
|
|
710
|
-
|
|
711
|
-
details.
|
|
703
|
+
See [prompt validation](https://docs.claude.com/en/api/prompt-validation) and
|
|
704
|
+
our guide to [prompt design](https://docs.claude.com/en/docs/intro-to-prompting)
|
|
705
|
+
for more details.
|
|
712
706
|
|
|
713
707
|
stream: Whether to incrementally stream the response using server-sent events.
|
|
714
708
|
|
|
715
|
-
See [streaming](https://docs.
|
|
709
|
+
See [streaming](https://docs.claude.com/en/api/streaming) for details.
|
|
716
710
|
|
|
717
711
|
metadata: An object describing metadata about the request.
|
|
718
712
|
|