anthropic 1.12.0 → 1.14.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 (86) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +40 -0
  3. data/README.md +31 -1
  4. data/lib/anthropic/helpers/input_schema/base_model.rb +6 -3
  5. data/lib/anthropic/helpers/input_schema/json_schema_converter.rb +9 -3
  6. data/lib/anthropic/helpers/input_schema/supported_schemas.rb +106 -0
  7. data/lib/anthropic/helpers/input_schema/union_of.rb +3 -1
  8. data/lib/anthropic/helpers/messages.rb +107 -0
  9. data/lib/anthropic/helpers/streaming/message_stream.rb +57 -43
  10. data/lib/anthropic/helpers/tools/base_tool.rb +82 -0
  11. data/lib/anthropic/helpers/tools/runner.rb +156 -0
  12. data/lib/anthropic/helpers/tools.rb +5 -0
  13. data/lib/anthropic/internal/transport/base_client.rb +7 -1
  14. data/lib/anthropic/internal/transport/pooled_net_requester.rb +36 -26
  15. data/lib/anthropic/models/beta/beta_all_thinking_turns.rb +19 -0
  16. data/lib/anthropic/models/beta/beta_clear_thinking_20251015_edit.rb +48 -0
  17. data/lib/anthropic/models/beta/beta_clear_thinking_20251015_edit_response.rb +36 -0
  18. data/lib/anthropic/models/beta/beta_context_management_config.rb +17 -3
  19. data/lib/anthropic/models/beta/beta_context_management_response.rb +16 -3
  20. data/lib/anthropic/models/beta/beta_mcp_tool_use_block_param.rb +3 -3
  21. data/lib/anthropic/models/beta/beta_server_tool_use_block_param.rb +3 -3
  22. data/lib/anthropic/models/beta/beta_thinking_turns.rb +25 -0
  23. data/lib/anthropic/models/beta/beta_tool.rb +5 -3
  24. data/lib/anthropic/models/beta/beta_tool_use_block.rb +14 -0
  25. data/lib/anthropic/models/beta/beta_tool_use_block_param.rb +3 -3
  26. data/lib/anthropic/models/model.rb +6 -20
  27. data/lib/anthropic/models/server_tool_use_block_param.rb +3 -3
  28. data/lib/anthropic/models/tool.rb +5 -3
  29. data/lib/anthropic/models/tool_use_block.rb +6 -6
  30. data/lib/anthropic/models/tool_use_block_param.rb +3 -3
  31. data/lib/anthropic/resources/beta/messages.rb +23 -5
  32. data/lib/anthropic/resources/messages.rb +7 -81
  33. data/lib/anthropic/version.rb +1 -1
  34. data/lib/anthropic.rb +19 -10
  35. data/manifest.yaml +1 -0
  36. data/rbi/anthropic/helpers/input_schema/base_model.rbi +7 -2
  37. data/rbi/anthropic/helpers/tools/base_tool.rbi +51 -0
  38. data/rbi/anthropic/helpers/tools/runner.rbi +40 -0
  39. data/rbi/anthropic/helpers/tools.rbi +5 -0
  40. data/rbi/anthropic/internal/transport/base_client.rbi +5 -0
  41. data/rbi/anthropic/internal/transport/pooled_net_requester.rbi +6 -2
  42. data/rbi/anthropic/internal/type/base_model.rbi +8 -4
  43. data/rbi/anthropic/models/beta/beta_all_thinking_turns.rbi +30 -0
  44. data/rbi/anthropic/models/beta/beta_clear_thinking_20251015_edit.rbi +109 -0
  45. data/rbi/anthropic/models/beta/beta_clear_thinking_20251015_edit_response.rbi +61 -0
  46. data/rbi/anthropic/models/beta/beta_context_management_config.rbi +51 -4
  47. data/rbi/anthropic/models/beta/beta_context_management_response.rbi +32 -3
  48. data/rbi/anthropic/models/beta/beta_mcp_tool_use_block.rbi +3 -3
  49. data/rbi/anthropic/models/beta/beta_mcp_tool_use_block_param.rbi +3 -3
  50. data/rbi/anthropic/models/beta/beta_server_tool_use_block.rbi +3 -3
  51. data/rbi/anthropic/models/beta/beta_server_tool_use_block_param.rbi +3 -3
  52. data/rbi/anthropic/models/beta/beta_thinking_turns.rbi +33 -0
  53. data/rbi/anthropic/models/beta/beta_tool.rbi +3 -3
  54. data/rbi/anthropic/models/beta/beta_tool_use_block.rbi +8 -3
  55. data/rbi/anthropic/models/beta/beta_tool_use_block_param.rbi +3 -3
  56. data/rbi/anthropic/models/model.rbi +0 -11
  57. data/rbi/anthropic/models/server_tool_use_block.rbi +8 -3
  58. data/rbi/anthropic/models/server_tool_use_block_param.rbi +3 -3
  59. data/rbi/anthropic/models/tool.rbi +3 -3
  60. data/rbi/anthropic/models/tool_use_block.rbi +11 -3
  61. data/rbi/anthropic/models/tool_use_block_param.rbi +3 -3
  62. data/rbi/anthropic/resources/beta/messages.rbi +296 -0
  63. data/sig/anthropic/internal/transport/base_client.rbs +2 -0
  64. data/sig/anthropic/internal/transport/pooled_net_requester.rbs +4 -1
  65. data/sig/anthropic/models/beta/beta_all_thinking_turns.rbs +17 -0
  66. data/sig/anthropic/models/beta/beta_clear_thinking_20251015_edit.rbs +44 -0
  67. data/sig/anthropic/models/beta/beta_clear_thinking_20251015_edit_response.rbs +34 -0
  68. data/sig/anthropic/models/beta/beta_context_management_config.rbs +18 -6
  69. data/sig/anthropic/models/beta/beta_context_management_response.rbs +14 -4
  70. data/sig/anthropic/models/beta/beta_mcp_tool_use_block.rbs +4 -4
  71. data/sig/anthropic/models/beta/beta_mcp_tool_use_block_param.rbs +4 -4
  72. data/sig/anthropic/models/beta/beta_server_tool_use_block.rbs +4 -4
  73. data/sig/anthropic/models/beta/beta_server_tool_use_block_param.rbs +4 -4
  74. data/sig/anthropic/models/beta/beta_thinking_turns.rbs +19 -0
  75. data/sig/anthropic/models/beta/beta_tool.rbs +8 -4
  76. data/sig/anthropic/models/beta/beta_tool_use_block.rbs +9 -4
  77. data/sig/anthropic/models/beta/beta_tool_use_block_param.rbs +4 -4
  78. data/sig/anthropic/models/model.rbs +0 -11
  79. data/sig/anthropic/models/server_tool_use_block.rbs +9 -4
  80. data/sig/anthropic/models/server_tool_use_block_param.rbs +4 -4
  81. data/sig/anthropic/models/tool.rbs +8 -4
  82. data/sig/anthropic/models/tool_use_block.rbs +9 -4
  83. data/sig/anthropic/models/tool_use_block_param.rbs +4 -4
  84. metadata +23 -4
  85. data/lib/anthropic/helpers/input_schema/property_mapping.rb +0 -47
  86. /data/rbi/anthropic/helpers/{structured_output.rbi → input_schema.rbi} +0 -0
@@ -0,0 +1,19 @@
1
+ module Anthropic
2
+ module Models
3
+ class BetaThinkingTurns = Beta::BetaThinkingTurns
4
+
5
+ module Beta
6
+ type beta_thinking_turns = { type: :thinking_turns, value: Integer }
7
+
8
+ class BetaThinkingTurns < Anthropic::Internal::Type::BaseModel
9
+ attr_accessor type: :thinking_turns
10
+
11
+ attr_accessor value: Integer
12
+
13
+ def initialize: (value: Integer, ?type: :thinking_turns) -> void
14
+
15
+ def to_hash: -> { type: :thinking_turns, value: Integer }
16
+ end
17
+ end
18
+ end
19
+ end
@@ -42,24 +42,28 @@ module Anthropic
42
42
  }
43
43
 
44
44
  type input_schema =
45
- { type: :object, properties: top?, required: ::Array[String]? }
45
+ {
46
+ type: :object,
47
+ properties: ::Hash[Symbol, top]?,
48
+ required: ::Array[String]?
49
+ }
46
50
 
47
51
  class InputSchema < Anthropic::Internal::Type::BaseModel
48
52
  attr_accessor type: :object
49
53
 
50
- attr_accessor properties: top?
54
+ attr_accessor properties: ::Hash[Symbol, top]?
51
55
 
52
56
  attr_accessor required: ::Array[String]?
53
57
 
54
58
  def initialize: (
55
- ?properties: top?,
59
+ ?properties: ::Hash[Symbol, top]?,
56
60
  ?required: ::Array[String]?,
57
61
  ?type: :object
58
62
  ) -> void
59
63
 
60
64
  def to_hash: -> {
61
65
  type: :object,
62
- properties: top?,
66
+ properties: ::Hash[Symbol, top]?,
63
67
  required: ::Array[String]?
64
68
  }
65
69
  end
@@ -4,12 +4,17 @@ module Anthropic
4
4
 
5
5
  module Beta
6
6
  type beta_tool_use_block =
7
- { id: String, input: top, name: String, type: :tool_use }
7
+ {
8
+ id: String,
9
+ input: ::Hash[Symbol, top],
10
+ name: String,
11
+ type: :tool_use
12
+ }
8
13
 
9
14
  class BetaToolUseBlock < Anthropic::Internal::Type::BaseModel
10
15
  attr_accessor id: String
11
16
 
12
- attr_accessor input: top
17
+ attr_accessor input: ::Hash[Symbol, top]
13
18
 
14
19
  attr_accessor name: String
15
20
 
@@ -17,14 +22,14 @@ module Anthropic
17
22
 
18
23
  def initialize: (
19
24
  id: String,
20
- input: top,
25
+ input: ::Hash[Symbol, top],
21
26
  name: String,
22
27
  ?type: :tool_use
23
28
  ) -> void
24
29
 
25
30
  def to_hash: -> {
26
31
  id: String,
27
- input: top,
32
+ input: ::Hash[Symbol, top],
28
33
  name: String,
29
34
  type: :tool_use
30
35
  }
@@ -6,7 +6,7 @@ module Anthropic
6
6
  type beta_tool_use_block_param =
7
7
  {
8
8
  id: String,
9
- input: top,
9
+ input: ::Hash[Symbol, top],
10
10
  name: String,
11
11
  type: :tool_use,
12
12
  cache_control: Anthropic::Beta::BetaCacheControlEphemeral?
@@ -15,7 +15,7 @@ module Anthropic
15
15
  class BetaToolUseBlockParam < Anthropic::Internal::Type::BaseModel
16
16
  attr_accessor id: String
17
17
 
18
- attr_accessor input: top
18
+ attr_accessor input: ::Hash[Symbol, top]
19
19
 
20
20
  attr_accessor name: String
21
21
 
@@ -25,7 +25,7 @@ module Anthropic
25
25
 
26
26
  def initialize: (
27
27
  id: String,
28
- input: top,
28
+ input: ::Hash[Symbol, top],
29
29
  name: String,
30
30
  ?cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
31
31
  ?type: :tool_use
@@ -33,7 +33,7 @@ module Anthropic
33
33
 
34
34
  def to_hash: -> {
35
35
  id: String,
36
- input: top,
36
+ input: ::Hash[Symbol, top],
37
37
  name: String,
38
38
  type: :tool_use,
39
39
  cache_control: Anthropic::Beta::BetaCacheControlEphemeral?
@@ -12,9 +12,6 @@ module Anthropic
12
12
  | :"claude-4-sonnet-20250514"
13
13
  | :"claude-sonnet-4-5"
14
14
  | :"claude-sonnet-4-5-20250929"
15
- | :"claude-3-5-sonnet-latest"
16
- | :"claude-3-5-sonnet-20241022"
17
- | :"claude-3-5-sonnet-20240620"
18
15
  | :"claude-opus-4-0"
19
16
  | :"claude-opus-4-20250514"
20
17
  | :"claude-4-opus-20250514"
@@ -62,14 +59,6 @@ module Anthropic
62
59
  # Our best model for real-world agents and coding
63
60
  CLAUDE_SONNET_4_5_20250929: :"claude-sonnet-4-5-20250929"
64
61
 
65
- # Our previous most intelligent model
66
- CLAUDE_3_5_SONNET_LATEST: :"claude-3-5-sonnet-latest"
67
-
68
- # Our previous most intelligent model
69
- CLAUDE_3_5_SONNET_20241022: :"claude-3-5-sonnet-20241022"
70
-
71
- CLAUDE_3_5_SONNET_20240620: :"claude-3-5-sonnet-20240620"
72
-
73
62
  # Our most capable model
74
63
  CLAUDE_OPUS_4_0: :"claude-opus-4-0"
75
64
 
@@ -1,12 +1,17 @@
1
1
  module Anthropic
2
2
  module Models
3
3
  type server_tool_use_block =
4
- { id: String, input: top, name: :web_search, type: :server_tool_use }
4
+ {
5
+ id: String,
6
+ input: ::Hash[Symbol, top],
7
+ name: :web_search,
8
+ type: :server_tool_use
9
+ }
5
10
 
6
11
  class ServerToolUseBlock < Anthropic::Internal::Type::BaseModel
7
12
  attr_accessor id: String
8
13
 
9
- attr_accessor input: top
14
+ attr_accessor input: ::Hash[Symbol, top]
10
15
 
11
16
  attr_accessor name: :web_search
12
17
 
@@ -14,14 +19,14 @@ module Anthropic
14
19
 
15
20
  def initialize: (
16
21
  id: String,
17
- input: top,
22
+ input: ::Hash[Symbol, top],
18
23
  ?name: :web_search,
19
24
  ?type: :server_tool_use
20
25
  ) -> void
21
26
 
22
27
  def to_hash: -> {
23
28
  id: String,
24
- input: top,
29
+ input: ::Hash[Symbol, top],
25
30
  name: :web_search,
26
31
  type: :server_tool_use
27
32
  }
@@ -3,7 +3,7 @@ module Anthropic
3
3
  type server_tool_use_block_param =
4
4
  {
5
5
  id: String,
6
- input: top,
6
+ input: ::Hash[Symbol, top],
7
7
  name: :web_search,
8
8
  type: :server_tool_use,
9
9
  cache_control: Anthropic::CacheControlEphemeral?
@@ -12,7 +12,7 @@ module Anthropic
12
12
  class ServerToolUseBlockParam < Anthropic::Internal::Type::BaseModel
13
13
  attr_accessor id: String
14
14
 
15
- attr_accessor input: top
15
+ attr_accessor input: ::Hash[Symbol, top]
16
16
 
17
17
  attr_accessor name: :web_search
18
18
 
@@ -22,7 +22,7 @@ module Anthropic
22
22
 
23
23
  def initialize: (
24
24
  id: String,
25
- input: top,
25
+ input: ::Hash[Symbol, top],
26
26
  ?cache_control: Anthropic::CacheControlEphemeral?,
27
27
  ?name: :web_search,
28
28
  ?type: :server_tool_use
@@ -30,7 +30,7 @@ module Anthropic
30
30
 
31
31
  def to_hash: -> {
32
32
  id: String,
33
- input: top,
33
+ input: ::Hash[Symbol, top],
34
34
  name: :web_search,
35
35
  type: :server_tool_use,
36
36
  cache_control: Anthropic::CacheControlEphemeral?
@@ -39,24 +39,28 @@ module Anthropic
39
39
  }
40
40
 
41
41
  type input_schema =
42
- { type: :object, properties: top?, required: ::Array[String]? }
42
+ {
43
+ type: :object,
44
+ properties: ::Hash[Symbol, top]?,
45
+ required: ::Array[String]?
46
+ }
43
47
 
44
48
  class InputSchema < Anthropic::Internal::Type::BaseModel
45
49
  attr_accessor type: :object
46
50
 
47
- attr_accessor properties: top?
51
+ attr_accessor properties: ::Hash[Symbol, top]?
48
52
 
49
53
  attr_accessor required: ::Array[String]?
50
54
 
51
55
  def initialize: (
52
- ?properties: top?,
56
+ ?properties: ::Hash[Symbol, top]?,
53
57
  ?required: ::Array[String]?,
54
58
  ?type: :object
55
59
  ) -> void
56
60
 
57
61
  def to_hash: -> {
58
62
  type: :object,
59
- properties: top?,
63
+ properties: ::Hash[Symbol, top]?,
60
64
  required: ::Array[String]?
61
65
  }
62
66
  end
@@ -1,12 +1,12 @@
1
1
  module Anthropic
2
2
  module Models
3
3
  type tool_use_block =
4
- { id: String, input: top, name: String, type: :tool_use }
4
+ { id: String, input: ::Hash[Symbol, top], name: String, type: :tool_use }
5
5
 
6
6
  class ToolUseBlock < Anthropic::Internal::Type::BaseModel
7
7
  attr_accessor id: String
8
8
 
9
- attr_accessor input: top
9
+ attr_accessor input: ::Hash[Symbol, top]
10
10
 
11
11
  attr_accessor name: String
12
12
 
@@ -14,12 +14,17 @@ module Anthropic
14
14
 
15
15
  def initialize: (
16
16
  id: String,
17
- input: top,
17
+ input: ::Hash[Symbol, top],
18
18
  name: String,
19
19
  ?type: :tool_use
20
20
  ) -> void
21
21
 
22
- def to_hash: -> { id: String, input: top, name: String, type: :tool_use }
22
+ def to_hash: -> {
23
+ id: String,
24
+ input: ::Hash[Symbol, top],
25
+ name: String,
26
+ type: :tool_use
27
+ }
23
28
  end
24
29
  end
25
30
  end
@@ -3,7 +3,7 @@ module Anthropic
3
3
  type tool_use_block_param =
4
4
  {
5
5
  id: String,
6
- input: top,
6
+ input: ::Hash[Symbol, top],
7
7
  name: String,
8
8
  type: :tool_use,
9
9
  cache_control: Anthropic::CacheControlEphemeral?
@@ -12,7 +12,7 @@ module Anthropic
12
12
  class ToolUseBlockParam < Anthropic::Internal::Type::BaseModel
13
13
  attr_accessor id: String
14
14
 
15
- attr_accessor input: top
15
+ attr_accessor input: ::Hash[Symbol, top]
16
16
 
17
17
  attr_accessor name: String
18
18
 
@@ -22,7 +22,7 @@ module Anthropic
22
22
 
23
23
  def initialize: (
24
24
  id: String,
25
- input: top,
25
+ input: ::Hash[Symbol, top],
26
26
  name: String,
27
27
  ?cache_control: Anthropic::CacheControlEphemeral?,
28
28
  ?type: :tool_use
@@ -30,7 +30,7 @@ module Anthropic
30
30
 
31
31
  def to_hash: -> {
32
32
  id: String,
33
- input: top,
33
+ input: ::Hash[Symbol, top],
34
34
  name: String,
35
35
  type: :tool_use,
36
36
  cache_control: Anthropic::CacheControlEphemeral?
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.14.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-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool
@@ -48,11 +48,15 @@ files:
48
48
  - lib/anthropic/helpers/input_schema/enum_of.rb
49
49
  - lib/anthropic/helpers/input_schema/json_schema_converter.rb
50
50
  - lib/anthropic/helpers/input_schema/parsed_json.rb
51
- - lib/anthropic/helpers/input_schema/property_mapping.rb
51
+ - lib/anthropic/helpers/input_schema/supported_schemas.rb
52
52
  - lib/anthropic/helpers/input_schema/union_of.rb
53
+ - lib/anthropic/helpers/messages.rb
53
54
  - lib/anthropic/helpers/streaming.rb
54
55
  - lib/anthropic/helpers/streaming/events.rb
55
56
  - lib/anthropic/helpers/streaming/message_stream.rb
57
+ - lib/anthropic/helpers/tools.rb
58
+ - lib/anthropic/helpers/tools/base_tool.rb
59
+ - lib/anthropic/helpers/tools/runner.rb
56
60
  - lib/anthropic/helpers/vertex/client.rb
57
61
  - lib/anthropic/input_schema.rb
58
62
  - lib/anthropic/internal.rb
@@ -82,6 +86,7 @@ files:
82
86
  - lib/anthropic/models/authentication_error.rb
83
87
  - lib/anthropic/models/base64_image_source.rb
84
88
  - lib/anthropic/models/base64_pdf_source.rb
89
+ - lib/anthropic/models/beta/beta_all_thinking_turns.rb
85
90
  - lib/anthropic/models/beta/beta_base64_image_source.rb
86
91
  - lib/anthropic/models/beta/beta_base64_pdf_block.rb
87
92
  - lib/anthropic/models/beta/beta_base64_pdf_source.rb
@@ -108,6 +113,8 @@ files:
108
113
  - lib/anthropic/models/beta/beta_citations_config_param.rb
109
114
  - lib/anthropic/models/beta/beta_citations_delta.rb
110
115
  - lib/anthropic/models/beta/beta_citations_web_search_result_location.rb
116
+ - lib/anthropic/models/beta/beta_clear_thinking_20251015_edit.rb
117
+ - lib/anthropic/models/beta/beta_clear_thinking_20251015_edit_response.rb
111
118
  - lib/anthropic/models/beta/beta_clear_tool_uses_20250919_edit.rb
112
119
  - lib/anthropic/models/beta/beta_clear_tool_uses_20250919_edit_response.rb
113
120
  - lib/anthropic/models/beta/beta_code_execution_output_block.rb
@@ -202,6 +209,7 @@ files:
202
209
  - lib/anthropic/models/beta/beta_thinking_config_enabled.rb
203
210
  - lib/anthropic/models/beta/beta_thinking_config_param.rb
204
211
  - lib/anthropic/models/beta/beta_thinking_delta.rb
212
+ - lib/anthropic/models/beta/beta_thinking_turns.rb
205
213
  - lib/anthropic/models/beta/beta_tool.rb
206
214
  - lib/anthropic/models/beta/beta_tool_bash_20241022.rb
207
215
  - lib/anthropic/models/beta/beta_tool_bash_20250124.rb
@@ -430,6 +438,7 @@ files:
430
438
  - rbi/anthropic/errors.rbi
431
439
  - rbi/anthropic/file_part.rbi
432
440
  - rbi/anthropic/helpers/bedrock/client.rbi
441
+ - rbi/anthropic/helpers/input_schema.rbi
433
442
  - rbi/anthropic/helpers/input_schema/array_of.rbi
434
443
  - rbi/anthropic/helpers/input_schema/base_model.rbi
435
444
  - rbi/anthropic/helpers/input_schema/boolean.rbi
@@ -438,7 +447,9 @@ files:
438
447
  - rbi/anthropic/helpers/input_schema/union_of.rbi
439
448
  - rbi/anthropic/helpers/streaming/events.rbi
440
449
  - rbi/anthropic/helpers/streaming/message_stream.rbi
441
- - rbi/anthropic/helpers/structured_output.rbi
450
+ - rbi/anthropic/helpers/tools.rbi
451
+ - rbi/anthropic/helpers/tools/base_tool.rbi
452
+ - rbi/anthropic/helpers/tools/runner.rbi
442
453
  - rbi/anthropic/helpers/vertex/client.rbi
443
454
  - rbi/anthropic/input_schema.rbi
444
455
  - rbi/anthropic/internal.rbi
@@ -468,6 +479,7 @@ files:
468
479
  - rbi/anthropic/models/authentication_error.rbi
469
480
  - rbi/anthropic/models/base64_image_source.rbi
470
481
  - rbi/anthropic/models/base64_pdf_source.rbi
482
+ - rbi/anthropic/models/beta/beta_all_thinking_turns.rbi
471
483
  - rbi/anthropic/models/beta/beta_base64_image_source.rbi
472
484
  - rbi/anthropic/models/beta/beta_base64_pdf_block.rbi
473
485
  - rbi/anthropic/models/beta/beta_base64_pdf_source.rbi
@@ -494,6 +506,8 @@ files:
494
506
  - rbi/anthropic/models/beta/beta_citations_config_param.rbi
495
507
  - rbi/anthropic/models/beta/beta_citations_delta.rbi
496
508
  - rbi/anthropic/models/beta/beta_citations_web_search_result_location.rbi
509
+ - rbi/anthropic/models/beta/beta_clear_thinking_20251015_edit.rbi
510
+ - rbi/anthropic/models/beta/beta_clear_thinking_20251015_edit_response.rbi
497
511
  - rbi/anthropic/models/beta/beta_clear_tool_uses_20250919_edit.rbi
498
512
  - rbi/anthropic/models/beta/beta_clear_tool_uses_20250919_edit_response.rbi
499
513
  - rbi/anthropic/models/beta/beta_code_execution_output_block.rbi
@@ -588,6 +602,7 @@ files:
588
602
  - rbi/anthropic/models/beta/beta_thinking_config_enabled.rbi
589
603
  - rbi/anthropic/models/beta/beta_thinking_config_param.rbi
590
604
  - rbi/anthropic/models/beta/beta_thinking_delta.rbi
605
+ - rbi/anthropic/models/beta/beta_thinking_turns.rbi
591
606
  - rbi/anthropic/models/beta/beta_tool.rbi
592
607
  - rbi/anthropic/models/beta/beta_tool_bash_20241022.rbi
593
608
  - rbi/anthropic/models/beta/beta_tool_bash_20250124.rbi
@@ -845,6 +860,7 @@ files:
845
860
  - sig/anthropic/models/authentication_error.rbs
846
861
  - sig/anthropic/models/base64_image_source.rbs
847
862
  - sig/anthropic/models/base64_pdf_source.rbs
863
+ - sig/anthropic/models/beta/beta_all_thinking_turns.rbs
848
864
  - sig/anthropic/models/beta/beta_base64_image_source.rbs
849
865
  - sig/anthropic/models/beta/beta_base64_pdf_block.rbs
850
866
  - sig/anthropic/models/beta/beta_base64_pdf_source.rbs
@@ -871,6 +887,8 @@ files:
871
887
  - sig/anthropic/models/beta/beta_citations_config_param.rbs
872
888
  - sig/anthropic/models/beta/beta_citations_delta.rbs
873
889
  - sig/anthropic/models/beta/beta_citations_web_search_result_location.rbs
890
+ - sig/anthropic/models/beta/beta_clear_thinking_20251015_edit.rbs
891
+ - sig/anthropic/models/beta/beta_clear_thinking_20251015_edit_response.rbs
874
892
  - sig/anthropic/models/beta/beta_clear_tool_uses_20250919_edit.rbs
875
893
  - sig/anthropic/models/beta/beta_clear_tool_uses_20250919_edit_response.rbs
876
894
  - sig/anthropic/models/beta/beta_code_execution_output_block.rbs
@@ -965,6 +983,7 @@ files:
965
983
  - sig/anthropic/models/beta/beta_thinking_config_enabled.rbs
966
984
  - sig/anthropic/models/beta/beta_thinking_config_param.rbs
967
985
  - sig/anthropic/models/beta/beta_thinking_delta.rbs
986
+ - sig/anthropic/models/beta/beta_thinking_turns.rbs
968
987
  - sig/anthropic/models/beta/beta_tool.rbs
969
988
  - sig/anthropic/models/beta/beta_tool_bash_20241022.rbs
970
989
  - sig/anthropic/models/beta/beta_tool_bash_20250124.rbs
@@ -1,47 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Anthropic
4
- module Helpers
5
- module InputSchema
6
- # rubocop:disable Style/MutableConstant
7
- PROPERTY_MAPPING = {
8
- # Numeric properties:
9
- minimum: :minimum,
10
- maximum: :maximum,
11
- exclusive_minimum: :exclusiveMinimum,
12
- exclusive_maximum: :exclusiveMaximum,
13
- multiple_of: :multipleOf,
14
-
15
- # String properties:
16
- min_length: :minLength,
17
- max_length: :maxLength,
18
- pattern: :pattern,
19
- format: :format,
20
- content_media_type: :contentMediaType,
21
- content_encoding: :contentEncoding,
22
-
23
- # Array properties:
24
- min_items: :minItems,
25
- max_items: :maxItems,
26
- unique_items: :uniqueItems,
27
- prefix_items: :prefixItems,
28
- contains: :contains,
29
- min_contains: :minContains,
30
- max_contains: :maxContains,
31
-
32
- # Object properties:
33
- pattern_properties: :patternProperties,
34
- dependent_schemas: :dependentSchemas,
35
- dependent_required: :dependentRequired,
36
- property_names: :propertyNames,
37
-
38
- # Metadata:
39
- default: :default,
40
- examples: :examples,
41
-
42
- doc: :description
43
- }
44
- # rubocop:enable Style/MutableConstant
45
- end
46
- end
47
- end