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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/anthropic/internal/page_cursor.rb +92 -0
- data/lib/anthropic/internal/token_page.rb +92 -0
- data/lib/anthropic/models/anthropic_beta.rb +3 -0
- data/lib/anthropic/models/beta/beta_clear_tool_uses_20250919_edit_response.rb +0 -2
- data/lib/anthropic/models/beta/beta_container.rb +9 -1
- data/lib/anthropic/models/beta/beta_container_params.rb +34 -0
- data/lib/anthropic/models/beta/beta_context_management_config.rb +0 -2
- data/lib/anthropic/models/beta/beta_context_management_response.rb +0 -2
- data/lib/anthropic/models/beta/beta_message.rb +4 -2
- data/lib/anthropic/models/beta/beta_raw_message_delta_event.rb +2 -2
- data/lib/anthropic/models/beta/beta_skill.rb +51 -0
- data/lib/anthropic/models/beta/beta_skill_params.rb +51 -0
- data/lib/anthropic/models/beta/beta_thinking_config_enabled.rb +1 -1
- data/lib/anthropic/models/beta/beta_thinking_config_param.rb +1 -1
- data/lib/anthropic/models/beta/message_count_tokens_params.rb +15 -12
- data/lib/anthropic/models/beta/message_create_params.rb +34 -18
- data/lib/anthropic/models/beta/messages/batch_create_params.rb +39 -20
- data/lib/anthropic/models/beta/skill_create_params.rb +49 -0
- data/lib/anthropic/models/beta/skill_create_response.rb +84 -0
- data/lib/anthropic/models/beta/skill_delete_params.rb +24 -0
- data/lib/anthropic/models/beta/skill_delete_response.rb +34 -0
- data/lib/anthropic/models/beta/skill_list_params.rb +61 -0
- data/lib/anthropic/models/beta/skill_list_response.rb +84 -0
- data/lib/anthropic/models/beta/skill_retrieve_params.rb +24 -0
- data/lib/anthropic/models/beta/skill_retrieve_response.rb +84 -0
- data/lib/anthropic/models/beta/skills/version_create_params.rb +42 -0
- data/lib/anthropic/models/beta/skills/version_create_response.rb +92 -0
- data/lib/anthropic/models/beta/skills/version_delete_params.rb +39 -0
- data/lib/anthropic/models/beta/skills/version_delete_response.rb +36 -0
- data/lib/anthropic/models/beta/skills/version_list_params.rb +47 -0
- data/lib/anthropic/models/beta/skills/version_list_response.rb +92 -0
- data/lib/anthropic/models/beta/skills/version_retrieve_params.rb +39 -0
- data/lib/anthropic/models/beta/skills/version_retrieve_response.rb +92 -0
- data/lib/anthropic/models/completion_create_params.rb +3 -4
- data/lib/anthropic/models/message_count_tokens_params.rb +10 -10
- data/lib/anthropic/models/message_create_params.rb +13 -13
- data/lib/anthropic/models/messages/batch_create_params.rb +14 -15
- data/lib/anthropic/models/stop_reason.rb +0 -1
- data/lib/anthropic/models/thinking_config_enabled.rb +1 -1
- data/lib/anthropic/models/thinking_config_param.rb +1 -1
- data/lib/anthropic/resources/beta/messages.rb +5 -5
- data/lib/anthropic/resources/beta/skills/versions.rb +154 -0
- data/lib/anthropic/resources/beta/skills.rb +144 -0
- data/lib/anthropic/resources/beta.rb +4 -0
- data/lib/anthropic/resources/completions.rb +4 -4
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +23 -0
- data/rbi/anthropic/internal/page_cursor.rbi +25 -0
- data/rbi/anthropic/internal/token_page.rbi +25 -0
- data/rbi/anthropic/models/anthropic_beta.rbi +2 -0
- data/rbi/anthropic/models/beta/beta_clear_tool_uses_20250919_edit_response.rbi +0 -1
- data/rbi/anthropic/models/beta/beta_container.rbi +23 -3
- data/rbi/anthropic/models/beta/beta_container_params.rbi +54 -0
- data/rbi/anthropic/models/beta/beta_context_management_config.rbi +0 -1
- data/rbi/anthropic/models/beta/beta_context_management_response.rbi +0 -1
- data/rbi/anthropic/models/beta/beta_message.rbi +6 -2
- data/rbi/anthropic/models/beta/beta_raw_message_delta_event.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_skill.rbi +80 -0
- data/rbi/anthropic/models/beta/beta_skill_params.rbi +91 -0
- data/rbi/anthropic/models/beta/beta_thinking_config_enabled.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_thinking_config_param.rbi +1 -1
- data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +27 -21
- data/rbi/anthropic/models/beta/message_create_params.rbi +61 -29
- data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +70 -33
- data/rbi/anthropic/models/beta/skill_create_params.rbi +90 -0
- data/rbi/anthropic/models/beta/skill_create_response.rbi +118 -0
- data/rbi/anthropic/models/beta/skill_delete_params.rbi +62 -0
- data/rbi/anthropic/models/beta/skill_delete_response.rbi +46 -0
- data/rbi/anthropic/models/beta/skill_list_params.rbi +109 -0
- data/rbi/anthropic/models/beta/skill_list_response.rbi +118 -0
- data/rbi/anthropic/models/beta/skill_retrieve_params.rbi +62 -0
- data/rbi/anthropic/models/beta/skill_retrieve_response.rbi +118 -0
- data/rbi/anthropic/models/beta/skills/version_create_params.rbi +79 -0
- data/rbi/anthropic/models/beta/skills/version_create_response.rbi +124 -0
- data/rbi/anthropic/models/beta/skills/version_delete_params.rbi +77 -0
- data/rbi/anthropic/models/beta/skills/version_delete_response.rbi +48 -0
- data/rbi/anthropic/models/beta/skills/version_list_params.rbi +85 -0
- data/rbi/anthropic/models/beta/skills/version_list_response.rbi +124 -0
- data/rbi/anthropic/models/beta/skills/version_retrieve_params.rbi +77 -0
- data/rbi/anthropic/models/beta/skills/version_retrieve_response.rbi +124 -0
- data/rbi/anthropic/models/completion_create_params.rbi +6 -8
- data/rbi/anthropic/models/message_count_tokens_params.rbi +19 -19
- data/rbi/anthropic/models/message_create_params.rbi +24 -24
- data/rbi/anthropic/models/messages/batch_create_params.rbi +26 -28
- data/rbi/anthropic/models/stop_reason.rbi +0 -5
- data/rbi/anthropic/models/thinking_config_enabled.rbi +2 -2
- data/rbi/anthropic/models/thinking_config_param.rbi +1 -1
- data/rbi/anthropic/resources/beta/messages.rbi +51 -36
- data/rbi/anthropic/resources/beta/skills/versions.rbi +124 -0
- data/rbi/anthropic/resources/beta/skills.rbi +118 -0
- data/rbi/anthropic/resources/beta.rbi +3 -0
- data/rbi/anthropic/resources/completions.rbi +10 -12
- data/rbi/anthropic/resources/messages.rbi +31 -31
- data/sig/anthropic/internal/page_cursor.rbs +15 -0
- data/sig/anthropic/internal/token_page.rbs +15 -0
- data/sig/anthropic/models/anthropic_beta.rbs +2 -0
- data/sig/anthropic/models/beta/beta_container.rbs +18 -3
- data/sig/anthropic/models/beta/beta_container_params.rbs +26 -0
- data/sig/anthropic/models/beta/beta_skill.rbs +45 -0
- data/sig/anthropic/models/beta/beta_skill_params.rbs +47 -0
- data/sig/anthropic/models/beta/message_create_params.rbs +12 -4
- data/sig/anthropic/models/beta/messages/batch_create_params.rbs +12 -4
- data/sig/anthropic/models/beta/skill_create_params.rbs +42 -0
- data/sig/anthropic/models/beta/skill_create_response.rbs +52 -0
- data/sig/anthropic/models/beta/skill_delete_params.rbs +30 -0
- data/sig/anthropic/models/beta/skill_delete_response.rbs +17 -0
- data/sig/anthropic/models/beta/skill_list_params.rbs +49 -0
- data/sig/anthropic/models/beta/skill_list_response.rbs +52 -0
- data/sig/anthropic/models/beta/skill_retrieve_params.rbs +30 -0
- data/sig/anthropic/models/beta/skill_retrieve_response.rbs +52 -0
- data/sig/anthropic/models/beta/skills/version_create_params.rbs +39 -0
- data/sig/anthropic/models/beta/skills/version_create_response.rbs +59 -0
- data/sig/anthropic/models/beta/skills/version_delete_params.rbs +39 -0
- data/sig/anthropic/models/beta/skills/version_delete_response.rbs +19 -0
- data/sig/anthropic/models/beta/skills/version_list_params.rbs +44 -0
- data/sig/anthropic/models/beta/skills/version_list_response.rbs +59 -0
- data/sig/anthropic/models/beta/skills/version_retrieve_params.rbs +39 -0
- data/sig/anthropic/models/beta/skills/version_retrieve_response.rbs +59 -0
- data/sig/anthropic/models/stop_reason.rbs +0 -2
- data/sig/anthropic/resources/beta/messages.rbs +2 -2
- data/sig/anthropic/resources/beta/skills/versions.rbs +40 -0
- data/sig/anthropic/resources/beta/skills.rbs +38 -0
- data/sig/anthropic/resources/beta.rbs +2 -0
- 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.
|
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-
|
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
|