anthropic 1.12.0 → 1.13.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 (60) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -0
  3. data/README.md +1 -1
  4. data/lib/anthropic/helpers/streaming/message_stream.rb +3 -0
  5. data/lib/anthropic/internal/transport/pooled_net_requester.rb +30 -24
  6. data/lib/anthropic/models/beta/beta_all_thinking_turns.rb +19 -0
  7. data/lib/anthropic/models/beta/beta_clear_thinking_20251015_edit.rb +48 -0
  8. data/lib/anthropic/models/beta/beta_clear_thinking_20251015_edit_response.rb +36 -0
  9. data/lib/anthropic/models/beta/beta_context_management_config.rb +17 -3
  10. data/lib/anthropic/models/beta/beta_context_management_response.rb +16 -3
  11. data/lib/anthropic/models/beta/beta_mcp_tool_use_block_param.rb +3 -3
  12. data/lib/anthropic/models/beta/beta_server_tool_use_block_param.rb +3 -3
  13. data/lib/anthropic/models/beta/beta_thinking_turns.rb +25 -0
  14. data/lib/anthropic/models/beta/beta_tool.rb +5 -3
  15. data/lib/anthropic/models/beta/beta_tool_use_block_param.rb +3 -3
  16. data/lib/anthropic/models/model.rb +6 -20
  17. data/lib/anthropic/models/server_tool_use_block_param.rb +3 -3
  18. data/lib/anthropic/models/tool.rb +5 -3
  19. data/lib/anthropic/models/tool_use_block_param.rb +3 -3
  20. data/lib/anthropic/version.rb +1 -1
  21. data/lib/anthropic.rb +4 -0
  22. data/rbi/anthropic/models/beta/beta_all_thinking_turns.rbi +30 -0
  23. data/rbi/anthropic/models/beta/beta_clear_thinking_20251015_edit.rbi +109 -0
  24. data/rbi/anthropic/models/beta/beta_clear_thinking_20251015_edit_response.rbi +61 -0
  25. data/rbi/anthropic/models/beta/beta_context_management_config.rbi +51 -4
  26. data/rbi/anthropic/models/beta/beta_context_management_response.rbi +32 -3
  27. data/rbi/anthropic/models/beta/beta_mcp_tool_use_block.rbi +3 -3
  28. data/rbi/anthropic/models/beta/beta_mcp_tool_use_block_param.rbi +3 -3
  29. data/rbi/anthropic/models/beta/beta_server_tool_use_block.rbi +3 -3
  30. data/rbi/anthropic/models/beta/beta_server_tool_use_block_param.rbi +3 -3
  31. data/rbi/anthropic/models/beta/beta_thinking_turns.rbi +33 -0
  32. data/rbi/anthropic/models/beta/beta_tool.rbi +3 -3
  33. data/rbi/anthropic/models/beta/beta_tool_use_block.rbi +8 -3
  34. data/rbi/anthropic/models/beta/beta_tool_use_block_param.rbi +3 -3
  35. data/rbi/anthropic/models/model.rbi +0 -11
  36. data/rbi/anthropic/models/server_tool_use_block.rbi +8 -3
  37. data/rbi/anthropic/models/server_tool_use_block_param.rbi +3 -3
  38. data/rbi/anthropic/models/tool.rbi +3 -3
  39. data/rbi/anthropic/models/tool_use_block.rbi +8 -3
  40. data/rbi/anthropic/models/tool_use_block_param.rbi +3 -3
  41. data/sig/anthropic/models/beta/beta_all_thinking_turns.rbs +17 -0
  42. data/sig/anthropic/models/beta/beta_clear_thinking_20251015_edit.rbs +44 -0
  43. data/sig/anthropic/models/beta/beta_clear_thinking_20251015_edit_response.rbs +34 -0
  44. data/sig/anthropic/models/beta/beta_context_management_config.rbs +18 -6
  45. data/sig/anthropic/models/beta/beta_context_management_response.rbs +14 -4
  46. data/sig/anthropic/models/beta/beta_mcp_tool_use_block.rbs +4 -4
  47. data/sig/anthropic/models/beta/beta_mcp_tool_use_block_param.rbs +4 -4
  48. data/sig/anthropic/models/beta/beta_server_tool_use_block.rbs +4 -4
  49. data/sig/anthropic/models/beta/beta_server_tool_use_block_param.rbs +4 -4
  50. data/sig/anthropic/models/beta/beta_thinking_turns.rbs +19 -0
  51. data/sig/anthropic/models/beta/beta_tool.rbs +8 -4
  52. data/sig/anthropic/models/beta/beta_tool_use_block.rbs +9 -4
  53. data/sig/anthropic/models/beta/beta_tool_use_block_param.rbs +4 -4
  54. data/sig/anthropic/models/model.rbs +0 -11
  55. data/sig/anthropic/models/server_tool_use_block.rbs +9 -4
  56. data/sig/anthropic/models/server_tool_use_block_param.rbs +4 -4
  57. data/sig/anthropic/models/tool.rbs +8 -4
  58. data/sig/anthropic/models/tool_use_block.rbs +9 -4
  59. data/sig/anthropic/models/tool_use_block_param.rbs +4 -4
  60. metadata +14 -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.12.0
4
+ version: 1.13.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-16 00:00:00.000000000 Z
11
+ date: 2025-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool
@@ -82,6 +82,7 @@ files:
82
82
  - lib/anthropic/models/authentication_error.rb
83
83
  - lib/anthropic/models/base64_image_source.rb
84
84
  - lib/anthropic/models/base64_pdf_source.rb
85
+ - lib/anthropic/models/beta/beta_all_thinking_turns.rb
85
86
  - lib/anthropic/models/beta/beta_base64_image_source.rb
86
87
  - lib/anthropic/models/beta/beta_base64_pdf_block.rb
87
88
  - lib/anthropic/models/beta/beta_base64_pdf_source.rb
@@ -108,6 +109,8 @@ files:
108
109
  - lib/anthropic/models/beta/beta_citations_config_param.rb
109
110
  - lib/anthropic/models/beta/beta_citations_delta.rb
110
111
  - lib/anthropic/models/beta/beta_citations_web_search_result_location.rb
112
+ - lib/anthropic/models/beta/beta_clear_thinking_20251015_edit.rb
113
+ - lib/anthropic/models/beta/beta_clear_thinking_20251015_edit_response.rb
111
114
  - lib/anthropic/models/beta/beta_clear_tool_uses_20250919_edit.rb
112
115
  - lib/anthropic/models/beta/beta_clear_tool_uses_20250919_edit_response.rb
113
116
  - lib/anthropic/models/beta/beta_code_execution_output_block.rb
@@ -202,6 +205,7 @@ files:
202
205
  - lib/anthropic/models/beta/beta_thinking_config_enabled.rb
203
206
  - lib/anthropic/models/beta/beta_thinking_config_param.rb
204
207
  - lib/anthropic/models/beta/beta_thinking_delta.rb
208
+ - lib/anthropic/models/beta/beta_thinking_turns.rb
205
209
  - lib/anthropic/models/beta/beta_tool.rb
206
210
  - lib/anthropic/models/beta/beta_tool_bash_20241022.rb
207
211
  - lib/anthropic/models/beta/beta_tool_bash_20250124.rb
@@ -468,6 +472,7 @@ files:
468
472
  - rbi/anthropic/models/authentication_error.rbi
469
473
  - rbi/anthropic/models/base64_image_source.rbi
470
474
  - rbi/anthropic/models/base64_pdf_source.rbi
475
+ - rbi/anthropic/models/beta/beta_all_thinking_turns.rbi
471
476
  - rbi/anthropic/models/beta/beta_base64_image_source.rbi
472
477
  - rbi/anthropic/models/beta/beta_base64_pdf_block.rbi
473
478
  - rbi/anthropic/models/beta/beta_base64_pdf_source.rbi
@@ -494,6 +499,8 @@ files:
494
499
  - rbi/anthropic/models/beta/beta_citations_config_param.rbi
495
500
  - rbi/anthropic/models/beta/beta_citations_delta.rbi
496
501
  - rbi/anthropic/models/beta/beta_citations_web_search_result_location.rbi
502
+ - rbi/anthropic/models/beta/beta_clear_thinking_20251015_edit.rbi
503
+ - rbi/anthropic/models/beta/beta_clear_thinking_20251015_edit_response.rbi
497
504
  - rbi/anthropic/models/beta/beta_clear_tool_uses_20250919_edit.rbi
498
505
  - rbi/anthropic/models/beta/beta_clear_tool_uses_20250919_edit_response.rbi
499
506
  - rbi/anthropic/models/beta/beta_code_execution_output_block.rbi
@@ -588,6 +595,7 @@ files:
588
595
  - rbi/anthropic/models/beta/beta_thinking_config_enabled.rbi
589
596
  - rbi/anthropic/models/beta/beta_thinking_config_param.rbi
590
597
  - rbi/anthropic/models/beta/beta_thinking_delta.rbi
598
+ - rbi/anthropic/models/beta/beta_thinking_turns.rbi
591
599
  - rbi/anthropic/models/beta/beta_tool.rbi
592
600
  - rbi/anthropic/models/beta/beta_tool_bash_20241022.rbi
593
601
  - rbi/anthropic/models/beta/beta_tool_bash_20250124.rbi
@@ -845,6 +853,7 @@ files:
845
853
  - sig/anthropic/models/authentication_error.rbs
846
854
  - sig/anthropic/models/base64_image_source.rbs
847
855
  - sig/anthropic/models/base64_pdf_source.rbs
856
+ - sig/anthropic/models/beta/beta_all_thinking_turns.rbs
848
857
  - sig/anthropic/models/beta/beta_base64_image_source.rbs
849
858
  - sig/anthropic/models/beta/beta_base64_pdf_block.rbs
850
859
  - sig/anthropic/models/beta/beta_base64_pdf_source.rbs
@@ -871,6 +880,8 @@ files:
871
880
  - sig/anthropic/models/beta/beta_citations_config_param.rbs
872
881
  - sig/anthropic/models/beta/beta_citations_delta.rbs
873
882
  - sig/anthropic/models/beta/beta_citations_web_search_result_location.rbs
883
+ - sig/anthropic/models/beta/beta_clear_thinking_20251015_edit.rbs
884
+ - sig/anthropic/models/beta/beta_clear_thinking_20251015_edit_response.rbs
874
885
  - sig/anthropic/models/beta/beta_clear_tool_uses_20250919_edit.rbs
875
886
  - sig/anthropic/models/beta/beta_clear_tool_uses_20250919_edit_response.rbs
876
887
  - sig/anthropic/models/beta/beta_code_execution_output_block.rbs
@@ -965,6 +976,7 @@ files:
965
976
  - sig/anthropic/models/beta/beta_thinking_config_enabled.rbs
966
977
  - sig/anthropic/models/beta/beta_thinking_config_param.rbs
967
978
  - sig/anthropic/models/beta/beta_thinking_delta.rbs
979
+ - sig/anthropic/models/beta/beta_thinking_turns.rbs
968
980
  - sig/anthropic/models/beta/beta_tool.rbs
969
981
  - sig/anthropic/models/beta/beta_tool_bash_20241022.rbs
970
982
  - sig/anthropic/models/beta/beta_tool_bash_20250124.rbs