anthropic 0.70.0__py3-none-any.whl → 0.71.1__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 (50) hide show
  1. anthropic/_base_client.py +6 -2
  2. anthropic/_version.py +1 -1
  3. anthropic/lib/__init__.py +1 -0
  4. anthropic/lib/_files.py +42 -0
  5. anthropic/pagination.py +117 -1
  6. anthropic/resources/beta/__init__.py +14 -0
  7. anthropic/resources/beta/beta.py +32 -0
  8. anthropic/resources/beta/messages/messages.py +140 -122
  9. anthropic/resources/beta/skills/__init__.py +33 -0
  10. anthropic/resources/beta/skills/skills.py +680 -0
  11. anthropic/resources/beta/skills/versions.py +658 -0
  12. anthropic/resources/completions.py +36 -42
  13. anthropic/resources/messages/messages.py +92 -98
  14. anthropic/types/anthropic_beta_param.py +1 -0
  15. anthropic/types/beta/__init__.py +9 -0
  16. anthropic/types/beta/beta_container.py +5 -0
  17. anthropic/types/beta/beta_container_params.py +18 -0
  18. anthropic/types/beta/beta_message.py +4 -1
  19. anthropic/types/beta/beta_raw_message_delta_event.py +1 -1
  20. anthropic/types/beta/beta_skill.py +18 -0
  21. anthropic/types/beta/beta_skill_params.py +18 -0
  22. anthropic/types/beta/beta_thinking_config_enabled_param.py +1 -1
  23. anthropic/types/beta/message_count_tokens_params.py +14 -10
  24. anthropic/types/beta/message_create_params.py +25 -19
  25. anthropic/types/beta/messages/batch_create_params.py +1 -0
  26. anthropic/types/beta/skill_create_params.py +31 -0
  27. anthropic/types/beta/skill_create_response.py +49 -0
  28. anthropic/types/beta/skill_delete_response.py +19 -0
  29. anthropic/types/beta/skill_list_params.py +38 -0
  30. anthropic/types/beta/skill_list_response.py +49 -0
  31. anthropic/types/beta/skill_retrieve_response.py +49 -0
  32. anthropic/types/beta/skills/__init__.py +10 -0
  33. anthropic/types/beta/skills/version_create_params.py +24 -0
  34. anthropic/types/beta/skills/version_create_response.py +49 -0
  35. anthropic/types/beta/skills/version_delete_response.py +19 -0
  36. anthropic/types/beta/skills/version_list_params.py +25 -0
  37. anthropic/types/beta/skills/version_list_response.py +49 -0
  38. anthropic/types/beta/skills/version_retrieve_response.py +49 -0
  39. anthropic/types/completion_create_params.py +5 -6
  40. anthropic/types/message_count_tokens_params.py +9 -9
  41. anthropic/types/message_create_params.py +13 -15
  42. anthropic/types/messages/batch_create_params.py +1 -0
  43. anthropic/types/model.py +0 -3
  44. anthropic/types/model_param.py +0 -3
  45. anthropic/types/stop_reason.py +1 -3
  46. anthropic/types/thinking_config_enabled_param.py +1 -1
  47. {anthropic-0.70.0.dist-info → anthropic-0.71.1.dist-info}/METADATA +2 -2
  48. {anthropic-0.70.0.dist-info → anthropic-0.71.1.dist-info}/RECORD +50 -30
  49. {anthropic-0.70.0.dist-info → anthropic-0.71.1.dist-info}/WHEEL +0 -0
  50. {anthropic-0.70.0.dist-info → anthropic-0.71.1.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.anthropic.com/en/api/messages) going forward.
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.anthropic.com/en/api/migrating-from-text-completions-to-messages)
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.anthropic.com/en/api/prompt-validation) and
100
- our guide to
101
- [prompt design](https://docs.anthropic.com/en/docs/intro-to-prompting) for more
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.anthropic.com/en/api/streaming) for details.
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.anthropic.com/en/api/messages) going forward.
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.anthropic.com/en/api/migrating-from-text-completions-to-messages)
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.anthropic.com/en/api/prompt-validation) and
207
- our guide to
208
- [prompt design](https://docs.anthropic.com/en/docs/intro-to-prompting) for more
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.anthropic.com/en/api/streaming) for details.
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.anthropic.com/en/api/messages) going forward.
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.anthropic.com/en/api/migrating-from-text-completions-to-messages)
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.anthropic.com/en/api/prompt-validation) and
314
- our guide to
315
- [prompt design](https://docs.anthropic.com/en/docs/intro-to-prompting) for more
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.anthropic.com/en/api/streaming) for details.
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.anthropic.com/en/api/messages) going forward.
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.anthropic.com/en/api/migrating-from-text-completions-to-messages)
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.anthropic.com/en/api/prompt-validation) and
495
- our guide to
496
- [prompt design](https://docs.anthropic.com/en/docs/intro-to-prompting) for more
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.anthropic.com/en/api/streaming) for details.
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.anthropic.com/en/api/messages) going forward.
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.anthropic.com/en/api/migrating-from-text-completions-to-messages)
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.anthropic.com/en/api/prompt-validation) and
602
- our guide to
603
- [prompt design](https://docs.anthropic.com/en/docs/intro-to-prompting) for more
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.anthropic.com/en/api/streaming) for details.
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.anthropic.com/en/api/messages) going forward.
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.anthropic.com/en/api/migrating-from-text-completions-to-messages)
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.anthropic.com/en/api/prompt-validation) and
709
- our guide to
710
- [prompt design](https://docs.anthropic.com/en/docs/intro-to-prompting) for more
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.anthropic.com/en/api/streaming) for details.
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