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
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.1.1
4
+ version: 1.6.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-06-23 00:00:00.000000000 Z
11
+ date: 2025-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool
@@ -41,6 +41,9 @@ files:
41
41
  - lib/anthropic/errors.rb
42
42
  - lib/anthropic/file_part.rb
43
43
  - lib/anthropic/helpers/bedrock/client.rb
44
+ - lib/anthropic/helpers/streaming.rb
45
+ - lib/anthropic/helpers/streaming/events.rb
46
+ - lib/anthropic/helpers/streaming/message_stream.rb
44
47
  - lib/anthropic/helpers/vertex/client.rb
45
48
  - lib/anthropic/internal.rb
46
49
  - lib/anthropic/internal/jsonl_stream.rb
@@ -78,6 +81,8 @@ files:
78
81
  - lib/anthropic/models/beta/beta_citation_content_block_location_param.rb
79
82
  - lib/anthropic/models/beta/beta_citation_page_location.rb
80
83
  - lib/anthropic/models/beta/beta_citation_page_location_param.rb
84
+ - lib/anthropic/models/beta/beta_citation_search_result_location.rb
85
+ - lib/anthropic/models/beta/beta_citation_search_result_location_param.rb
81
86
  - lib/anthropic/models/beta/beta_citation_web_search_result_location_param.rb
82
87
  - lib/anthropic/models/beta/beta_citations_config_param.rb
83
88
  - lib/anthropic/models/beta/beta_citations_delta.rb
@@ -125,9 +130,11 @@ files:
125
130
  - lib/anthropic/models/beta/beta_raw_message_stream_event.rb
126
131
  - lib/anthropic/models/beta/beta_redacted_thinking_block.rb
127
132
  - lib/anthropic/models/beta/beta_redacted_thinking_block_param.rb
133
+ - lib/anthropic/models/beta/beta_request_document_block.rb
128
134
  - lib/anthropic/models/beta/beta_request_mcp_server_tool_configuration.rb
129
135
  - lib/anthropic/models/beta/beta_request_mcp_server_url_definition.rb
130
136
  - lib/anthropic/models/beta/beta_request_mcp_tool_result_block_param.rb
137
+ - lib/anthropic/models/beta/beta_search_result_block_param.rb
131
138
  - lib/anthropic/models/beta/beta_server_tool_usage.rb
132
139
  - lib/anthropic/models/beta/beta_server_tool_use_block.rb
133
140
  - lib/anthropic/models/beta/beta_server_tool_use_block_param.rb
@@ -158,6 +165,7 @@ files:
158
165
  - lib/anthropic/models/beta/beta_tool_text_editor_20241022.rb
159
166
  - lib/anthropic/models/beta/beta_tool_text_editor_20250124.rb
160
167
  - lib/anthropic/models/beta/beta_tool_text_editor_20250429.rb
168
+ - lib/anthropic/models/beta/beta_tool_text_editor_20250728.rb
161
169
  - lib/anthropic/models/beta/beta_tool_union.rb
162
170
  - lib/anthropic/models/beta/beta_tool_use_block.rb
163
171
  - lib/anthropic/models/beta/beta_tool_use_block_param.rb
@@ -219,9 +227,11 @@ files:
219
227
  - lib/anthropic/models/citation_content_block_location_param.rb
220
228
  - lib/anthropic/models/citation_page_location.rb
221
229
  - lib/anthropic/models/citation_page_location_param.rb
230
+ - lib/anthropic/models/citation_search_result_location_param.rb
222
231
  - lib/anthropic/models/citation_web_search_result_location_param.rb
223
232
  - lib/anthropic/models/citations_config_param.rb
224
233
  - lib/anthropic/models/citations_delta.rb
234
+ - lib/anthropic/models/citations_search_result_location.rb
225
235
  - lib/anthropic/models/citations_web_search_result_location.rb
226
236
  - lib/anthropic/models/completion.rb
227
237
  - lib/anthropic/models/completion_create_params.rb
@@ -278,6 +288,7 @@ files:
278
288
  - lib/anthropic/models/raw_message_stream_event.rb
279
289
  - lib/anthropic/models/redacted_thinking_block.rb
280
290
  - lib/anthropic/models/redacted_thinking_block_param.rb
291
+ - lib/anthropic/models/search_result_block_param.rb
281
292
  - lib/anthropic/models/server_tool_usage.rb
282
293
  - lib/anthropic/models/server_tool_use_block.rb
283
294
  - lib/anthropic/models/server_tool_use_block_param.rb
@@ -303,6 +314,8 @@ files:
303
314
  - lib/anthropic/models/tool_choice_tool.rb
304
315
  - lib/anthropic/models/tool_result_block_param.rb
305
316
  - lib/anthropic/models/tool_text_editor_20250124.rb
317
+ - lib/anthropic/models/tool_text_editor_20250429.rb
318
+ - lib/anthropic/models/tool_text_editor_20250728.rb
306
319
  - lib/anthropic/models/tool_union.rb
307
320
  - lib/anthropic/models/tool_use_block.rb
308
321
  - lib/anthropic/models/tool_use_block_param.rb
@@ -328,6 +341,7 @@ files:
328
341
  - lib/anthropic/resources/messages.rb
329
342
  - lib/anthropic/resources/messages/batches.rb
330
343
  - lib/anthropic/resources/models.rb
344
+ - lib/anthropic/streaming.rb
331
345
  - lib/anthropic/version.rb
332
346
  - lib/anthropic/vertex.rb
333
347
  - manifest.yaml
@@ -336,6 +350,8 @@ files:
336
350
  - rbi/anthropic/errors.rbi
337
351
  - rbi/anthropic/file_part.rbi
338
352
  - rbi/anthropic/helpers/bedrock/client.rbi
353
+ - rbi/anthropic/helpers/streaming/events.rbi
354
+ - rbi/anthropic/helpers/streaming/message_stream.rbi
339
355
  - rbi/anthropic/helpers/vertex/client.rbi
340
356
  - rbi/anthropic/internal.rbi
341
357
  - rbi/anthropic/internal/jsonl_stream.rbi
@@ -373,6 +389,8 @@ files:
373
389
  - rbi/anthropic/models/beta/beta_citation_content_block_location_param.rbi
374
390
  - rbi/anthropic/models/beta/beta_citation_page_location.rbi
375
391
  - rbi/anthropic/models/beta/beta_citation_page_location_param.rbi
392
+ - rbi/anthropic/models/beta/beta_citation_search_result_location.rbi
393
+ - rbi/anthropic/models/beta/beta_citation_search_result_location_param.rbi
376
394
  - rbi/anthropic/models/beta/beta_citation_web_search_result_location_param.rbi
377
395
  - rbi/anthropic/models/beta/beta_citations_config_param.rbi
378
396
  - rbi/anthropic/models/beta/beta_citations_delta.rbi
@@ -420,9 +438,11 @@ files:
420
438
  - rbi/anthropic/models/beta/beta_raw_message_stream_event.rbi
421
439
  - rbi/anthropic/models/beta/beta_redacted_thinking_block.rbi
422
440
  - rbi/anthropic/models/beta/beta_redacted_thinking_block_param.rbi
441
+ - rbi/anthropic/models/beta/beta_request_document_block.rbi
423
442
  - rbi/anthropic/models/beta/beta_request_mcp_server_tool_configuration.rbi
424
443
  - rbi/anthropic/models/beta/beta_request_mcp_server_url_definition.rbi
425
444
  - rbi/anthropic/models/beta/beta_request_mcp_tool_result_block_param.rbi
445
+ - rbi/anthropic/models/beta/beta_search_result_block_param.rbi
426
446
  - rbi/anthropic/models/beta/beta_server_tool_usage.rbi
427
447
  - rbi/anthropic/models/beta/beta_server_tool_use_block.rbi
428
448
  - rbi/anthropic/models/beta/beta_server_tool_use_block_param.rbi
@@ -453,6 +473,7 @@ files:
453
473
  - rbi/anthropic/models/beta/beta_tool_text_editor_20241022.rbi
454
474
  - rbi/anthropic/models/beta/beta_tool_text_editor_20250124.rbi
455
475
  - rbi/anthropic/models/beta/beta_tool_text_editor_20250429.rbi
476
+ - rbi/anthropic/models/beta/beta_tool_text_editor_20250728.rbi
456
477
  - rbi/anthropic/models/beta/beta_tool_union.rbi
457
478
  - rbi/anthropic/models/beta/beta_tool_use_block.rbi
458
479
  - rbi/anthropic/models/beta/beta_tool_use_block_param.rbi
@@ -514,9 +535,11 @@ files:
514
535
  - rbi/anthropic/models/citation_content_block_location_param.rbi
515
536
  - rbi/anthropic/models/citation_page_location.rbi
516
537
  - rbi/anthropic/models/citation_page_location_param.rbi
538
+ - rbi/anthropic/models/citation_search_result_location_param.rbi
517
539
  - rbi/anthropic/models/citation_web_search_result_location_param.rbi
518
540
  - rbi/anthropic/models/citations_config_param.rbi
519
541
  - rbi/anthropic/models/citations_delta.rbi
542
+ - rbi/anthropic/models/citations_search_result_location.rbi
520
543
  - rbi/anthropic/models/citations_web_search_result_location.rbi
521
544
  - rbi/anthropic/models/completion.rbi
522
545
  - rbi/anthropic/models/completion_create_params.rbi
@@ -573,6 +596,7 @@ files:
573
596
  - rbi/anthropic/models/raw_message_stream_event.rbi
574
597
  - rbi/anthropic/models/redacted_thinking_block.rbi
575
598
  - rbi/anthropic/models/redacted_thinking_block_param.rbi
599
+ - rbi/anthropic/models/search_result_block_param.rbi
576
600
  - rbi/anthropic/models/server_tool_usage.rbi
577
601
  - rbi/anthropic/models/server_tool_use_block.rbi
578
602
  - rbi/anthropic/models/server_tool_use_block_param.rbi
@@ -598,6 +622,8 @@ files:
598
622
  - rbi/anthropic/models/tool_choice_tool.rbi
599
623
  - rbi/anthropic/models/tool_result_block_param.rbi
600
624
  - rbi/anthropic/models/tool_text_editor_20250124.rbi
625
+ - rbi/anthropic/models/tool_text_editor_20250429.rbi
626
+ - rbi/anthropic/models/tool_text_editor_20250728.rbi
601
627
  - rbi/anthropic/models/tool_union.rbi
602
628
  - rbi/anthropic/models/tool_use_block.rbi
603
629
  - rbi/anthropic/models/tool_use_block_param.rbi
@@ -623,6 +649,7 @@ files:
623
649
  - rbi/anthropic/resources/messages.rbi
624
650
  - rbi/anthropic/resources/messages/batches.rbi
625
651
  - rbi/anthropic/resources/models.rbi
652
+ - rbi/anthropic/streaming.rbi
626
653
  - rbi/anthropic/version.rbi
627
654
  - rbi/anthropic/vertex.rbi
628
655
  - sig/anthropic/bedrock.rbs
@@ -630,6 +657,8 @@ files:
630
657
  - sig/anthropic/errors.rbs
631
658
  - sig/anthropic/file_part.rbs
632
659
  - sig/anthropic/helpers/bedrock/client.rbs
660
+ - sig/anthropic/helpers/streaming/events.rbs
661
+ - sig/anthropic/helpers/streaming/message_stream.rbs
633
662
  - sig/anthropic/helpers/vertex/client.rbs
634
663
  - sig/anthropic/internal.rbs
635
664
  - sig/anthropic/internal/jsonl_stream.rbs
@@ -667,6 +696,8 @@ files:
667
696
  - sig/anthropic/models/beta/beta_citation_content_block_location_param.rbs
668
697
  - sig/anthropic/models/beta/beta_citation_page_location.rbs
669
698
  - sig/anthropic/models/beta/beta_citation_page_location_param.rbs
699
+ - sig/anthropic/models/beta/beta_citation_search_result_location.rbs
700
+ - sig/anthropic/models/beta/beta_citation_search_result_location_param.rbs
670
701
  - sig/anthropic/models/beta/beta_citation_web_search_result_location_param.rbs
671
702
  - sig/anthropic/models/beta/beta_citations_config_param.rbs
672
703
  - sig/anthropic/models/beta/beta_citations_delta.rbs
@@ -714,9 +745,11 @@ files:
714
745
  - sig/anthropic/models/beta/beta_raw_message_stream_event.rbs
715
746
  - sig/anthropic/models/beta/beta_redacted_thinking_block.rbs
716
747
  - sig/anthropic/models/beta/beta_redacted_thinking_block_param.rbs
748
+ - sig/anthropic/models/beta/beta_request_document_block.rbs
717
749
  - sig/anthropic/models/beta/beta_request_mcp_server_tool_configuration.rbs
718
750
  - sig/anthropic/models/beta/beta_request_mcp_server_url_definition.rbs
719
751
  - sig/anthropic/models/beta/beta_request_mcp_tool_result_block_param.rbs
752
+ - sig/anthropic/models/beta/beta_search_result_block_param.rbs
720
753
  - sig/anthropic/models/beta/beta_server_tool_usage.rbs
721
754
  - sig/anthropic/models/beta/beta_server_tool_use_block.rbs
722
755
  - sig/anthropic/models/beta/beta_server_tool_use_block_param.rbs
@@ -747,6 +780,7 @@ files:
747
780
  - sig/anthropic/models/beta/beta_tool_text_editor_20241022.rbs
748
781
  - sig/anthropic/models/beta/beta_tool_text_editor_20250124.rbs
749
782
  - sig/anthropic/models/beta/beta_tool_text_editor_20250429.rbs
783
+ - sig/anthropic/models/beta/beta_tool_text_editor_20250728.rbs
750
784
  - sig/anthropic/models/beta/beta_tool_union.rbs
751
785
  - sig/anthropic/models/beta/beta_tool_use_block.rbs
752
786
  - sig/anthropic/models/beta/beta_tool_use_block_param.rbs
@@ -808,9 +842,11 @@ files:
808
842
  - sig/anthropic/models/citation_content_block_location_param.rbs
809
843
  - sig/anthropic/models/citation_page_location.rbs
810
844
  - sig/anthropic/models/citation_page_location_param.rbs
845
+ - sig/anthropic/models/citation_search_result_location_param.rbs
811
846
  - sig/anthropic/models/citation_web_search_result_location_param.rbs
812
847
  - sig/anthropic/models/citations_config_param.rbs
813
848
  - sig/anthropic/models/citations_delta.rbs
849
+ - sig/anthropic/models/citations_search_result_location.rbs
814
850
  - sig/anthropic/models/citations_web_search_result_location.rbs
815
851
  - sig/anthropic/models/completion.rbs
816
852
  - sig/anthropic/models/completion_create_params.rbs
@@ -867,6 +903,7 @@ files:
867
903
  - sig/anthropic/models/raw_message_stream_event.rbs
868
904
  - sig/anthropic/models/redacted_thinking_block.rbs
869
905
  - sig/anthropic/models/redacted_thinking_block_param.rbs
906
+ - sig/anthropic/models/search_result_block_param.rbs
870
907
  - sig/anthropic/models/server_tool_usage.rbs
871
908
  - sig/anthropic/models/server_tool_use_block.rbs
872
909
  - sig/anthropic/models/server_tool_use_block_param.rbs
@@ -892,6 +929,8 @@ files:
892
929
  - sig/anthropic/models/tool_choice_tool.rbs
893
930
  - sig/anthropic/models/tool_result_block_param.rbs
894
931
  - sig/anthropic/models/tool_text_editor_20250124.rbs
932
+ - sig/anthropic/models/tool_text_editor_20250429.rbs
933
+ - sig/anthropic/models/tool_text_editor_20250728.rbs
895
934
  - sig/anthropic/models/tool_union.rbs
896
935
  - sig/anthropic/models/tool_use_block.rbs
897
936
  - sig/anthropic/models/tool_use_block_param.rbs
@@ -917,10 +956,12 @@ files:
917
956
  - sig/anthropic/resources/messages.rbs
918
957
  - sig/anthropic/resources/messages/batches.rbs
919
958
  - sig/anthropic/resources/models.rbs
959
+ - sig/anthropic/streaming.rbs
920
960
  - sig/anthropic/version.rbs
921
961
  - sig/anthropic/vertex.rbs
922
962
  homepage: https://gemdocs.org/gems/anthropic
923
- licenses: []
963
+ licenses:
964
+ - MIT
924
965
  metadata:
925
966
  homepage_uri: https://gemdocs.org/gems/anthropic
926
967
  source_code_uri: https://github.com/anthropics/anthropic-sdk-ruby