anthropic 1.11.0 → 1.12.0

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 (127) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/anthropic/internal/page_cursor.rb +92 -0
  5. data/lib/anthropic/internal/token_page.rb +92 -0
  6. data/lib/anthropic/models/anthropic_beta.rb +3 -0
  7. data/lib/anthropic/models/beta/beta_clear_tool_uses_20250919_edit_response.rb +0 -2
  8. data/lib/anthropic/models/beta/beta_container.rb +9 -1
  9. data/lib/anthropic/models/beta/beta_container_params.rb +34 -0
  10. data/lib/anthropic/models/beta/beta_context_management_config.rb +0 -2
  11. data/lib/anthropic/models/beta/beta_context_management_response.rb +0 -2
  12. data/lib/anthropic/models/beta/beta_message.rb +4 -2
  13. data/lib/anthropic/models/beta/beta_raw_message_delta_event.rb +2 -2
  14. data/lib/anthropic/models/beta/beta_skill.rb +51 -0
  15. data/lib/anthropic/models/beta/beta_skill_params.rb +51 -0
  16. data/lib/anthropic/models/beta/beta_thinking_config_enabled.rb +1 -1
  17. data/lib/anthropic/models/beta/beta_thinking_config_param.rb +1 -1
  18. data/lib/anthropic/models/beta/message_count_tokens_params.rb +15 -12
  19. data/lib/anthropic/models/beta/message_create_params.rb +34 -18
  20. data/lib/anthropic/models/beta/messages/batch_create_params.rb +39 -20
  21. data/lib/anthropic/models/beta/skill_create_params.rb +49 -0
  22. data/lib/anthropic/models/beta/skill_create_response.rb +84 -0
  23. data/lib/anthropic/models/beta/skill_delete_params.rb +24 -0
  24. data/lib/anthropic/models/beta/skill_delete_response.rb +34 -0
  25. data/lib/anthropic/models/beta/skill_list_params.rb +61 -0
  26. data/lib/anthropic/models/beta/skill_list_response.rb +84 -0
  27. data/lib/anthropic/models/beta/skill_retrieve_params.rb +24 -0
  28. data/lib/anthropic/models/beta/skill_retrieve_response.rb +84 -0
  29. data/lib/anthropic/models/beta/skills/version_create_params.rb +42 -0
  30. data/lib/anthropic/models/beta/skills/version_create_response.rb +92 -0
  31. data/lib/anthropic/models/beta/skills/version_delete_params.rb +39 -0
  32. data/lib/anthropic/models/beta/skills/version_delete_response.rb +36 -0
  33. data/lib/anthropic/models/beta/skills/version_list_params.rb +47 -0
  34. data/lib/anthropic/models/beta/skills/version_list_response.rb +92 -0
  35. data/lib/anthropic/models/beta/skills/version_retrieve_params.rb +39 -0
  36. data/lib/anthropic/models/beta/skills/version_retrieve_response.rb +92 -0
  37. data/lib/anthropic/models/completion_create_params.rb +3 -4
  38. data/lib/anthropic/models/message_count_tokens_params.rb +10 -10
  39. data/lib/anthropic/models/message_create_params.rb +13 -13
  40. data/lib/anthropic/models/messages/batch_create_params.rb +14 -15
  41. data/lib/anthropic/models/stop_reason.rb +0 -1
  42. data/lib/anthropic/models/thinking_config_enabled.rb +1 -1
  43. data/lib/anthropic/models/thinking_config_param.rb +1 -1
  44. data/lib/anthropic/resources/beta/messages.rb +5 -5
  45. data/lib/anthropic/resources/beta/skills/versions.rb +154 -0
  46. data/lib/anthropic/resources/beta/skills.rb +144 -0
  47. data/lib/anthropic/resources/beta.rb +4 -0
  48. data/lib/anthropic/resources/completions.rb +4 -4
  49. data/lib/anthropic/version.rb +1 -1
  50. data/lib/anthropic.rb +23 -0
  51. data/rbi/anthropic/internal/page_cursor.rbi +25 -0
  52. data/rbi/anthropic/internal/token_page.rbi +25 -0
  53. data/rbi/anthropic/models/anthropic_beta.rbi +2 -0
  54. data/rbi/anthropic/models/beta/beta_clear_tool_uses_20250919_edit_response.rbi +0 -1
  55. data/rbi/anthropic/models/beta/beta_container.rbi +23 -3
  56. data/rbi/anthropic/models/beta/beta_container_params.rbi +54 -0
  57. data/rbi/anthropic/models/beta/beta_context_management_config.rbi +0 -1
  58. data/rbi/anthropic/models/beta/beta_context_management_response.rbi +0 -1
  59. data/rbi/anthropic/models/beta/beta_message.rbi +6 -2
  60. data/rbi/anthropic/models/beta/beta_raw_message_delta_event.rbi +2 -2
  61. data/rbi/anthropic/models/beta/beta_skill.rbi +80 -0
  62. data/rbi/anthropic/models/beta/beta_skill_params.rbi +91 -0
  63. data/rbi/anthropic/models/beta/beta_thinking_config_enabled.rbi +2 -2
  64. data/rbi/anthropic/models/beta/beta_thinking_config_param.rbi +1 -1
  65. data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +27 -21
  66. data/rbi/anthropic/models/beta/message_create_params.rbi +61 -29
  67. data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +70 -33
  68. data/rbi/anthropic/models/beta/skill_create_params.rbi +90 -0
  69. data/rbi/anthropic/models/beta/skill_create_response.rbi +118 -0
  70. data/rbi/anthropic/models/beta/skill_delete_params.rbi +62 -0
  71. data/rbi/anthropic/models/beta/skill_delete_response.rbi +46 -0
  72. data/rbi/anthropic/models/beta/skill_list_params.rbi +109 -0
  73. data/rbi/anthropic/models/beta/skill_list_response.rbi +118 -0
  74. data/rbi/anthropic/models/beta/skill_retrieve_params.rbi +62 -0
  75. data/rbi/anthropic/models/beta/skill_retrieve_response.rbi +118 -0
  76. data/rbi/anthropic/models/beta/skills/version_create_params.rbi +79 -0
  77. data/rbi/anthropic/models/beta/skills/version_create_response.rbi +124 -0
  78. data/rbi/anthropic/models/beta/skills/version_delete_params.rbi +77 -0
  79. data/rbi/anthropic/models/beta/skills/version_delete_response.rbi +48 -0
  80. data/rbi/anthropic/models/beta/skills/version_list_params.rbi +85 -0
  81. data/rbi/anthropic/models/beta/skills/version_list_response.rbi +124 -0
  82. data/rbi/anthropic/models/beta/skills/version_retrieve_params.rbi +77 -0
  83. data/rbi/anthropic/models/beta/skills/version_retrieve_response.rbi +124 -0
  84. data/rbi/anthropic/models/completion_create_params.rbi +6 -8
  85. data/rbi/anthropic/models/message_count_tokens_params.rbi +19 -19
  86. data/rbi/anthropic/models/message_create_params.rbi +24 -24
  87. data/rbi/anthropic/models/messages/batch_create_params.rbi +26 -28
  88. data/rbi/anthropic/models/stop_reason.rbi +0 -5
  89. data/rbi/anthropic/models/thinking_config_enabled.rbi +2 -2
  90. data/rbi/anthropic/models/thinking_config_param.rbi +1 -1
  91. data/rbi/anthropic/resources/beta/messages.rbi +51 -36
  92. data/rbi/anthropic/resources/beta/skills/versions.rbi +124 -0
  93. data/rbi/anthropic/resources/beta/skills.rbi +118 -0
  94. data/rbi/anthropic/resources/beta.rbi +3 -0
  95. data/rbi/anthropic/resources/completions.rbi +10 -12
  96. data/rbi/anthropic/resources/messages.rbi +31 -31
  97. data/sig/anthropic/internal/page_cursor.rbs +15 -0
  98. data/sig/anthropic/internal/token_page.rbs +15 -0
  99. data/sig/anthropic/models/anthropic_beta.rbs +2 -0
  100. data/sig/anthropic/models/beta/beta_container.rbs +18 -3
  101. data/sig/anthropic/models/beta/beta_container_params.rbs +26 -0
  102. data/sig/anthropic/models/beta/beta_skill.rbs +45 -0
  103. data/sig/anthropic/models/beta/beta_skill_params.rbs +47 -0
  104. data/sig/anthropic/models/beta/message_create_params.rbs +12 -4
  105. data/sig/anthropic/models/beta/messages/batch_create_params.rbs +12 -4
  106. data/sig/anthropic/models/beta/skill_create_params.rbs +42 -0
  107. data/sig/anthropic/models/beta/skill_create_response.rbs +52 -0
  108. data/sig/anthropic/models/beta/skill_delete_params.rbs +30 -0
  109. data/sig/anthropic/models/beta/skill_delete_response.rbs +17 -0
  110. data/sig/anthropic/models/beta/skill_list_params.rbs +49 -0
  111. data/sig/anthropic/models/beta/skill_list_response.rbs +52 -0
  112. data/sig/anthropic/models/beta/skill_retrieve_params.rbs +30 -0
  113. data/sig/anthropic/models/beta/skill_retrieve_response.rbs +52 -0
  114. data/sig/anthropic/models/beta/skills/version_create_params.rbs +39 -0
  115. data/sig/anthropic/models/beta/skills/version_create_response.rbs +59 -0
  116. data/sig/anthropic/models/beta/skills/version_delete_params.rbs +39 -0
  117. data/sig/anthropic/models/beta/skills/version_delete_response.rbs +19 -0
  118. data/sig/anthropic/models/beta/skills/version_list_params.rbs +44 -0
  119. data/sig/anthropic/models/beta/skills/version_list_response.rbs +59 -0
  120. data/sig/anthropic/models/beta/skills/version_retrieve_params.rbs +39 -0
  121. data/sig/anthropic/models/beta/skills/version_retrieve_response.rbs +59 -0
  122. data/sig/anthropic/models/stop_reason.rbs +0 -2
  123. data/sig/anthropic/resources/beta/messages.rbs +2 -2
  124. data/sig/anthropic/resources/beta/skills/versions.rbs +40 -0
  125. data/sig/anthropic/resources/beta/skills.rbs +38 -0
  126. data/sig/anthropic/resources/beta.rbs +2 -0
  127. metadata +71 -2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anthropic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthropic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-15 00:00:00.000000000 Z
11
+ date: 2025-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool
@@ -58,7 +58,9 @@ files:
58
58
  - lib/anthropic/internal.rb
59
59
  - lib/anthropic/internal/jsonl_stream.rb
60
60
  - lib/anthropic/internal/page.rb
61
+ - lib/anthropic/internal/page_cursor.rb
61
62
  - lib/anthropic/internal/stream.rb
63
+ - lib/anthropic/internal/token_page.rb
62
64
  - lib/anthropic/internal/transport/base_client.rb
63
65
  - lib/anthropic/internal/transport/pooled_net_requester.rb
64
66
  - lib/anthropic/internal/type/array_of.rb
@@ -122,6 +124,7 @@ files:
122
124
  - lib/anthropic/models/beta/beta_code_execution_tool_result_error_code.rb
123
125
  - lib/anthropic/models/beta/beta_code_execution_tool_result_error_param.rb
124
126
  - lib/anthropic/models/beta/beta_container.rb
127
+ - lib/anthropic/models/beta/beta_container_params.rb
125
128
  - lib/anthropic/models/beta/beta_container_upload_block.rb
126
129
  - lib/anthropic/models/beta/beta_container_upload_block_param.rb
127
130
  - lib/anthropic/models/beta/beta_content_block.rb
@@ -175,6 +178,8 @@ files:
175
178
  - lib/anthropic/models/beta/beta_server_tool_use_block.rb
176
179
  - lib/anthropic/models/beta/beta_server_tool_use_block_param.rb
177
180
  - lib/anthropic/models/beta/beta_signature_delta.rb
181
+ - lib/anthropic/models/beta/beta_skill.rb
182
+ - lib/anthropic/models/beta/beta_skill_params.rb
178
183
  - lib/anthropic/models/beta/beta_stop_reason.rb
179
184
  - lib/anthropic/models/beta/beta_text_block.rb
180
185
  - lib/anthropic/models/beta/beta_text_block_param.rb
@@ -264,6 +269,22 @@ files:
264
269
  - lib/anthropic/models/beta/messages/beta_message_batch_succeeded_result.rb
265
270
  - lib/anthropic/models/beta/model_list_params.rb
266
271
  - lib/anthropic/models/beta/model_retrieve_params.rb
272
+ - lib/anthropic/models/beta/skill_create_params.rb
273
+ - lib/anthropic/models/beta/skill_create_response.rb
274
+ - lib/anthropic/models/beta/skill_delete_params.rb
275
+ - lib/anthropic/models/beta/skill_delete_response.rb
276
+ - lib/anthropic/models/beta/skill_list_params.rb
277
+ - lib/anthropic/models/beta/skill_list_response.rb
278
+ - lib/anthropic/models/beta/skill_retrieve_params.rb
279
+ - lib/anthropic/models/beta/skill_retrieve_response.rb
280
+ - lib/anthropic/models/beta/skills/version_create_params.rb
281
+ - lib/anthropic/models/beta/skills/version_create_response.rb
282
+ - lib/anthropic/models/beta/skills/version_delete_params.rb
283
+ - lib/anthropic/models/beta/skills/version_delete_response.rb
284
+ - lib/anthropic/models/beta/skills/version_list_params.rb
285
+ - lib/anthropic/models/beta/skills/version_list_response.rb
286
+ - lib/anthropic/models/beta/skills/version_retrieve_params.rb
287
+ - lib/anthropic/models/beta/skills/version_retrieve_response.rb
267
288
  - lib/anthropic/models/beta_api_error.rb
268
289
  - lib/anthropic/models/beta_authentication_error.rb
269
290
  - lib/anthropic/models/beta_billing_error.rb
@@ -394,6 +415,8 @@ files:
394
415
  - lib/anthropic/resources/beta/messages.rb
395
416
  - lib/anthropic/resources/beta/messages/batches.rb
396
417
  - lib/anthropic/resources/beta/models.rb
418
+ - lib/anthropic/resources/beta/skills.rb
419
+ - lib/anthropic/resources/beta/skills/versions.rb
397
420
  - lib/anthropic/resources/completions.rb
398
421
  - lib/anthropic/resources/messages.rb
399
422
  - lib/anthropic/resources/messages/batches.rb
@@ -421,7 +444,9 @@ files:
421
444
  - rbi/anthropic/internal.rbi
422
445
  - rbi/anthropic/internal/jsonl_stream.rbi
423
446
  - rbi/anthropic/internal/page.rbi
447
+ - rbi/anthropic/internal/page_cursor.rbi
424
448
  - rbi/anthropic/internal/stream.rbi
449
+ - rbi/anthropic/internal/token_page.rbi
425
450
  - rbi/anthropic/internal/transport/base_client.rbi
426
451
  - rbi/anthropic/internal/transport/pooled_net_requester.rbi
427
452
  - rbi/anthropic/internal/type/array_of.rbi
@@ -485,6 +510,7 @@ files:
485
510
  - rbi/anthropic/models/beta/beta_code_execution_tool_result_error_code.rbi
486
511
  - rbi/anthropic/models/beta/beta_code_execution_tool_result_error_param.rbi
487
512
  - rbi/anthropic/models/beta/beta_container.rbi
513
+ - rbi/anthropic/models/beta/beta_container_params.rbi
488
514
  - rbi/anthropic/models/beta/beta_container_upload_block.rbi
489
515
  - rbi/anthropic/models/beta/beta_container_upload_block_param.rbi
490
516
  - rbi/anthropic/models/beta/beta_content_block.rbi
@@ -538,6 +564,8 @@ files:
538
564
  - rbi/anthropic/models/beta/beta_server_tool_use_block.rbi
539
565
  - rbi/anthropic/models/beta/beta_server_tool_use_block_param.rbi
540
566
  - rbi/anthropic/models/beta/beta_signature_delta.rbi
567
+ - rbi/anthropic/models/beta/beta_skill.rbi
568
+ - rbi/anthropic/models/beta/beta_skill_params.rbi
541
569
  - rbi/anthropic/models/beta/beta_stop_reason.rbi
542
570
  - rbi/anthropic/models/beta/beta_text_block.rbi
543
571
  - rbi/anthropic/models/beta/beta_text_block_param.rbi
@@ -627,6 +655,22 @@ files:
627
655
  - rbi/anthropic/models/beta/messages/beta_message_batch_succeeded_result.rbi
628
656
  - rbi/anthropic/models/beta/model_list_params.rbi
629
657
  - rbi/anthropic/models/beta/model_retrieve_params.rbi
658
+ - rbi/anthropic/models/beta/skill_create_params.rbi
659
+ - rbi/anthropic/models/beta/skill_create_response.rbi
660
+ - rbi/anthropic/models/beta/skill_delete_params.rbi
661
+ - rbi/anthropic/models/beta/skill_delete_response.rbi
662
+ - rbi/anthropic/models/beta/skill_list_params.rbi
663
+ - rbi/anthropic/models/beta/skill_list_response.rbi
664
+ - rbi/anthropic/models/beta/skill_retrieve_params.rbi
665
+ - rbi/anthropic/models/beta/skill_retrieve_response.rbi
666
+ - rbi/anthropic/models/beta/skills/version_create_params.rbi
667
+ - rbi/anthropic/models/beta/skills/version_create_response.rbi
668
+ - rbi/anthropic/models/beta/skills/version_delete_params.rbi
669
+ - rbi/anthropic/models/beta/skills/version_delete_response.rbi
670
+ - rbi/anthropic/models/beta/skills/version_list_params.rbi
671
+ - rbi/anthropic/models/beta/skills/version_list_response.rbi
672
+ - rbi/anthropic/models/beta/skills/version_retrieve_params.rbi
673
+ - rbi/anthropic/models/beta/skills/version_retrieve_response.rbi
630
674
  - rbi/anthropic/models/beta_api_error.rbi
631
675
  - rbi/anthropic/models/beta_authentication_error.rbi
632
676
  - rbi/anthropic/models/beta_billing_error.rbi
@@ -757,6 +801,8 @@ files:
757
801
  - rbi/anthropic/resources/beta/messages.rbi
758
802
  - rbi/anthropic/resources/beta/messages/batches.rbi
759
803
  - rbi/anthropic/resources/beta/models.rbi
804
+ - rbi/anthropic/resources/beta/skills.rbi
805
+ - rbi/anthropic/resources/beta/skills/versions.rbi
760
806
  - rbi/anthropic/resources/completions.rbi
761
807
  - rbi/anthropic/resources/messages.rbi
762
808
  - rbi/anthropic/resources/messages/batches.rbi
@@ -775,7 +821,9 @@ files:
775
821
  - sig/anthropic/internal.rbs
776
822
  - sig/anthropic/internal/jsonl_stream.rbs
777
823
  - sig/anthropic/internal/page.rbs
824
+ - sig/anthropic/internal/page_cursor.rbs
778
825
  - sig/anthropic/internal/stream.rbs
826
+ - sig/anthropic/internal/token_page.rbs
779
827
  - sig/anthropic/internal/transport/base_client.rbs
780
828
  - sig/anthropic/internal/transport/pooled_net_requester.rbs
781
829
  - sig/anthropic/internal/type/array_of.rbs
@@ -839,6 +887,7 @@ files:
839
887
  - sig/anthropic/models/beta/beta_code_execution_tool_result_error_code.rbs
840
888
  - sig/anthropic/models/beta/beta_code_execution_tool_result_error_param.rbs
841
889
  - sig/anthropic/models/beta/beta_container.rbs
890
+ - sig/anthropic/models/beta/beta_container_params.rbs
842
891
  - sig/anthropic/models/beta/beta_container_upload_block.rbs
843
892
  - sig/anthropic/models/beta/beta_container_upload_block_param.rbs
844
893
  - sig/anthropic/models/beta/beta_content_block.rbs
@@ -892,6 +941,8 @@ files:
892
941
  - sig/anthropic/models/beta/beta_server_tool_use_block.rbs
893
942
  - sig/anthropic/models/beta/beta_server_tool_use_block_param.rbs
894
943
  - sig/anthropic/models/beta/beta_signature_delta.rbs
944
+ - sig/anthropic/models/beta/beta_skill.rbs
945
+ - sig/anthropic/models/beta/beta_skill_params.rbs
895
946
  - sig/anthropic/models/beta/beta_stop_reason.rbs
896
947
  - sig/anthropic/models/beta/beta_text_block.rbs
897
948
  - sig/anthropic/models/beta/beta_text_block_param.rbs
@@ -981,6 +1032,22 @@ files:
981
1032
  - sig/anthropic/models/beta/messages/beta_message_batch_succeeded_result.rbs
982
1033
  - sig/anthropic/models/beta/model_list_params.rbs
983
1034
  - sig/anthropic/models/beta/model_retrieve_params.rbs
1035
+ - sig/anthropic/models/beta/skill_create_params.rbs
1036
+ - sig/anthropic/models/beta/skill_create_response.rbs
1037
+ - sig/anthropic/models/beta/skill_delete_params.rbs
1038
+ - sig/anthropic/models/beta/skill_delete_response.rbs
1039
+ - sig/anthropic/models/beta/skill_list_params.rbs
1040
+ - sig/anthropic/models/beta/skill_list_response.rbs
1041
+ - sig/anthropic/models/beta/skill_retrieve_params.rbs
1042
+ - sig/anthropic/models/beta/skill_retrieve_response.rbs
1043
+ - sig/anthropic/models/beta/skills/version_create_params.rbs
1044
+ - sig/anthropic/models/beta/skills/version_create_response.rbs
1045
+ - sig/anthropic/models/beta/skills/version_delete_params.rbs
1046
+ - sig/anthropic/models/beta/skills/version_delete_response.rbs
1047
+ - sig/anthropic/models/beta/skills/version_list_params.rbs
1048
+ - sig/anthropic/models/beta/skills/version_list_response.rbs
1049
+ - sig/anthropic/models/beta/skills/version_retrieve_params.rbs
1050
+ - sig/anthropic/models/beta/skills/version_retrieve_response.rbs
984
1051
  - sig/anthropic/models/beta_api_error.rbs
985
1052
  - sig/anthropic/models/beta_authentication_error.rbs
986
1053
  - sig/anthropic/models/beta_billing_error.rbs
@@ -1111,6 +1178,8 @@ files:
1111
1178
  - sig/anthropic/resources/beta/messages.rbs
1112
1179
  - sig/anthropic/resources/beta/messages/batches.rbs
1113
1180
  - sig/anthropic/resources/beta/models.rbs
1181
+ - sig/anthropic/resources/beta/skills.rbs
1182
+ - sig/anthropic/resources/beta/skills/versions.rbs
1114
1183
  - sig/anthropic/resources/completions.rbs
1115
1184
  - sig/anthropic/resources/messages.rbs
1116
1185
  - sig/anthropic/resources/messages/batches.rbs