anthropic 1.1.1 → 1.6.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 (197) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +123 -0
  3. data/README.md +32 -16
  4. data/lib/anthropic/client.rb +5 -2
  5. data/lib/anthropic/errors.rb +22 -0
  6. data/lib/anthropic/helpers/bedrock/client.rb +34 -4
  7. data/lib/anthropic/helpers/streaming/events.rb +141 -0
  8. data/lib/anthropic/helpers/streaming/message_stream.rb +238 -0
  9. data/lib/anthropic/helpers/streaming.rb +37 -0
  10. data/lib/anthropic/helpers/vertex/client.rb +4 -1
  11. data/lib/anthropic/internal/stream.rb +4 -2
  12. data/lib/anthropic/internal/transport/base_client.rb +29 -3
  13. data/lib/anthropic/internal/type/array_of.rb +7 -1
  14. data/lib/anthropic/internal/type/base_model.rb +80 -24
  15. data/lib/anthropic/internal/type/base_stream.rb +3 -1
  16. data/lib/anthropic/internal/type/boolean.rb +7 -1
  17. data/lib/anthropic/internal/type/converter.rb +69 -34
  18. data/lib/anthropic/internal/type/enum.rb +16 -5
  19. data/lib/anthropic/internal/type/file_input.rb +6 -1
  20. data/lib/anthropic/internal/type/hash_of.rb +7 -1
  21. data/lib/anthropic/internal/type/union.rb +26 -16
  22. data/lib/anthropic/internal/type/unknown.rb +7 -1
  23. data/lib/anthropic/internal/util.rb +8 -9
  24. data/lib/anthropic/models/anthropic_beta.rb +3 -0
  25. data/lib/anthropic/models/beta/beta_base64_pdf_block.rb +1 -65
  26. data/lib/anthropic/models/beta/beta_citation_char_location.rb +7 -1
  27. data/lib/anthropic/models/beta/beta_citation_content_block_location.rb +7 -1
  28. data/lib/anthropic/models/beta/beta_citation_page_location.rb +7 -1
  29. data/lib/anthropic/models/beta/beta_citation_search_result_location.rb +55 -0
  30. data/lib/anthropic/models/beta/beta_citation_search_result_location_param.rb +55 -0
  31. data/lib/anthropic/models/beta/beta_citations_delta.rb +5 -3
  32. data/lib/anthropic/models/beta/beta_content_block.rb +5 -5
  33. data/lib/anthropic/models/beta/beta_content_block_param.rb +20 -17
  34. data/lib/anthropic/models/beta/beta_message.rb +6 -2
  35. data/lib/anthropic/models/beta/beta_message_param.rb +3 -3
  36. data/lib/anthropic/models/beta/beta_raw_content_block_start_event.rb +7 -7
  37. data/lib/anthropic/models/beta/beta_request_document_block.rb +75 -0
  38. data/lib/anthropic/models/beta/beta_search_result_block_param.rb +55 -0
  39. data/lib/anthropic/models/beta/beta_text_block.rb +2 -2
  40. data/lib/anthropic/models/beta/beta_text_block_param.rb +2 -2
  41. data/lib/anthropic/models/beta/beta_text_citation.rb +3 -1
  42. data/lib/anthropic/models/beta/beta_text_citation_param.rb +3 -1
  43. data/lib/anthropic/models/beta/beta_tool.rb +7 -1
  44. data/lib/anthropic/models/beta/beta_tool_result_block_param.rb +6 -4
  45. data/lib/anthropic/models/beta/beta_tool_text_editor_20250728.rb +49 -0
  46. data/lib/anthropic/models/beta/beta_tool_union.rb +9 -7
  47. data/lib/anthropic/models/beta/message_count_tokens_params.rb +18 -10
  48. data/lib/anthropic/models/beta/message_create_params.rb +9 -3
  49. data/lib/anthropic/models/beta/messages/batch_create_params.rb +9 -3
  50. data/lib/anthropic/models/citation_char_location.rb +7 -1
  51. data/lib/anthropic/models/citation_content_block_location.rb +7 -1
  52. data/lib/anthropic/models/citation_page_location.rb +7 -1
  53. data/lib/anthropic/models/citation_search_result_location_param.rb +51 -0
  54. data/lib/anthropic/models/citations_delta.rb +5 -3
  55. data/lib/anthropic/models/citations_search_result_location.rb +51 -0
  56. data/lib/anthropic/models/content_block.rb +5 -5
  57. data/lib/anthropic/models/content_block_param.rb +14 -11
  58. data/lib/anthropic/models/message.rb +6 -2
  59. data/lib/anthropic/models/message_count_tokens_params.rb +9 -3
  60. data/lib/anthropic/models/message_count_tokens_tool.rb +5 -1
  61. data/lib/anthropic/models/message_create_params.rb +9 -3
  62. data/lib/anthropic/models/message_param.rb +3 -3
  63. data/lib/anthropic/models/messages/batch_create_params.rb +9 -3
  64. data/lib/anthropic/models/model.rb +10 -21
  65. data/lib/anthropic/models/raw_content_block_start_event.rb +7 -7
  66. data/lib/anthropic/models/search_result_block_param.rb +51 -0
  67. data/lib/anthropic/models/text_block.rb +2 -2
  68. data/lib/anthropic/models/text_block_param.rb +2 -2
  69. data/lib/anthropic/models/text_citation.rb +3 -1
  70. data/lib/anthropic/models/text_citation_param.rb +3 -1
  71. data/lib/anthropic/models/tool.rb +7 -1
  72. data/lib/anthropic/models/tool_result_block_param.rb +6 -4
  73. data/lib/anthropic/models/tool_text_editor_20250429.rb +36 -0
  74. data/lib/anthropic/models/tool_text_editor_20250728.rb +45 -0
  75. data/lib/anthropic/models/tool_union.rb +5 -1
  76. data/lib/anthropic/models/tool_use_block.rb +6 -0
  77. data/lib/anthropic/models.rb +14 -4
  78. data/lib/anthropic/resources/beta/messages.rb +73 -6
  79. data/lib/anthropic/resources/messages.rb +68 -7
  80. data/lib/anthropic/streaming.rb +5 -0
  81. data/lib/anthropic/version.rb +1 -1
  82. data/lib/anthropic.rb +14 -0
  83. data/rbi/anthropic/errors.rbi +16 -0
  84. data/rbi/anthropic/helpers/bedrock/client.rbi +17 -6
  85. data/rbi/anthropic/helpers/streaming/events.rbi +95 -0
  86. data/rbi/anthropic/helpers/streaming/message_stream.rbi +73 -0
  87. data/rbi/anthropic/helpers/vertex/client.rbi +17 -6
  88. data/rbi/anthropic/internal/transport/base_client.rbi +1 -1
  89. data/rbi/anthropic/internal/type/base_stream.rbi +8 -1
  90. data/rbi/anthropic/internal/type/boolean.rbi +2 -0
  91. data/rbi/anthropic/internal/type/converter.rbi +69 -15
  92. data/rbi/anthropic/internal/type/union.rbi +14 -2
  93. data/rbi/anthropic/internal/type/unknown.rbi +2 -0
  94. data/rbi/anthropic/internal/util.rbi +2 -0
  95. data/rbi/anthropic/models/anthropic_beta.rbi +2 -0
  96. data/rbi/anthropic/models/beta/beta_base64_pdf_block.rbi +1 -128
  97. data/rbi/anthropic/models/beta/beta_citation_char_location.rbi +6 -0
  98. data/rbi/anthropic/models/beta/beta_citation_content_block_location.rbi +6 -0
  99. data/rbi/anthropic/models/beta/beta_citation_page_location.rbi +6 -0
  100. data/rbi/anthropic/models/beta/beta_citation_search_result_location.rbi +78 -0
  101. data/rbi/anthropic/models/beta/beta_citation_search_result_location_param.rbi +79 -0
  102. data/rbi/anthropic/models/beta/beta_citations_delta.rbi +4 -2
  103. data/rbi/anthropic/models/beta/beta_content_block.rbi +3 -3
  104. data/rbi/anthropic/models/beta/beta_content_block_param.rbi +8 -7
  105. data/rbi/anthropic/models/beta/beta_message.rbi +11 -3
  106. data/rbi/anthropic/models/beta/beta_raw_content_block_start_event.rbi +6 -6
  107. data/rbi/anthropic/models/beta/beta_request_document_block.rbi +140 -0
  108. data/rbi/anthropic/models/beta/beta_search_result_block_param.rbi +91 -0
  109. data/rbi/anthropic/models/beta/beta_text_block.rbi +2 -1
  110. data/rbi/anthropic/models/beta/beta_text_block_param.rbi +6 -3
  111. data/rbi/anthropic/models/beta/beta_text_citation.rbi +2 -1
  112. data/rbi/anthropic/models/beta/beta_text_citation_param.rbi +2 -1
  113. data/rbi/anthropic/models/beta/beta_tool.rbi +14 -5
  114. data/rbi/anthropic/models/beta/beta_tool_result_block_param.rbi +2 -1
  115. data/rbi/anthropic/models/beta/beta_tool_text_editor_20250728.rbi +82 -0
  116. data/rbi/anthropic/models/beta/beta_tool_union.rbi +6 -5
  117. data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +44 -27
  118. data/rbi/anthropic/models/beta/message_create_params.rbi +38 -22
  119. data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +38 -22
  120. data/rbi/anthropic/models/citation_char_location.rbi +6 -0
  121. data/rbi/anthropic/models/citation_content_block_location.rbi +6 -0
  122. data/rbi/anthropic/models/citation_page_location.rbi +6 -0
  123. data/rbi/anthropic/models/citation_search_result_location_param.rbi +74 -0
  124. data/rbi/anthropic/models/citations_delta.rbi +4 -2
  125. data/rbi/anthropic/models/citations_search_result_location.rbi +74 -0
  126. data/rbi/anthropic/models/content_block.rbi +3 -3
  127. data/rbi/anthropic/models/content_block_param.rbi +6 -5
  128. data/rbi/anthropic/models/message.rbi +11 -3
  129. data/rbi/anthropic/models/message_count_tokens_params.rbi +22 -2
  130. data/rbi/anthropic/models/message_count_tokens_tool.rbi +2 -0
  131. data/rbi/anthropic/models/message_create_params.rbi +22 -2
  132. data/rbi/anthropic/models/messages/batch_create_params.rbi +22 -2
  133. data/rbi/anthropic/models/model.rbi +4 -8
  134. data/rbi/anthropic/models/raw_content_block_start_event.rbi +6 -6
  135. data/rbi/anthropic/models/search_result_block_param.rbi +77 -0
  136. data/rbi/anthropic/models/text_block.rbi +2 -1
  137. data/rbi/anthropic/models/text_block_param.rbi +6 -3
  138. data/rbi/anthropic/models/text_citation.rbi +2 -1
  139. data/rbi/anthropic/models/text_citation_param.rbi +2 -1
  140. data/rbi/anthropic/models/tool.rbi +16 -5
  141. data/rbi/anthropic/models/tool_result_block_param.rbi +5 -1
  142. data/rbi/anthropic/models/tool_text_editor_20250429.rbi +62 -0
  143. data/rbi/anthropic/models/tool_text_editor_20250728.rbi +72 -0
  144. data/rbi/anthropic/models/tool_union.rbi +2 -0
  145. data/rbi/anthropic/models.rbi +12 -0
  146. data/rbi/anthropic/resources/beta/messages.rbi +39 -18
  147. data/rbi/anthropic/resources/messages.rbi +318 -3
  148. data/rbi/anthropic/streaming.rbi +5 -0
  149. data/sig/anthropic/errors.rbs +9 -0
  150. data/sig/anthropic/helpers/streaming/events.rbs +117 -0
  151. data/sig/anthropic/helpers/streaming/message_stream.rbs +57 -0
  152. data/sig/anthropic/internal/transport/base_client.rbs +1 -1
  153. data/sig/anthropic/internal/type/base_stream.rbs +4 -0
  154. data/sig/anthropic/internal/type/converter.rbs +24 -1
  155. data/sig/anthropic/internal/type/union.rbs +2 -2
  156. data/sig/anthropic/models/anthropic_beta.rbs +2 -0
  157. data/sig/anthropic/models/beta/beta_base64_pdf_block.rbs +1 -58
  158. data/sig/anthropic/models/beta/beta_citation_char_location.rbs +5 -0
  159. data/sig/anthropic/models/beta/beta_citation_content_block_location.rbs +5 -0
  160. data/sig/anthropic/models/beta/beta_citation_page_location.rbs +5 -0
  161. data/sig/anthropic/models/beta/beta_citation_search_result_location.rbs +54 -0
  162. data/sig/anthropic/models/beta/beta_citation_search_result_location_param.rbs +54 -0
  163. data/sig/anthropic/models/beta/beta_citations_delta.rbs +1 -0
  164. data/sig/anthropic/models/beta/beta_content_block.rbs +2 -2
  165. data/sig/anthropic/models/beta/beta_content_block_param.rbs +9 -8
  166. data/sig/anthropic/models/beta/beta_raw_content_block_start_event.rbs +2 -2
  167. data/sig/anthropic/models/beta/beta_request_document_block.rbs +66 -0
  168. data/sig/anthropic/models/beta/beta_search_result_block_param.rbs +53 -0
  169. data/sig/anthropic/models/beta/beta_text_citation.rbs +1 -0
  170. data/sig/anthropic/models/beta/beta_text_citation_param.rbs +1 -0
  171. data/sig/anthropic/models/beta/beta_tool.rbs +14 -3
  172. data/sig/anthropic/models/beta/beta_tool_result_block_param.rbs +1 -0
  173. data/sig/anthropic/models/beta/beta_tool_text_editor_20250728.rbs +39 -0
  174. data/sig/anthropic/models/beta/beta_tool_union.rbs +5 -4
  175. data/sig/anthropic/models/beta/message_count_tokens_params.rbs +5 -4
  176. data/sig/anthropic/models/citation_char_location.rbs +5 -0
  177. data/sig/anthropic/models/citation_content_block_location.rbs +5 -0
  178. data/sig/anthropic/models/citation_page_location.rbs +5 -0
  179. data/sig/anthropic/models/citation_search_result_location_param.rbs +50 -0
  180. data/sig/anthropic/models/citations_delta.rbs +1 -0
  181. data/sig/anthropic/models/citations_search_result_location.rbs +50 -0
  182. data/sig/anthropic/models/content_block.rbs +2 -2
  183. data/sig/anthropic/models/content_block_param.rbs +6 -5
  184. data/sig/anthropic/models/message_count_tokens_tool.rbs +2 -0
  185. data/sig/anthropic/models/model.rbs +4 -10
  186. data/sig/anthropic/models/raw_content_block_start_event.rbs +2 -2
  187. data/sig/anthropic/models/search_result_block_param.rbs +49 -0
  188. data/sig/anthropic/models/text_citation.rbs +1 -0
  189. data/sig/anthropic/models/text_citation_param.rbs +1 -0
  190. data/sig/anthropic/models/tool.rbs +14 -3
  191. data/sig/anthropic/models/tool_result_block_param.rbs +4 -1
  192. data/sig/anthropic/models/tool_text_editor_20250429.rbs +30 -0
  193. data/sig/anthropic/models/tool_text_editor_20250728.rbs +35 -0
  194. data/sig/anthropic/models/tool_union.rbs +2 -0
  195. data/sig/anthropic/models.rbs +10 -0
  196. data/sig/anthropic/streaming.rbs +3 -0
  197. metadata +44 -3
@@ -109,7 +109,7 @@ module Anthropic
109
109
  # the top-level `system` parameter — there is no `"system"` role for input
110
110
  # messages in the Messages API.
111
111
  #
112
- # There is a limit of 100000 messages in a single request.
112
+ # There is a limit of 100,000 messages in a single request.
113
113
  #
114
114
  # @return [Array<Anthropic::Models::MessageParam>]
115
115
  required :messages, -> { Anthropic::Internal::Type::ArrayOf[Anthropic::MessageParam] }
@@ -204,6 +204,12 @@ module Anthropic
204
204
  # those tools using the tool input generated by the model and then optionally
205
205
  # return results back to the model using `tool_result` content blocks.
206
206
  #
207
+ # There are two types of tools: **client tools** and **server tools**. The
208
+ # behavior described below applies to client tools. For
209
+ # [server tools](https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/overview#server-tools),
210
+ # see their individual documentation as each has its own behavior (e.g., the
211
+ # [web search tool](https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/web-search-tool)).
212
+ #
207
213
  # Each tool definition includes:
208
214
  #
209
215
  # - `name`: Name of the tool.
@@ -267,7 +273,7 @@ module Anthropic
267
273
  #
268
274
  # See our [guide](https://docs.anthropic.com/en/docs/tool-use) for more details.
269
275
  #
270
- # @return [Array<Anthropic::Models::Tool, Anthropic::Models::ToolBash20250124, Anthropic::Models::ToolTextEditor20250124, Anthropic::Models::WebSearchTool20250305>, nil]
276
+ # @return [Array<Anthropic::Models::Tool, Anthropic::Models::ToolBash20250124, Anthropic::Models::ToolTextEditor20250124, Anthropic::Models::ToolTextEditor20250429, Anthropic::Models::ToolTextEditor20250728, Anthropic::Models::WebSearchTool20250305>, nil]
271
277
  optional :tools, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::ToolUnion] }
272
278
 
273
279
  # @!attribute top_k
@@ -320,7 +326,7 @@ module Anthropic
320
326
  #
321
327
  # @param tool_choice [Anthropic::Models::ToolChoiceAuto, Anthropic::Models::ToolChoiceAny, Anthropic::Models::ToolChoiceTool, Anthropic::Models::ToolChoiceNone] How the model should use the provided tools. The model can use a specific tool,
322
328
  #
323
- # @param tools [Array<Anthropic::Models::Tool, Anthropic::Models::ToolBash20250124, Anthropic::Models::ToolTextEditor20250124, Anthropic::Models::WebSearchTool20250305>] Definitions of tools that the model may use.
329
+ # @param tools [Array<Anthropic::Models::Tool, Anthropic::Models::ToolBash20250124, Anthropic::Models::ToolTextEditor20250124, Anthropic::Models::ToolTextEditor20250429, Anthropic::Models::ToolTextEditor20250728, Anthropic::Models::WebSearchTool20250305>] Definitions of tools that the model may use.
324
330
  #
325
331
  # @param top_k [Integer] Only sample from the top K options for each subsequent token.
326
332
  #
@@ -5,7 +5,7 @@ module Anthropic
5
5
  class MessageParam < Anthropic::Internal::Type::BaseModel
6
6
  # @!attribute content
7
7
  #
8
- # @return [String, Array<Anthropic::Models::ServerToolUseBlockParam, Anthropic::Models::WebSearchToolResultBlockParam, Anthropic::Models::TextBlockParam, Anthropic::Models::ImageBlockParam, Anthropic::Models::ToolUseBlockParam, Anthropic::Models::ToolResultBlockParam, Anthropic::Models::DocumentBlockParam, Anthropic::Models::ThinkingBlockParam, Anthropic::Models::RedactedThinkingBlockParam>]
8
+ # @return [String, Array<Anthropic::Models::TextBlockParam, Anthropic::Models::ImageBlockParam, Anthropic::Models::DocumentBlockParam, Anthropic::Models::SearchResultBlockParam, Anthropic::Models::ThinkingBlockParam, Anthropic::Models::RedactedThinkingBlockParam, Anthropic::Models::ToolUseBlockParam, Anthropic::Models::ToolResultBlockParam, Anthropic::Models::ServerToolUseBlockParam, Anthropic::Models::WebSearchToolResultBlockParam>]
9
9
  required :content, union: -> { Anthropic::MessageParam::Content }
10
10
 
11
11
  # @!attribute role
@@ -14,7 +14,7 @@ module Anthropic
14
14
  required :role, enum: -> { Anthropic::MessageParam::Role }
15
15
 
16
16
  # @!method initialize(content:, role:)
17
- # @param content [String, Array<Anthropic::Models::ServerToolUseBlockParam, Anthropic::Models::WebSearchToolResultBlockParam, Anthropic::Models::TextBlockParam, Anthropic::Models::ImageBlockParam, Anthropic::Models::ToolUseBlockParam, Anthropic::Models::ToolResultBlockParam, Anthropic::Models::DocumentBlockParam, Anthropic::Models::ThinkingBlockParam, Anthropic::Models::RedactedThinkingBlockParam>]
17
+ # @param content [String, Array<Anthropic::Models::TextBlockParam, Anthropic::Models::ImageBlockParam, Anthropic::Models::DocumentBlockParam, Anthropic::Models::SearchResultBlockParam, Anthropic::Models::ThinkingBlockParam, Anthropic::Models::RedactedThinkingBlockParam, Anthropic::Models::ToolUseBlockParam, Anthropic::Models::ToolResultBlockParam, Anthropic::Models::ServerToolUseBlockParam, Anthropic::Models::WebSearchToolResultBlockParam>]
18
18
  # @param role [Symbol, Anthropic::Models::MessageParam::Role]
19
19
 
20
20
  # @see Anthropic::Models::MessageParam#content
@@ -26,7 +26,7 @@ module Anthropic
26
26
  variant -> { Anthropic::Models::MessageParam::Content::ContentBlockParamArray }
27
27
 
28
28
  # @!method self.variants
29
- # @return [Array(String, Array<Anthropic::Models::ServerToolUseBlockParam, Anthropic::Models::WebSearchToolResultBlockParam, Anthropic::Models::TextBlockParam, Anthropic::Models::ImageBlockParam, Anthropic::Models::ToolUseBlockParam, Anthropic::Models::ToolResultBlockParam, Anthropic::Models::DocumentBlockParam, Anthropic::Models::ThinkingBlockParam, Anthropic::Models::RedactedThinkingBlockParam>)]
29
+ # @return [Array(String, Array<Anthropic::Models::TextBlockParam, Anthropic::Models::ImageBlockParam, Anthropic::Models::DocumentBlockParam, Anthropic::Models::SearchResultBlockParam, Anthropic::Models::ThinkingBlockParam, Anthropic::Models::RedactedThinkingBlockParam, Anthropic::Models::ToolUseBlockParam, Anthropic::Models::ToolResultBlockParam, Anthropic::Models::ServerToolUseBlockParam, Anthropic::Models::WebSearchToolResultBlockParam>)]
30
30
 
31
31
  # @type [Anthropic::Internal::Type::Converter]
32
32
  ContentBlockParamArray = Anthropic::Internal::Type::ArrayOf[union: -> {
@@ -153,7 +153,7 @@ module Anthropic
153
153
  # the top-level `system` parameter — there is no `"system"` role for input
154
154
  # messages in the Messages API.
155
155
  #
156
- # There is a limit of 100000 messages in a single request.
156
+ # There is a limit of 100,000 messages in a single request.
157
157
  #
158
158
  # @return [Array<Anthropic::Models::MessageParam>]
159
159
  required :messages, -> { Anthropic::Internal::Type::ArrayOf[Anthropic::MessageParam] }
@@ -262,6 +262,12 @@ module Anthropic
262
262
  # those tools using the tool input generated by the model and then optionally
263
263
  # return results back to the model using `tool_result` content blocks.
264
264
  #
265
+ # There are two types of tools: **client tools** and **server tools**. The
266
+ # behavior described below applies to client tools. For
267
+ # [server tools](https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/overview#server-tools),
268
+ # see their individual documentation as each has its own behavior (e.g., the
269
+ # [web search tool](https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/web-search-tool)).
270
+ #
265
271
  # Each tool definition includes:
266
272
  #
267
273
  # - `name`: Name of the tool.
@@ -325,7 +331,7 @@ module Anthropic
325
331
  #
326
332
  # See our [guide](https://docs.anthropic.com/en/docs/tool-use) for more details.
327
333
  #
328
- # @return [Array<Anthropic::Models::Tool, Anthropic::Models::ToolBash20250124, Anthropic::Models::ToolTextEditor20250124, Anthropic::Models::WebSearchTool20250305>, nil]
334
+ # @return [Array<Anthropic::Models::Tool, Anthropic::Models::ToolBash20250124, Anthropic::Models::ToolTextEditor20250124, Anthropic::Models::ToolTextEditor20250429, Anthropic::Models::ToolTextEditor20250728, Anthropic::Models::WebSearchTool20250305>, nil]
329
335
  optional :tools, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::ToolUnion] }
330
336
 
331
337
  # @!attribute top_k
@@ -386,7 +392,7 @@ module Anthropic
386
392
  #
387
393
  # @param tool_choice [Anthropic::Models::ToolChoiceAuto, Anthropic::Models::ToolChoiceAny, Anthropic::Models::ToolChoiceTool, Anthropic::Models::ToolChoiceNone] How the model should use the provided tools. The model can use a specific tool,
388
394
  #
389
- # @param tools [Array<Anthropic::Models::Tool, Anthropic::Models::ToolBash20250124, Anthropic::Models::ToolTextEditor20250124, Anthropic::Models::WebSearchTool20250305>] Definitions of tools that the model may use.
395
+ # @param tools [Array<Anthropic::Models::Tool, Anthropic::Models::ToolBash20250124, Anthropic::Models::ToolTextEditor20250124, Anthropic::Models::ToolTextEditor20250429, Anthropic::Models::ToolTextEditor20250728, Anthropic::Models::WebSearchTool20250305>] Definitions of tools that the model may use.
390
396
  #
391
397
  # @param top_k [Integer] Only sample from the top K options for each subsequent token.
392
398
  #
@@ -34,18 +34,14 @@ module Anthropic
34
34
 
35
35
  variant const: -> { Anthropic::Models::Model::CLAUDE_4_OPUS_20250514 }
36
36
 
37
+ variant const: -> { Anthropic::Models::Model::CLAUDE_OPUS_4_1_20250805 }
38
+
37
39
  variant const: -> { Anthropic::Models::Model::CLAUDE_3_OPUS_LATEST }
38
40
 
39
41
  variant const: -> { Anthropic::Models::Model::CLAUDE_3_OPUS_20240229 }
40
42
 
41
- variant const: -> { Anthropic::Models::Model::CLAUDE_3_SONNET_20240229 }
42
-
43
43
  variant const: -> { Anthropic::Models::Model::CLAUDE_3_HAIKU_20240307 }
44
44
 
45
- variant const: -> { Anthropic::Models::Model::CLAUDE_2_1 }
46
-
47
- variant const: -> { Anthropic::Models::Model::CLAUDE_2_0 }
48
-
49
45
  variant String
50
46
 
51
47
  # @!method self.variants
@@ -95,31 +91,24 @@ module Anthropic
95
91
  # Our most capable model
96
92
  CLAUDE_4_OPUS_20250514 = :"claude-4-opus-20250514"
97
93
 
94
+ # Our most capable model
95
+ CLAUDE_OPUS_4_1_20250805 = :"claude-opus-4-1-20250805"
96
+
98
97
  # Excels at writing and complex tasks
98
+ # @deprecated Will reach end-of-life on January 5th, 2026. Please migrate to a newer model.
99
+ # Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more
100
+ # information.
99
101
  CLAUDE_3_OPUS_LATEST = :"claude-3-opus-latest"
100
102
 
101
103
  # Excels at writing and complex tasks
102
- CLAUDE_3_OPUS_20240229 = :"claude-3-opus-20240229"
103
-
104
- # Balance of speed and intelligence
105
- # @deprecated Will reach end-of-life on July 21st, 2025. Please migrate to a newer model.
104
+ # @deprecated Will reach end-of-life on January 5th, 2026. Please migrate to a newer model.
106
105
  # Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more
107
106
  # information.
108
- CLAUDE_3_SONNET_20240229 = :"claude-3-sonnet-20240229"
107
+ CLAUDE_3_OPUS_20240229 = :"claude-3-opus-20240229"
109
108
 
110
109
  # Our previous most fast and cost-effective
111
110
  CLAUDE_3_HAIKU_20240307 = :"claude-3-haiku-20240307"
112
111
 
113
- # @deprecated Will reach end-of-life on July 21st, 2025. Please migrate to a newer model.
114
- # Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more
115
- # information.
116
- CLAUDE_2_1 = :"claude-2.1"
117
-
118
- # @deprecated Will reach end-of-life on July 21st, 2025. Please migrate to a newer model.
119
- # Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more
120
- # information.
121
- CLAUDE_2_0 = :"claude-2.0"
122
-
123
112
  # @!endgroup
124
113
  end
125
114
  end
@@ -5,7 +5,7 @@ module Anthropic
5
5
  class RawContentBlockStartEvent < Anthropic::Internal::Type::BaseModel
6
6
  # @!attribute content_block
7
7
  #
8
- # @return [Anthropic::Models::TextBlock, Anthropic::Models::ToolUseBlock, Anthropic::Models::ServerToolUseBlock, Anthropic::Models::WebSearchToolResultBlock, Anthropic::Models::ThinkingBlock, Anthropic::Models::RedactedThinkingBlock]
8
+ # @return [Anthropic::Models::TextBlock, Anthropic::Models::ThinkingBlock, Anthropic::Models::RedactedThinkingBlock, Anthropic::Models::ToolUseBlock, Anthropic::Models::ServerToolUseBlock, Anthropic::Models::WebSearchToolResultBlock]
9
9
  required :content_block, union: -> { Anthropic::RawContentBlockStartEvent::ContentBlock }
10
10
 
11
11
  # @!attribute index
@@ -19,7 +19,7 @@ module Anthropic
19
19
  required :type, const: :content_block_start
20
20
 
21
21
  # @!method initialize(content_block:, index:, type: :content_block_start)
22
- # @param content_block [Anthropic::Models::TextBlock, Anthropic::Models::ToolUseBlock, Anthropic::Models::ServerToolUseBlock, Anthropic::Models::WebSearchToolResultBlock, Anthropic::Models::ThinkingBlock, Anthropic::Models::RedactedThinkingBlock]
22
+ # @param content_block [Anthropic::Models::TextBlock, Anthropic::Models::ThinkingBlock, Anthropic::Models::RedactedThinkingBlock, Anthropic::Models::ToolUseBlock, Anthropic::Models::ServerToolUseBlock, Anthropic::Models::WebSearchToolResultBlock]
23
23
  # @param index [Integer]
24
24
  # @param type [Symbol, :content_block_start]
25
25
 
@@ -31,18 +31,18 @@ module Anthropic
31
31
 
32
32
  variant :text, -> { Anthropic::TextBlock }
33
33
 
34
+ variant :thinking, -> { Anthropic::ThinkingBlock }
35
+
36
+ variant :redacted_thinking, -> { Anthropic::RedactedThinkingBlock }
37
+
34
38
  variant :tool_use, -> { Anthropic::ToolUseBlock }
35
39
 
36
40
  variant :server_tool_use, -> { Anthropic::ServerToolUseBlock }
37
41
 
38
42
  variant :web_search_tool_result, -> { Anthropic::WebSearchToolResultBlock }
39
43
 
40
- variant :thinking, -> { Anthropic::ThinkingBlock }
41
-
42
- variant :redacted_thinking, -> { Anthropic::RedactedThinkingBlock }
43
-
44
44
  # @!method self.variants
45
- # @return [Array(Anthropic::Models::TextBlock, Anthropic::Models::ToolUseBlock, Anthropic::Models::ServerToolUseBlock, Anthropic::Models::WebSearchToolResultBlock, Anthropic::Models::ThinkingBlock, Anthropic::Models::RedactedThinkingBlock)]
45
+ # @return [Array(Anthropic::Models::TextBlock, Anthropic::Models::ThinkingBlock, Anthropic::Models::RedactedThinkingBlock, Anthropic::Models::ToolUseBlock, Anthropic::Models::ServerToolUseBlock, Anthropic::Models::WebSearchToolResultBlock)]
46
46
  end
47
47
  end
48
48
  end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ class SearchResultBlockParam < Anthropic::Internal::Type::BaseModel
6
+ # @!attribute content
7
+ #
8
+ # @return [Array<Anthropic::Models::TextBlockParam>]
9
+ required :content, -> { Anthropic::Internal::Type::ArrayOf[Anthropic::TextBlockParam] }
10
+
11
+ # @!attribute source
12
+ #
13
+ # @return [String]
14
+ required :source, String
15
+
16
+ # @!attribute title
17
+ #
18
+ # @return [String]
19
+ required :title, String
20
+
21
+ # @!attribute type
22
+ #
23
+ # @return [Symbol, :search_result]
24
+ required :type, const: :search_result
25
+
26
+ # @!attribute cache_control
27
+ # Create a cache control breakpoint at this content block.
28
+ #
29
+ # @return [Anthropic::Models::CacheControlEphemeral, nil]
30
+ optional :cache_control, -> { Anthropic::CacheControlEphemeral }, nil?: true
31
+
32
+ # @!attribute citations
33
+ #
34
+ # @return [Anthropic::Models::CitationsConfigParam, nil]
35
+ optional :citations, -> { Anthropic::CitationsConfigParam }
36
+
37
+ # @!method initialize(content:, source:, title:, cache_control: nil, citations: nil, type: :search_result)
38
+ # @param content [Array<Anthropic::Models::TextBlockParam>]
39
+ #
40
+ # @param source [String]
41
+ #
42
+ # @param title [String]
43
+ #
44
+ # @param cache_control [Anthropic::Models::CacheControlEphemeral, nil] Create a cache control breakpoint at this content block.
45
+ #
46
+ # @param citations [Anthropic::Models::CitationsConfigParam]
47
+ #
48
+ # @param type [Symbol, :search_result]
49
+ end
50
+ end
51
+ end
@@ -10,7 +10,7 @@ module Anthropic
10
10
  # Citing a PDF results in `page_location`, plain text results in `char_location`,
11
11
  # and content document results in `content_block_location`.
12
12
  #
13
- # @return [Array<Anthropic::Models::CitationCharLocation, Anthropic::Models::CitationPageLocation, Anthropic::Models::CitationContentBlockLocation, Anthropic::Models::CitationsWebSearchResultLocation>, nil]
13
+ # @return [Array<Anthropic::Models::CitationCharLocation, Anthropic::Models::CitationPageLocation, Anthropic::Models::CitationContentBlockLocation, Anthropic::Models::CitationsWebSearchResultLocation, Anthropic::Models::CitationsSearchResultLocation>, nil]
14
14
  required :citations,
15
15
  -> {
16
16
  Anthropic::Internal::Type::ArrayOf[union: Anthropic::TextCitation]
@@ -31,7 +31,7 @@ module Anthropic
31
31
  # Some parameter documentations has been truncated, see
32
32
  # {Anthropic::Models::TextBlock} for more details.
33
33
  #
34
- # @param citations [Array<Anthropic::Models::CitationCharLocation, Anthropic::Models::CitationPageLocation, Anthropic::Models::CitationContentBlockLocation, Anthropic::Models::CitationsWebSearchResultLocation>, nil] Citations supporting the text block.
34
+ # @param citations [Array<Anthropic::Models::CitationCharLocation, Anthropic::Models::CitationPageLocation, Anthropic::Models::CitationContentBlockLocation, Anthropic::Models::CitationsWebSearchResultLocation, Anthropic::Models::CitationsSearchResultLocation>, nil] Citations supporting the text block.
35
35
  #
36
36
  # @param text [String]
37
37
  #
@@ -21,7 +21,7 @@ module Anthropic
21
21
 
22
22
  # @!attribute citations
23
23
  #
24
- # @return [Array<Anthropic::Models::CitationCharLocationParam, Anthropic::Models::CitationPageLocationParam, Anthropic::Models::CitationContentBlockLocationParam, Anthropic::Models::CitationWebSearchResultLocationParam>, nil]
24
+ # @return [Array<Anthropic::Models::CitationCharLocationParam, Anthropic::Models::CitationPageLocationParam, Anthropic::Models::CitationContentBlockLocationParam, Anthropic::Models::CitationWebSearchResultLocationParam, Anthropic::Models::CitationSearchResultLocationParam>, nil]
25
25
  optional :citations,
26
26
  -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::TextCitationParam] },
27
27
  nil?: true
@@ -31,7 +31,7 @@ module Anthropic
31
31
  #
32
32
  # @param cache_control [Anthropic::Models::CacheControlEphemeral, nil] Create a cache control breakpoint at this content block.
33
33
  #
34
- # @param citations [Array<Anthropic::Models::CitationCharLocationParam, Anthropic::Models::CitationPageLocationParam, Anthropic::Models::CitationContentBlockLocationParam, Anthropic::Models::CitationWebSearchResultLocationParam>, nil]
34
+ # @param citations [Array<Anthropic::Models::CitationCharLocationParam, Anthropic::Models::CitationPageLocationParam, Anthropic::Models::CitationContentBlockLocationParam, Anthropic::Models::CitationWebSearchResultLocationParam, Anthropic::Models::CitationSearchResultLocationParam>, nil]
35
35
  #
36
36
  # @param type [Symbol, :text]
37
37
  end
@@ -15,8 +15,10 @@ module Anthropic
15
15
 
16
16
  variant :web_search_result_location, -> { Anthropic::CitationsWebSearchResultLocation }
17
17
 
18
+ variant :search_result_location, -> { Anthropic::CitationsSearchResultLocation }
19
+
18
20
  # @!method self.variants
19
- # @return [Array(Anthropic::Models::CitationCharLocation, Anthropic::Models::CitationPageLocation, Anthropic::Models::CitationContentBlockLocation, Anthropic::Models::CitationsWebSearchResultLocation)]
21
+ # @return [Array(Anthropic::Models::CitationCharLocation, Anthropic::Models::CitationPageLocation, Anthropic::Models::CitationContentBlockLocation, Anthropic::Models::CitationsWebSearchResultLocation, Anthropic::Models::CitationsSearchResultLocation)]
20
22
  end
21
23
  end
22
24
  end
@@ -15,8 +15,10 @@ module Anthropic
15
15
 
16
16
  variant :web_search_result_location, -> { Anthropic::CitationWebSearchResultLocationParam }
17
17
 
18
+ variant :search_result_location, -> { Anthropic::CitationSearchResultLocationParam }
19
+
18
20
  # @!method self.variants
19
- # @return [Array(Anthropic::Models::CitationCharLocationParam, Anthropic::Models::CitationPageLocationParam, Anthropic::Models::CitationContentBlockLocationParam, Anthropic::Models::CitationWebSearchResultLocationParam)]
21
+ # @return [Array(Anthropic::Models::CitationCharLocationParam, Anthropic::Models::CitationPageLocationParam, Anthropic::Models::CitationContentBlockLocationParam, Anthropic::Models::CitationWebSearchResultLocationParam, Anthropic::Models::CitationSearchResultLocationParam)]
20
22
  end
21
23
  end
22
24
  end
@@ -68,13 +68,19 @@ module Anthropic
68
68
  # @return [Object, nil]
69
69
  optional :properties, Anthropic::Internal::Type::Unknown, nil?: true
70
70
 
71
- # @!method initialize(properties: nil, type: :object)
71
+ # @!attribute required
72
+ #
73
+ # @return [Array<String>, nil]
74
+ optional :required, Anthropic::Internal::Type::ArrayOf[String], nil?: true
75
+
76
+ # @!method initialize(properties: nil, required: nil, type: :object)
72
77
  # [JSON schema](https://json-schema.org/draft/2020-12) for this tool's input.
73
78
  #
74
79
  # This defines the shape of the `input` that your tool accepts and that the model
75
80
  # will produce.
76
81
  #
77
82
  # @param properties [Object, nil]
83
+ # @param required [Array<String>, nil]
78
84
  # @param type [Symbol, :object]
79
85
  end
80
86
 
@@ -21,7 +21,7 @@ module Anthropic
21
21
 
22
22
  # @!attribute content
23
23
  #
24
- # @return [String, Array<Anthropic::Models::TextBlockParam, Anthropic::Models::ImageBlockParam>, nil]
24
+ # @return [String, Array<Anthropic::Models::TextBlockParam, Anthropic::Models::ImageBlockParam, Anthropic::Models::SearchResultBlockParam>, nil]
25
25
  optional :content, union: -> { Anthropic::ToolResultBlockParam::Content }
26
26
 
27
27
  # @!attribute is_error
@@ -34,7 +34,7 @@ module Anthropic
34
34
  #
35
35
  # @param cache_control [Anthropic::Models::CacheControlEphemeral, nil] Create a cache control breakpoint at this content block.
36
36
  #
37
- # @param content [String, Array<Anthropic::Models::TextBlockParam, Anthropic::Models::ImageBlockParam>]
37
+ # @param content [String, Array<Anthropic::Models::TextBlockParam, Anthropic::Models::ImageBlockParam, Anthropic::Models::SearchResultBlockParam>]
38
38
  #
39
39
  # @param is_error [Boolean]
40
40
  #
@@ -57,12 +57,14 @@ module Anthropic
57
57
 
58
58
  variant :image, -> { Anthropic::ImageBlockParam }
59
59
 
60
+ variant :search_result, -> { Anthropic::SearchResultBlockParam }
61
+
60
62
  # @!method self.variants
61
- # @return [Array(Anthropic::Models::TextBlockParam, Anthropic::Models::ImageBlockParam)]
63
+ # @return [Array(Anthropic::Models::TextBlockParam, Anthropic::Models::ImageBlockParam, Anthropic::Models::SearchResultBlockParam)]
62
64
  end
63
65
 
64
66
  # @!method self.variants
65
- # @return [Array(String, Array<Anthropic::Models::TextBlockParam, Anthropic::Models::ImageBlockParam>)]
67
+ # @return [Array(String, Array<Anthropic::Models::TextBlockParam, Anthropic::Models::ImageBlockParam, Anthropic::Models::SearchResultBlockParam>)]
66
68
 
67
69
  # @type [Anthropic::Internal::Type::Converter]
68
70
  ContentArray =
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ class ToolTextEditor20250429 < Anthropic::Internal::Type::BaseModel
6
+ # @!attribute name
7
+ # Name of the tool.
8
+ #
9
+ # This is how the tool will be called by the model and in `tool_use` blocks.
10
+ #
11
+ # @return [Symbol, :str_replace_based_edit_tool]
12
+ required :name, const: :str_replace_based_edit_tool
13
+
14
+ # @!attribute type
15
+ #
16
+ # @return [Symbol, :text_editor_20250429]
17
+ required :type, const: :text_editor_20250429
18
+
19
+ # @!attribute cache_control
20
+ # Create a cache control breakpoint at this content block.
21
+ #
22
+ # @return [Anthropic::Models::CacheControlEphemeral, nil]
23
+ optional :cache_control, -> { Anthropic::CacheControlEphemeral }, nil?: true
24
+
25
+ # @!method initialize(cache_control: nil, name: :str_replace_based_edit_tool, type: :text_editor_20250429)
26
+ # Some parameter documentations has been truncated, see
27
+ # {Anthropic::Models::ToolTextEditor20250429} for more details.
28
+ #
29
+ # @param cache_control [Anthropic::Models::CacheControlEphemeral, nil] Create a cache control breakpoint at this content block.
30
+ #
31
+ # @param name [Symbol, :str_replace_based_edit_tool] Name of the tool.
32
+ #
33
+ # @param type [Symbol, :text_editor_20250429]
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ class ToolTextEditor20250728 < Anthropic::Internal::Type::BaseModel
6
+ # @!attribute name
7
+ # Name of the tool.
8
+ #
9
+ # This is how the tool will be called by the model and in `tool_use` blocks.
10
+ #
11
+ # @return [Symbol, :str_replace_based_edit_tool]
12
+ required :name, const: :str_replace_based_edit_tool
13
+
14
+ # @!attribute type
15
+ #
16
+ # @return [Symbol, :text_editor_20250728]
17
+ required :type, const: :text_editor_20250728
18
+
19
+ # @!attribute cache_control
20
+ # Create a cache control breakpoint at this content block.
21
+ #
22
+ # @return [Anthropic::Models::CacheControlEphemeral, nil]
23
+ optional :cache_control, -> { Anthropic::CacheControlEphemeral }, nil?: true
24
+
25
+ # @!attribute max_characters
26
+ # Maximum number of characters to display when viewing a file. If not specified,
27
+ # defaults to displaying the full file.
28
+ #
29
+ # @return [Integer, nil]
30
+ optional :max_characters, Integer, nil?: true
31
+
32
+ # @!method initialize(cache_control: nil, max_characters: nil, name: :str_replace_based_edit_tool, type: :text_editor_20250728)
33
+ # Some parameter documentations has been truncated, see
34
+ # {Anthropic::Models::ToolTextEditor20250728} for more details.
35
+ #
36
+ # @param cache_control [Anthropic::Models::CacheControlEphemeral, nil] Create a cache control breakpoint at this content block.
37
+ #
38
+ # @param max_characters [Integer, nil] Maximum number of characters to display when viewing a file. If not specified, d
39
+ #
40
+ # @param name [Symbol, :str_replace_based_edit_tool] Name of the tool.
41
+ #
42
+ # @param type [Symbol, :text_editor_20250728]
43
+ end
44
+ end
45
+ end
@@ -11,10 +11,14 @@ module Anthropic
11
11
 
12
12
  variant -> { Anthropic::ToolTextEditor20250124 }
13
13
 
14
+ variant -> { Anthropic::ToolTextEditor20250429 }
15
+
16
+ variant -> { Anthropic::ToolTextEditor20250728 }
17
+
14
18
  variant -> { Anthropic::WebSearchTool20250305 }
15
19
 
16
20
  # @!method self.variants
17
- # @return [Array(Anthropic::Models::Tool, Anthropic::Models::ToolBash20250124, Anthropic::Models::ToolTextEditor20250124, Anthropic::Models::WebSearchTool20250305)]
21
+ # @return [Array(Anthropic::Models::Tool, Anthropic::Models::ToolBash20250124, Anthropic::Models::ToolTextEditor20250124, Anthropic::Models::ToolTextEditor20250429, Anthropic::Models::ToolTextEditor20250728, Anthropic::Models::WebSearchTool20250305)]
18
22
  end
19
23
  end
20
24
  end
@@ -23,6 +23,12 @@ module Anthropic
23
23
  # @return [Symbol, :tool_use]
24
24
  required :type, const: :tool_use
25
25
 
26
+ # @api private
27
+ #
28
+ # Internal buffer for accumulating partial JSON during streaming.
29
+ # Used by streaming helpers to reconstruct complete JSON input from deltas.
30
+ optional :json_buf, String
31
+
26
32
  # @!method initialize(id:, input:, name:, type: :tool_use)
27
33
  # @param id [String]
28
34
  # @param input [Object]
@@ -11,16 +11,16 @@ module Anthropic
11
11
  mod.constants.each do |name|
12
12
  case mod.const_get(name)
13
13
  in true | false
14
- mod.define_sorbet_constant!(:TaggedBoolean) { T.type_alias { T.all(T::Boolean, mod) } }
14
+ mod.define_sorbet_constant!(:TaggedBoolean) { T.type_alias { T::Boolean } }
15
15
  mod.define_sorbet_constant!(:OrBoolean) { T.type_alias { T::Boolean } }
16
16
  in Integer
17
- mod.define_sorbet_constant!(:TaggedInteger) { T.type_alias { T.all(Integer, mod) } }
17
+ mod.define_sorbet_constant!(:TaggedInteger) { T.type_alias { Integer } }
18
18
  mod.define_sorbet_constant!(:OrInteger) { T.type_alias { Integer } }
19
19
  in Float
20
- mod.define_sorbet_constant!(:TaggedFloat) { T.type_alias { T.all(Float, mod) } }
20
+ mod.define_sorbet_constant!(:TaggedFloat) { T.type_alias { Float } }
21
21
  mod.define_sorbet_constant!(:OrFloat) { T.type_alias { Float } }
22
22
  in Symbol
23
- mod.define_sorbet_constant!(:TaggedSymbol) { T.type_alias { T.all(Symbol, mod) } }
23
+ mod.define_sorbet_constant!(:TaggedSymbol) { T.type_alias { Symbol } }
24
24
  mod.define_sorbet_constant!(:OrSymbol) { T.type_alias { T.any(Symbol, String) } }
25
25
  else
26
26
  end
@@ -93,6 +93,10 @@ module Anthropic
93
93
 
94
94
  CitationsDelta = Anthropic::Models::CitationsDelta
95
95
 
96
+ CitationSearchResultLocationParam = Anthropic::Models::CitationSearchResultLocationParam
97
+
98
+ CitationsSearchResultLocation = Anthropic::Models::CitationsSearchResultLocation
99
+
96
100
  CitationsWebSearchResultLocation = Anthropic::Models::CitationsWebSearchResultLocation
97
101
 
98
102
  CitationWebSearchResultLocationParam = Anthropic::Models::CitationWebSearchResultLocationParam
@@ -179,6 +183,8 @@ module Anthropic
179
183
 
180
184
  RedactedThinkingBlockParam = Anthropic::Models::RedactedThinkingBlockParam
181
185
 
186
+ SearchResultBlockParam = Anthropic::Models::SearchResultBlockParam
187
+
182
188
  ServerToolUsage = Anthropic::Models::ServerToolUsage
183
189
 
184
190
  ServerToolUseBlock = Anthropic::Models::ServerToolUseBlock
@@ -229,6 +235,10 @@ module Anthropic
229
235
 
230
236
  ToolTextEditor20250124 = Anthropic::Models::ToolTextEditor20250124
231
237
 
238
+ ToolTextEditor20250429 = Anthropic::Models::ToolTextEditor20250429
239
+
240
+ ToolTextEditor20250728 = Anthropic::Models::ToolTextEditor20250728
241
+
232
242
  ToolUnion = Anthropic::Models::ToolUnion
233
243
 
234
244
  ToolUseBlock = Anthropic::Models::ToolUseBlock