anthropic 1.11.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 (177) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +29 -0
  3. data/README.md +1 -1
  4. data/lib/anthropic/helpers/streaming/message_stream.rb +3 -0
  5. data/lib/anthropic/internal/page_cursor.rb +92 -0
  6. data/lib/anthropic/internal/token_page.rb +92 -0
  7. data/lib/anthropic/internal/transport/pooled_net_requester.rb +30 -24
  8. data/lib/anthropic/models/anthropic_beta.rb +3 -0
  9. data/lib/anthropic/models/beta/beta_all_thinking_turns.rb +19 -0
  10. data/lib/anthropic/models/beta/beta_clear_thinking_20251015_edit.rb +48 -0
  11. data/lib/anthropic/models/beta/beta_clear_thinking_20251015_edit_response.rb +36 -0
  12. data/lib/anthropic/models/beta/beta_clear_tool_uses_20250919_edit_response.rb +0 -2
  13. data/lib/anthropic/models/beta/beta_container.rb +9 -1
  14. data/lib/anthropic/models/beta/beta_container_params.rb +34 -0
  15. data/lib/anthropic/models/beta/beta_context_management_config.rb +17 -5
  16. data/lib/anthropic/models/beta/beta_context_management_response.rb +16 -5
  17. data/lib/anthropic/models/beta/beta_mcp_tool_use_block_param.rb +3 -3
  18. data/lib/anthropic/models/beta/beta_message.rb +4 -2
  19. data/lib/anthropic/models/beta/beta_raw_message_delta_event.rb +2 -2
  20. data/lib/anthropic/models/beta/beta_server_tool_use_block_param.rb +3 -3
  21. data/lib/anthropic/models/beta/beta_skill.rb +51 -0
  22. data/lib/anthropic/models/beta/beta_skill_params.rb +51 -0
  23. data/lib/anthropic/models/beta/beta_thinking_config_enabled.rb +1 -1
  24. data/lib/anthropic/models/beta/beta_thinking_config_param.rb +1 -1
  25. data/lib/anthropic/models/beta/beta_thinking_turns.rb +25 -0
  26. data/lib/anthropic/models/beta/beta_tool.rb +5 -3
  27. data/lib/anthropic/models/beta/beta_tool_use_block_param.rb +3 -3
  28. data/lib/anthropic/models/beta/message_count_tokens_params.rb +15 -12
  29. data/lib/anthropic/models/beta/message_create_params.rb +34 -18
  30. data/lib/anthropic/models/beta/messages/batch_create_params.rb +39 -20
  31. data/lib/anthropic/models/beta/skill_create_params.rb +49 -0
  32. data/lib/anthropic/models/beta/skill_create_response.rb +84 -0
  33. data/lib/anthropic/models/beta/skill_delete_params.rb +24 -0
  34. data/lib/anthropic/models/beta/skill_delete_response.rb +34 -0
  35. data/lib/anthropic/models/beta/skill_list_params.rb +61 -0
  36. data/lib/anthropic/models/beta/skill_list_response.rb +84 -0
  37. data/lib/anthropic/models/beta/skill_retrieve_params.rb +24 -0
  38. data/lib/anthropic/models/beta/skill_retrieve_response.rb +84 -0
  39. data/lib/anthropic/models/beta/skills/version_create_params.rb +42 -0
  40. data/lib/anthropic/models/beta/skills/version_create_response.rb +92 -0
  41. data/lib/anthropic/models/beta/skills/version_delete_params.rb +39 -0
  42. data/lib/anthropic/models/beta/skills/version_delete_response.rb +36 -0
  43. data/lib/anthropic/models/beta/skills/version_list_params.rb +47 -0
  44. data/lib/anthropic/models/beta/skills/version_list_response.rb +92 -0
  45. data/lib/anthropic/models/beta/skills/version_retrieve_params.rb +39 -0
  46. data/lib/anthropic/models/beta/skills/version_retrieve_response.rb +92 -0
  47. data/lib/anthropic/models/completion_create_params.rb +3 -4
  48. data/lib/anthropic/models/message_count_tokens_params.rb +10 -10
  49. data/lib/anthropic/models/message_create_params.rb +13 -13
  50. data/lib/anthropic/models/messages/batch_create_params.rb +14 -15
  51. data/lib/anthropic/models/model.rb +6 -20
  52. data/lib/anthropic/models/server_tool_use_block_param.rb +3 -3
  53. data/lib/anthropic/models/stop_reason.rb +0 -1
  54. data/lib/anthropic/models/thinking_config_enabled.rb +1 -1
  55. data/lib/anthropic/models/thinking_config_param.rb +1 -1
  56. data/lib/anthropic/models/tool.rb +5 -3
  57. data/lib/anthropic/models/tool_use_block_param.rb +3 -3
  58. data/lib/anthropic/resources/beta/messages.rb +5 -5
  59. data/lib/anthropic/resources/beta/skills/versions.rb +154 -0
  60. data/lib/anthropic/resources/beta/skills.rb +144 -0
  61. data/lib/anthropic/resources/beta.rb +4 -0
  62. data/lib/anthropic/resources/completions.rb +4 -4
  63. data/lib/anthropic/version.rb +1 -1
  64. data/lib/anthropic.rb +27 -0
  65. data/rbi/anthropic/internal/page_cursor.rbi +25 -0
  66. data/rbi/anthropic/internal/token_page.rbi +25 -0
  67. data/rbi/anthropic/models/anthropic_beta.rbi +2 -0
  68. data/rbi/anthropic/models/beta/beta_all_thinking_turns.rbi +30 -0
  69. data/rbi/anthropic/models/beta/beta_clear_thinking_20251015_edit.rbi +109 -0
  70. data/rbi/anthropic/models/beta/beta_clear_thinking_20251015_edit_response.rbi +61 -0
  71. data/rbi/anthropic/models/beta/beta_clear_tool_uses_20250919_edit_response.rbi +0 -1
  72. data/rbi/anthropic/models/beta/beta_container.rbi +23 -3
  73. data/rbi/anthropic/models/beta/beta_container_params.rbi +54 -0
  74. data/rbi/anthropic/models/beta/beta_context_management_config.rbi +51 -5
  75. data/rbi/anthropic/models/beta/beta_context_management_response.rbi +32 -4
  76. data/rbi/anthropic/models/beta/beta_mcp_tool_use_block.rbi +3 -3
  77. data/rbi/anthropic/models/beta/beta_mcp_tool_use_block_param.rbi +3 -3
  78. data/rbi/anthropic/models/beta/beta_message.rbi +6 -2
  79. data/rbi/anthropic/models/beta/beta_raw_message_delta_event.rbi +2 -2
  80. data/rbi/anthropic/models/beta/beta_server_tool_use_block.rbi +3 -3
  81. data/rbi/anthropic/models/beta/beta_server_tool_use_block_param.rbi +3 -3
  82. data/rbi/anthropic/models/beta/beta_skill.rbi +80 -0
  83. data/rbi/anthropic/models/beta/beta_skill_params.rbi +91 -0
  84. data/rbi/anthropic/models/beta/beta_thinking_config_enabled.rbi +2 -2
  85. data/rbi/anthropic/models/beta/beta_thinking_config_param.rbi +1 -1
  86. data/rbi/anthropic/models/beta/beta_thinking_turns.rbi +33 -0
  87. data/rbi/anthropic/models/beta/beta_tool.rbi +3 -3
  88. data/rbi/anthropic/models/beta/beta_tool_use_block.rbi +8 -3
  89. data/rbi/anthropic/models/beta/beta_tool_use_block_param.rbi +3 -3
  90. data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +27 -21
  91. data/rbi/anthropic/models/beta/message_create_params.rbi +61 -29
  92. data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +70 -33
  93. data/rbi/anthropic/models/beta/skill_create_params.rbi +90 -0
  94. data/rbi/anthropic/models/beta/skill_create_response.rbi +118 -0
  95. data/rbi/anthropic/models/beta/skill_delete_params.rbi +62 -0
  96. data/rbi/anthropic/models/beta/skill_delete_response.rbi +46 -0
  97. data/rbi/anthropic/models/beta/skill_list_params.rbi +109 -0
  98. data/rbi/anthropic/models/beta/skill_list_response.rbi +118 -0
  99. data/rbi/anthropic/models/beta/skill_retrieve_params.rbi +62 -0
  100. data/rbi/anthropic/models/beta/skill_retrieve_response.rbi +118 -0
  101. data/rbi/anthropic/models/beta/skills/version_create_params.rbi +79 -0
  102. data/rbi/anthropic/models/beta/skills/version_create_response.rbi +124 -0
  103. data/rbi/anthropic/models/beta/skills/version_delete_params.rbi +77 -0
  104. data/rbi/anthropic/models/beta/skills/version_delete_response.rbi +48 -0
  105. data/rbi/anthropic/models/beta/skills/version_list_params.rbi +85 -0
  106. data/rbi/anthropic/models/beta/skills/version_list_response.rbi +124 -0
  107. data/rbi/anthropic/models/beta/skills/version_retrieve_params.rbi +77 -0
  108. data/rbi/anthropic/models/beta/skills/version_retrieve_response.rbi +124 -0
  109. data/rbi/anthropic/models/completion_create_params.rbi +6 -8
  110. data/rbi/anthropic/models/message_count_tokens_params.rbi +19 -19
  111. data/rbi/anthropic/models/message_create_params.rbi +24 -24
  112. data/rbi/anthropic/models/messages/batch_create_params.rbi +26 -28
  113. data/rbi/anthropic/models/model.rbi +0 -11
  114. data/rbi/anthropic/models/server_tool_use_block.rbi +8 -3
  115. data/rbi/anthropic/models/server_tool_use_block_param.rbi +3 -3
  116. data/rbi/anthropic/models/stop_reason.rbi +0 -5
  117. data/rbi/anthropic/models/thinking_config_enabled.rbi +2 -2
  118. data/rbi/anthropic/models/thinking_config_param.rbi +1 -1
  119. data/rbi/anthropic/models/tool.rbi +3 -3
  120. data/rbi/anthropic/models/tool_use_block.rbi +8 -3
  121. data/rbi/anthropic/models/tool_use_block_param.rbi +3 -3
  122. data/rbi/anthropic/resources/beta/messages.rbi +51 -36
  123. data/rbi/anthropic/resources/beta/skills/versions.rbi +124 -0
  124. data/rbi/anthropic/resources/beta/skills.rbi +118 -0
  125. data/rbi/anthropic/resources/beta.rbi +3 -0
  126. data/rbi/anthropic/resources/completions.rbi +10 -12
  127. data/rbi/anthropic/resources/messages.rbi +31 -31
  128. data/sig/anthropic/internal/page_cursor.rbs +15 -0
  129. data/sig/anthropic/internal/token_page.rbs +15 -0
  130. data/sig/anthropic/models/anthropic_beta.rbs +2 -0
  131. data/sig/anthropic/models/beta/beta_all_thinking_turns.rbs +17 -0
  132. data/sig/anthropic/models/beta/beta_clear_thinking_20251015_edit.rbs +44 -0
  133. data/sig/anthropic/models/beta/beta_clear_thinking_20251015_edit_response.rbs +34 -0
  134. data/sig/anthropic/models/beta/beta_container.rbs +18 -3
  135. data/sig/anthropic/models/beta/beta_container_params.rbs +26 -0
  136. data/sig/anthropic/models/beta/beta_context_management_config.rbs +18 -6
  137. data/sig/anthropic/models/beta/beta_context_management_response.rbs +14 -4
  138. data/sig/anthropic/models/beta/beta_mcp_tool_use_block.rbs +4 -4
  139. data/sig/anthropic/models/beta/beta_mcp_tool_use_block_param.rbs +4 -4
  140. data/sig/anthropic/models/beta/beta_server_tool_use_block.rbs +4 -4
  141. data/sig/anthropic/models/beta/beta_server_tool_use_block_param.rbs +4 -4
  142. data/sig/anthropic/models/beta/beta_skill.rbs +45 -0
  143. data/sig/anthropic/models/beta/beta_skill_params.rbs +47 -0
  144. data/sig/anthropic/models/beta/beta_thinking_turns.rbs +19 -0
  145. data/sig/anthropic/models/beta/beta_tool.rbs +8 -4
  146. data/sig/anthropic/models/beta/beta_tool_use_block.rbs +9 -4
  147. data/sig/anthropic/models/beta/beta_tool_use_block_param.rbs +4 -4
  148. data/sig/anthropic/models/beta/message_create_params.rbs +12 -4
  149. data/sig/anthropic/models/beta/messages/batch_create_params.rbs +12 -4
  150. data/sig/anthropic/models/beta/skill_create_params.rbs +42 -0
  151. data/sig/anthropic/models/beta/skill_create_response.rbs +52 -0
  152. data/sig/anthropic/models/beta/skill_delete_params.rbs +30 -0
  153. data/sig/anthropic/models/beta/skill_delete_response.rbs +17 -0
  154. data/sig/anthropic/models/beta/skill_list_params.rbs +49 -0
  155. data/sig/anthropic/models/beta/skill_list_response.rbs +52 -0
  156. data/sig/anthropic/models/beta/skill_retrieve_params.rbs +30 -0
  157. data/sig/anthropic/models/beta/skill_retrieve_response.rbs +52 -0
  158. data/sig/anthropic/models/beta/skills/version_create_params.rbs +39 -0
  159. data/sig/anthropic/models/beta/skills/version_create_response.rbs +59 -0
  160. data/sig/anthropic/models/beta/skills/version_delete_params.rbs +39 -0
  161. data/sig/anthropic/models/beta/skills/version_delete_response.rbs +19 -0
  162. data/sig/anthropic/models/beta/skills/version_list_params.rbs +44 -0
  163. data/sig/anthropic/models/beta/skills/version_list_response.rbs +59 -0
  164. data/sig/anthropic/models/beta/skills/version_retrieve_params.rbs +39 -0
  165. data/sig/anthropic/models/beta/skills/version_retrieve_response.rbs +59 -0
  166. data/sig/anthropic/models/model.rbs +0 -11
  167. data/sig/anthropic/models/server_tool_use_block.rbs +9 -4
  168. data/sig/anthropic/models/server_tool_use_block_param.rbs +4 -4
  169. data/sig/anthropic/models/stop_reason.rbs +0 -2
  170. data/sig/anthropic/models/tool.rbs +8 -4
  171. data/sig/anthropic/models/tool_use_block.rbs +9 -4
  172. data/sig/anthropic/models/tool_use_block_param.rbs +4 -4
  173. data/sig/anthropic/resources/beta/messages.rbs +2 -2
  174. data/sig/anthropic/resources/beta/skills/versions.rbs +40 -0
  175. data/sig/anthropic/resources/beta/skills.rbs +38 -0
  176. data/sig/anthropic/resources/beta.rbs +2 -0
  177. metadata +83 -2
@@ -0,0 +1,47 @@
1
+ module Anthropic
2
+ module Models
3
+ class BetaSkillParams = Beta::BetaSkillParams
4
+
5
+ module Beta
6
+ type beta_skill_params =
7
+ {
8
+ skill_id: String,
9
+ type: Anthropic::Models::Beta::BetaSkillParams::type_,
10
+ version: String
11
+ }
12
+
13
+ class BetaSkillParams < Anthropic::Internal::Type::BaseModel
14
+ attr_accessor skill_id: String
15
+
16
+ attr_accessor type: Anthropic::Models::Beta::BetaSkillParams::type_
17
+
18
+ attr_reader version: String?
19
+
20
+ def version=: (String) -> String
21
+
22
+ def initialize: (
23
+ skill_id: String,
24
+ type: Anthropic::Models::Beta::BetaSkillParams::type_,
25
+ ?version: String
26
+ ) -> void
27
+
28
+ def to_hash: -> {
29
+ skill_id: String,
30
+ type: Anthropic::Models::Beta::BetaSkillParams::type_,
31
+ version: String
32
+ }
33
+
34
+ type type_ = :anthropic | :custom
35
+
36
+ module Type
37
+ extend Anthropic::Internal::Type::Enum
38
+
39
+ ANTHROPIC: :anthropic
40
+ CUSTOM: :custom
41
+
42
+ def self?.values: -> ::Array[Anthropic::Models::Beta::BetaSkillParams::type_]
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -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?
@@ -6,7 +6,7 @@ module Anthropic
6
6
  max_tokens: Integer,
7
7
  messages: ::Array[Anthropic::Beta::BetaMessageParam],
8
8
  model: Anthropic::Models::model,
9
- container: String?,
9
+ container: Anthropic::Models::Beta::MessageCreateParams::container?,
10
10
  context_management: Anthropic::Beta::BetaContextManagementConfig?,
11
11
  mcp_servers: ::Array[Anthropic::Beta::BetaRequestMCPServerURLDefinition],
12
12
  metadata: Anthropic::Beta::BetaMetadata,
@@ -33,7 +33,7 @@ module Anthropic
33
33
 
34
34
  attr_accessor model: Anthropic::Models::model
35
35
 
36
- attr_accessor container: String?
36
+ attr_accessor container: Anthropic::Models::Beta::MessageCreateParams::container?
37
37
 
38
38
  attr_accessor context_management: Anthropic::Beta::BetaContextManagementConfig?
39
39
 
@@ -105,7 +105,7 @@ module Anthropic
105
105
  max_tokens: Integer,
106
106
  messages: ::Array[Anthropic::Beta::BetaMessageParam],
107
107
  model: Anthropic::Models::model,
108
- ?container: String?,
108
+ ?container: Anthropic::Models::Beta::MessageCreateParams::container?,
109
109
  ?context_management: Anthropic::Beta::BetaContextManagementConfig?,
110
110
  ?mcp_servers: ::Array[Anthropic::Beta::BetaRequestMCPServerURLDefinition],
111
111
  ?metadata: Anthropic::Beta::BetaMetadata,
@@ -126,7 +126,7 @@ module Anthropic
126
126
  max_tokens: Integer,
127
127
  messages: ::Array[Anthropic::Beta::BetaMessageParam],
128
128
  model: Anthropic::Models::model,
129
- container: String?,
129
+ container: Anthropic::Models::Beta::MessageCreateParams::container?,
130
130
  context_management: Anthropic::Beta::BetaContextManagementConfig?,
131
131
  mcp_servers: ::Array[Anthropic::Beta::BetaRequestMCPServerURLDefinition],
132
132
  metadata: Anthropic::Beta::BetaMetadata,
@@ -143,6 +143,14 @@ module Anthropic
143
143
  request_options: Anthropic::RequestOptions
144
144
  }
145
145
 
146
+ type container = Anthropic::Beta::BetaContainerParams | String
147
+
148
+ module Container
149
+ extend Anthropic::Internal::Type::Union
150
+
151
+ def self?.variants: -> ::Array[Anthropic::Models::Beta::MessageCreateParams::container]
152
+ end
153
+
146
154
  type service_tier = :auto | :standard_only
147
155
 
148
156
  module ServiceTier
@@ -59,7 +59,7 @@ module Anthropic
59
59
  max_tokens: Integer,
60
60
  messages: ::Array[Anthropic::Beta::BetaMessageParam],
61
61
  model: Anthropic::Models::model,
62
- container: String?,
62
+ container: Anthropic::Models::Beta::Messages::BatchCreateParams::Request::Params::container?,
63
63
  context_management: Anthropic::Beta::BetaContextManagementConfig?,
64
64
  mcp_servers: ::Array[Anthropic::Beta::BetaRequestMCPServerURLDefinition],
65
65
  metadata: Anthropic::Beta::BetaMetadata,
@@ -82,7 +82,7 @@ module Anthropic
82
82
 
83
83
  attr_accessor model: Anthropic::Models::model
84
84
 
85
- attr_accessor container: String?
85
+ attr_accessor container: Anthropic::Models::Beta::Messages::BatchCreateParams::Request::Params::container?
86
86
 
87
87
  attr_accessor context_management: Anthropic::Beta::BetaContextManagementConfig?
88
88
 
@@ -152,7 +152,7 @@ module Anthropic
152
152
  max_tokens: Integer,
153
153
  messages: ::Array[Anthropic::Beta::BetaMessageParam],
154
154
  model: Anthropic::Models::model,
155
- ?container: String?,
155
+ ?container: Anthropic::Models::Beta::Messages::BatchCreateParams::Request::Params::container?,
156
156
  ?context_management: Anthropic::Beta::BetaContextManagementConfig?,
157
157
  ?mcp_servers: ::Array[Anthropic::Beta::BetaRequestMCPServerURLDefinition],
158
158
  ?metadata: Anthropic::Beta::BetaMetadata,
@@ -172,7 +172,7 @@ module Anthropic
172
172
  max_tokens: Integer,
173
173
  messages: ::Array[Anthropic::Beta::BetaMessageParam],
174
174
  model: Anthropic::Models::model,
175
- container: String?,
175
+ container: Anthropic::Models::Beta::Messages::BatchCreateParams::Request::Params::container?,
176
176
  context_management: Anthropic::Beta::BetaContextManagementConfig?,
177
177
  mcp_servers: ::Array[Anthropic::Beta::BetaRequestMCPServerURLDefinition],
178
178
  metadata: Anthropic::Beta::BetaMetadata,
@@ -188,6 +188,14 @@ module Anthropic
188
188
  top_p: Float
189
189
  }
190
190
 
191
+ type container = Anthropic::Beta::BetaContainerParams | String
192
+
193
+ module Container
194
+ extend Anthropic::Internal::Type::Union
195
+
196
+ def self?.variants: -> ::Array[Anthropic::Models::Beta::Messages::BatchCreateParams::Request::Params::container]
197
+ end
198
+
191
199
  type service_tier = :auto | :standard_only
192
200
 
193
201
  module ServiceTier
@@ -0,0 +1,42 @@
1
+ module Anthropic
2
+ module Models
3
+ module Beta
4
+ type skill_create_params =
5
+ {
6
+ display_title: String?,
7
+ files: ::Array[Anthropic::Internal::file_input]?,
8
+ betas: ::Array[Anthropic::Models::anthropic_beta]
9
+ }
10
+ & Anthropic::Internal::Type::request_parameters
11
+
12
+ class SkillCreateParams < Anthropic::Internal::Type::BaseModel
13
+ extend Anthropic::Internal::Type::RequestParameters::Converter
14
+ include Anthropic::Internal::Type::RequestParameters
15
+
16
+ attr_accessor display_title: String?
17
+
18
+ attr_accessor files: ::Array[Anthropic::Internal::file_input]?
19
+
20
+ attr_reader betas: ::Array[Anthropic::Models::anthropic_beta]?
21
+
22
+ def betas=: (
23
+ ::Array[Anthropic::Models::anthropic_beta]
24
+ ) -> ::Array[Anthropic::Models::anthropic_beta]
25
+
26
+ def initialize: (
27
+ ?display_title: String?,
28
+ ?files: ::Array[Anthropic::Internal::file_input]?,
29
+ ?betas: ::Array[Anthropic::Models::anthropic_beta],
30
+ ?request_options: Anthropic::request_opts
31
+ ) -> void
32
+
33
+ def to_hash: -> {
34
+ display_title: String?,
35
+ files: ::Array[Anthropic::Internal::file_input]?,
36
+ betas: ::Array[Anthropic::Models::anthropic_beta],
37
+ request_options: Anthropic::RequestOptions
38
+ }
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,52 @@
1
+ module Anthropic
2
+ module Models
3
+ module Beta
4
+ type skill_create_response =
5
+ {
6
+ id: String,
7
+ created_at: String,
8
+ display_title: String?,
9
+ latest_version: String?,
10
+ source: String,
11
+ type: String,
12
+ updated_at: String
13
+ }
14
+
15
+ class SkillCreateResponse < Anthropic::Internal::Type::BaseModel
16
+ attr_accessor id: String
17
+
18
+ attr_accessor created_at: String
19
+
20
+ attr_accessor display_title: String?
21
+
22
+ attr_accessor latest_version: String?
23
+
24
+ attr_accessor source: String
25
+
26
+ attr_accessor type: String
27
+
28
+ attr_accessor updated_at: String
29
+
30
+ def initialize: (
31
+ id: String,
32
+ created_at: String,
33
+ display_title: String?,
34
+ latest_version: String?,
35
+ source: String,
36
+ type: String,
37
+ updated_at: String
38
+ ) -> void
39
+
40
+ def to_hash: -> {
41
+ id: String,
42
+ created_at: String,
43
+ display_title: String?,
44
+ latest_version: String?,
45
+ source: String,
46
+ type: String,
47
+ updated_at: String
48
+ }
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,30 @@
1
+ module Anthropic
2
+ module Models
3
+ module Beta
4
+ type skill_delete_params =
5
+ { betas: ::Array[Anthropic::Models::anthropic_beta] }
6
+ & Anthropic::Internal::Type::request_parameters
7
+
8
+ class SkillDeleteParams < Anthropic::Internal::Type::BaseModel
9
+ extend Anthropic::Internal::Type::RequestParameters::Converter
10
+ include Anthropic::Internal::Type::RequestParameters
11
+
12
+ attr_reader betas: ::Array[Anthropic::Models::anthropic_beta]?
13
+
14
+ def betas=: (
15
+ ::Array[Anthropic::Models::anthropic_beta]
16
+ ) -> ::Array[Anthropic::Models::anthropic_beta]
17
+
18
+ def initialize: (
19
+ ?betas: ::Array[Anthropic::Models::anthropic_beta],
20
+ ?request_options: Anthropic::request_opts
21
+ ) -> void
22
+
23
+ def to_hash: -> {
24
+ betas: ::Array[Anthropic::Models::anthropic_beta],
25
+ request_options: Anthropic::RequestOptions
26
+ }
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,17 @@
1
+ module Anthropic
2
+ module Models
3
+ module Beta
4
+ type skill_delete_response = { id: String, type: String }
5
+
6
+ class SkillDeleteResponse < Anthropic::Internal::Type::BaseModel
7
+ attr_accessor id: String
8
+
9
+ attr_accessor type: String
10
+
11
+ def initialize: (id: String, type: String) -> void
12
+
13
+ def to_hash: -> { id: String, type: String }
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,49 @@
1
+ module Anthropic
2
+ module Models
3
+ module Beta
4
+ type skill_list_params =
5
+ {
6
+ limit: Integer,
7
+ page: String?,
8
+ source: String?,
9
+ betas: ::Array[Anthropic::Models::anthropic_beta]
10
+ }
11
+ & Anthropic::Internal::Type::request_parameters
12
+
13
+ class SkillListParams < Anthropic::Internal::Type::BaseModel
14
+ extend Anthropic::Internal::Type::RequestParameters::Converter
15
+ include Anthropic::Internal::Type::RequestParameters
16
+
17
+ attr_reader limit: Integer?
18
+
19
+ def limit=: (Integer) -> Integer
20
+
21
+ attr_accessor page: String?
22
+
23
+ attr_accessor source: String?
24
+
25
+ attr_reader betas: ::Array[Anthropic::Models::anthropic_beta]?
26
+
27
+ def betas=: (
28
+ ::Array[Anthropic::Models::anthropic_beta]
29
+ ) -> ::Array[Anthropic::Models::anthropic_beta]
30
+
31
+ def initialize: (
32
+ ?limit: Integer,
33
+ ?page: String?,
34
+ ?source: String?,
35
+ ?betas: ::Array[Anthropic::Models::anthropic_beta],
36
+ ?request_options: Anthropic::request_opts
37
+ ) -> void
38
+
39
+ def to_hash: -> {
40
+ limit: Integer,
41
+ page: String?,
42
+ source: String?,
43
+ betas: ::Array[Anthropic::Models::anthropic_beta],
44
+ request_options: Anthropic::RequestOptions
45
+ }
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,52 @@
1
+ module Anthropic
2
+ module Models
3
+ module Beta
4
+ type skill_list_response =
5
+ {
6
+ id: String,
7
+ created_at: String,
8
+ display_title: String?,
9
+ latest_version: String?,
10
+ source: String,
11
+ type: String,
12
+ updated_at: String
13
+ }
14
+
15
+ class SkillListResponse < Anthropic::Internal::Type::BaseModel
16
+ attr_accessor id: String
17
+
18
+ attr_accessor created_at: String
19
+
20
+ attr_accessor display_title: String?
21
+
22
+ attr_accessor latest_version: String?
23
+
24
+ attr_accessor source: String
25
+
26
+ attr_accessor type: String
27
+
28
+ attr_accessor updated_at: String
29
+
30
+ def initialize: (
31
+ id: String,
32
+ created_at: String,
33
+ display_title: String?,
34
+ latest_version: String?,
35
+ source: String,
36
+ type: String,
37
+ updated_at: String
38
+ ) -> void
39
+
40
+ def to_hash: -> {
41
+ id: String,
42
+ created_at: String,
43
+ display_title: String?,
44
+ latest_version: String?,
45
+ source: String,
46
+ type: String,
47
+ updated_at: String
48
+ }
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,30 @@
1
+ module Anthropic
2
+ module Models
3
+ module Beta
4
+ type skill_retrieve_params =
5
+ { betas: ::Array[Anthropic::Models::anthropic_beta] }
6
+ & Anthropic::Internal::Type::request_parameters
7
+
8
+ class SkillRetrieveParams < Anthropic::Internal::Type::BaseModel
9
+ extend Anthropic::Internal::Type::RequestParameters::Converter
10
+ include Anthropic::Internal::Type::RequestParameters
11
+
12
+ attr_reader betas: ::Array[Anthropic::Models::anthropic_beta]?
13
+
14
+ def betas=: (
15
+ ::Array[Anthropic::Models::anthropic_beta]
16
+ ) -> ::Array[Anthropic::Models::anthropic_beta]
17
+
18
+ def initialize: (
19
+ ?betas: ::Array[Anthropic::Models::anthropic_beta],
20
+ ?request_options: Anthropic::request_opts
21
+ ) -> void
22
+
23
+ def to_hash: -> {
24
+ betas: ::Array[Anthropic::Models::anthropic_beta],
25
+ request_options: Anthropic::RequestOptions
26
+ }
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,52 @@
1
+ module Anthropic
2
+ module Models
3
+ module Beta
4
+ type skill_retrieve_response =
5
+ {
6
+ id: String,
7
+ created_at: String,
8
+ display_title: String?,
9
+ latest_version: String?,
10
+ source: String,
11
+ type: String,
12
+ updated_at: String
13
+ }
14
+
15
+ class SkillRetrieveResponse < Anthropic::Internal::Type::BaseModel
16
+ attr_accessor id: String
17
+
18
+ attr_accessor created_at: String
19
+
20
+ attr_accessor display_title: String?
21
+
22
+ attr_accessor latest_version: String?
23
+
24
+ attr_accessor source: String
25
+
26
+ attr_accessor type: String
27
+
28
+ attr_accessor updated_at: String
29
+
30
+ def initialize: (
31
+ id: String,
32
+ created_at: String,
33
+ display_title: String?,
34
+ latest_version: String?,
35
+ source: String,
36
+ type: String,
37
+ updated_at: String
38
+ ) -> void
39
+
40
+ def to_hash: -> {
41
+ id: String,
42
+ created_at: String,
43
+ display_title: String?,
44
+ latest_version: String?,
45
+ source: String,
46
+ type: String,
47
+ updated_at: String
48
+ }
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,39 @@
1
+ module Anthropic
2
+ module Models
3
+ module Beta
4
+ module Skills
5
+ type version_create_params =
6
+ {
7
+ files: ::Array[Anthropic::Internal::file_input]?,
8
+ betas: ::Array[Anthropic::Models::anthropic_beta]
9
+ }
10
+ & Anthropic::Internal::Type::request_parameters
11
+
12
+ class VersionCreateParams < Anthropic::Internal::Type::BaseModel
13
+ extend Anthropic::Internal::Type::RequestParameters::Converter
14
+ include Anthropic::Internal::Type::RequestParameters
15
+
16
+ attr_accessor files: ::Array[Anthropic::Internal::file_input]?
17
+
18
+ attr_reader betas: ::Array[Anthropic::Models::anthropic_beta]?
19
+
20
+ def betas=: (
21
+ ::Array[Anthropic::Models::anthropic_beta]
22
+ ) -> ::Array[Anthropic::Models::anthropic_beta]
23
+
24
+ def initialize: (
25
+ ?files: ::Array[Anthropic::Internal::file_input]?,
26
+ ?betas: ::Array[Anthropic::Models::anthropic_beta],
27
+ ?request_options: Anthropic::request_opts
28
+ ) -> void
29
+
30
+ def to_hash: -> {
31
+ files: ::Array[Anthropic::Internal::file_input]?,
32
+ betas: ::Array[Anthropic::Models::anthropic_beta],
33
+ request_options: Anthropic::RequestOptions
34
+ }
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end