anthropic 1.7.0 → 1.8.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 (134) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/README.md +1 -1
  4. data/lib/anthropic/helpers/input_schema/array_of.rb +41 -0
  5. data/lib/anthropic/helpers/input_schema/base_model.rb +86 -0
  6. data/lib/anthropic/helpers/input_schema/boolean.rb +29 -0
  7. data/lib/anthropic/helpers/input_schema/enum_of.rb +63 -0
  8. data/lib/anthropic/helpers/input_schema/json_schema_converter.rb +199 -0
  9. data/lib/anthropic/helpers/input_schema/parsed_json.rb +39 -0
  10. data/lib/anthropic/helpers/input_schema/property_mapping.rb +47 -0
  11. data/lib/anthropic/helpers/input_schema/union_of.rb +56 -0
  12. data/lib/anthropic/helpers/input_schema.rb +16 -0
  13. data/lib/anthropic/helpers/streaming/message_stream.rb +41 -1
  14. data/lib/anthropic/input_schema.rb +10 -0
  15. data/lib/anthropic/internal/stream.rb +2 -1
  16. data/lib/anthropic/internal/transport/base_client.rb +1 -2
  17. data/lib/anthropic/internal/transport/pooled_net_requester.rb +1 -9
  18. data/lib/anthropic/internal/type/base_model.rb +2 -9
  19. data/lib/anthropic/internal/util.rb +1 -1
  20. data/lib/anthropic/models/beta/beta_bash_code_execution_output_block.rb +25 -0
  21. data/lib/anthropic/models/beta/beta_bash_code_execution_output_block_param.rb +25 -0
  22. data/lib/anthropic/models/beta/beta_bash_code_execution_result_block.rb +44 -0
  23. data/lib/anthropic/models/beta/beta_bash_code_execution_result_block_param.rb +44 -0
  24. data/lib/anthropic/models/beta/beta_bash_code_execution_tool_result_block.rb +43 -0
  25. data/lib/anthropic/models/beta/beta_bash_code_execution_tool_result_block_param.rb +53 -0
  26. data/lib/anthropic/models/beta/beta_bash_code_execution_tool_result_error.rb +39 -0
  27. data/lib/anthropic/models/beta/beta_bash_code_execution_tool_result_error_param.rb +39 -0
  28. data/lib/anthropic/models/beta/beta_code_execution_tool_20250825.rb +40 -0
  29. data/lib/anthropic/models/beta/beta_content_block.rb +6 -1
  30. data/lib/anthropic/models/beta/beta_content_block_param.rb +7 -1
  31. data/lib/anthropic/models/beta/beta_message.rb +2 -2
  32. data/lib/anthropic/models/beta/beta_message_param.rb +3 -3
  33. data/lib/anthropic/models/beta/beta_raw_content_block_start_event.rb +8 -3
  34. data/lib/anthropic/models/beta/beta_server_tool_use_block.rb +2 -0
  35. data/lib/anthropic/models/beta/beta_server_tool_use_block_param.rb +2 -0
  36. data/lib/anthropic/models/beta/beta_text_editor_code_execution_create_result_block.rb +25 -0
  37. data/lib/anthropic/models/beta/beta_text_editor_code_execution_create_result_block_param.rb +26 -0
  38. data/lib/anthropic/models/beta/beta_text_editor_code_execution_str_replace_result_block.rb +49 -0
  39. data/lib/anthropic/models/beta/beta_text_editor_code_execution_str_replace_result_block_param.rb +50 -0
  40. data/lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block.rb +47 -0
  41. data/lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block_param.rb +57 -0
  42. data/lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error.rb +45 -0
  43. data/lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_param.rb +46 -0
  44. data/lib/anthropic/models/beta/beta_text_editor_code_execution_view_result_block.rb +61 -0
  45. data/lib/anthropic/models/beta/beta_text_editor_code_execution_view_result_block_param.rb +62 -0
  46. data/lib/anthropic/models/beta/beta_tool_union.rb +3 -1
  47. data/lib/anthropic/models/beta/message_count_tokens_params.rb +7 -30
  48. data/lib/anthropic/models/beta/message_create_params.rb +3 -26
  49. data/lib/anthropic/models/beta/messages/batch_create_params.rb +6 -36
  50. data/lib/anthropic/models/beta/messages/beta_message_batch.rb +1 -4
  51. data/lib/anthropic/models/beta_error_response.rb +7 -1
  52. data/lib/anthropic/models/error_response.rb +7 -1
  53. data/lib/anthropic/models/message_count_tokens_params.rb +1 -24
  54. data/lib/anthropic/models/message_create_params.rb +1 -24
  55. data/lib/anthropic/models/messages/batch_create_params.rb +2 -28
  56. data/lib/anthropic/models/tool_use_block.rb +8 -0
  57. data/lib/anthropic/resources/beta/messages.rb +3 -3
  58. data/lib/anthropic/resources/messages.rb +85 -1
  59. data/lib/anthropic/version.rb +1 -1
  60. data/lib/anthropic.rb +29 -0
  61. data/rbi/anthropic/errors.rbi +2 -2
  62. data/rbi/anthropic/helpers/input_schema/array_of.rbi +16 -0
  63. data/rbi/anthropic/helpers/input_schema/base_model.rbi +21 -0
  64. data/rbi/anthropic/helpers/input_schema/boolean.rbi +11 -0
  65. data/rbi/anthropic/helpers/input_schema/enum_of.rbi +30 -0
  66. data/rbi/anthropic/helpers/input_schema/json_schema_converter.rbi +89 -0
  67. data/rbi/anthropic/helpers/input_schema/union_of.rbi +23 -0
  68. data/rbi/anthropic/helpers/structured_output.rbi +16 -0
  69. data/rbi/anthropic/input_schema.rbi +12 -0
  70. data/rbi/anthropic/models/beta/beta_bash_code_execution_output_block.rbi +33 -0
  71. data/rbi/anthropic/models/beta/beta_bash_code_execution_output_block_param.rbi +34 -0
  72. data/rbi/anthropic/models/beta/beta_bash_code_execution_result_block.rbi +72 -0
  73. data/rbi/anthropic/models/beta/beta_bash_code_execution_result_block_param.rbi +77 -0
  74. data/rbi/anthropic/models/beta/beta_bash_code_execution_tool_result_block.rbi +86 -0
  75. data/rbi/anthropic/models/beta/beta_bash_code_execution_tool_result_block_param.rbi +110 -0
  76. data/rbi/anthropic/models/beta/beta_bash_code_execution_tool_result_error.rbi +101 -0
  77. data/rbi/anthropic/models/beta/beta_bash_code_execution_tool_result_error_param.rbi +101 -0
  78. data/rbi/anthropic/models/beta/beta_code_execution_tool_20250825.rbi +72 -0
  79. data/rbi/anthropic/models/beta/beta_content_block.rbi +2 -0
  80. data/rbi/anthropic/models/beta/beta_content_block_param.rbi +2 -0
  81. data/rbi/anthropic/models/beta/beta_message.rbi +2 -0
  82. data/rbi/anthropic/models/beta/beta_raw_content_block_start_event.rbi +4 -0
  83. data/rbi/anthropic/models/beta/beta_server_tool_use_block.rbi +10 -0
  84. data/rbi/anthropic/models/beta/beta_server_tool_use_block_param.rbi +10 -0
  85. data/rbi/anthropic/models/beta/beta_text_editor_code_execution_create_result_block.rbi +41 -0
  86. data/rbi/anthropic/models/beta/beta_text_editor_code_execution_create_result_block_param.rbi +41 -0
  87. data/rbi/anthropic/models/beta/beta_text_editor_code_execution_str_replace_result_block.rbi +73 -0
  88. data/rbi/anthropic/models/beta/beta_text_editor_code_execution_str_replace_result_block_param.rbi +73 -0
  89. data/rbi/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block.rbi +90 -0
  90. data/rbi/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block_param.rbi +118 -0
  91. data/rbi/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error.rbi +110 -0
  92. data/rbi/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_param.rbi +110 -0
  93. data/rbi/anthropic/models/beta/beta_text_editor_code_execution_view_result_block.rbi +118 -0
  94. data/rbi/anthropic/models/beta/beta_text_editor_code_execution_view_result_block_param.rbi +118 -0
  95. data/rbi/anthropic/models/beta/beta_tool_union.rbi +1 -0
  96. data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +7 -48
  97. data/rbi/anthropic/models/beta/message_create_params.rbi +6 -48
  98. data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +6 -48
  99. data/rbi/anthropic/models/beta_error_response.rbi +10 -2
  100. data/rbi/anthropic/models/error_response.rbi +10 -2
  101. data/rbi/anthropic/models/message_count_tokens_params.rbi +2 -48
  102. data/rbi/anthropic/models/message_create_params.rbi +2 -48
  103. data/rbi/anthropic/models/messages/batch_create_params.rbi +2 -48
  104. data/rbi/anthropic/resources/beta/messages.rbi +6 -72
  105. data/rbi/anthropic/resources/messages.rbi +3 -72
  106. data/sig/anthropic/models/beta/beta_bash_code_execution_output_block.rbs +23 -0
  107. data/sig/anthropic/models/beta/beta_bash_code_execution_output_block_param.rbs +23 -0
  108. data/sig/anthropic/models/beta/beta_bash_code_execution_result_block.rbs +44 -0
  109. data/sig/anthropic/models/beta/beta_bash_code_execution_result_block_param.rbs +44 -0
  110. data/sig/anthropic/models/beta/beta_bash_code_execution_tool_result_block.rbs +44 -0
  111. data/sig/anthropic/models/beta/beta_bash_code_execution_tool_result_block_param.rbs +49 -0
  112. data/sig/anthropic/models/beta/beta_bash_code_execution_tool_result_error.rbs +48 -0
  113. data/sig/anthropic/models/beta/beta_bash_code_execution_tool_result_error_param.rbs +48 -0
  114. data/sig/anthropic/models/beta/beta_code_execution_tool_20250825.rbs +34 -0
  115. data/sig/anthropic/models/beta/beta_content_block.rbs +2 -0
  116. data/sig/anthropic/models/beta/beta_content_block_param.rbs +2 -0
  117. data/sig/anthropic/models/beta/beta_raw_content_block_start_event.rbs +2 -0
  118. data/sig/anthropic/models/beta/beta_server_tool_use_block.rbs +7 -1
  119. data/sig/anthropic/models/beta/beta_server_tool_use_block_param.rbs +7 -1
  120. data/sig/anthropic/models/beta/beta_text_editor_code_execution_create_result_block.rbs +29 -0
  121. data/sig/anthropic/models/beta/beta_text_editor_code_execution_create_result_block_param.rbs +29 -0
  122. data/sig/anthropic/models/beta/beta_text_editor_code_execution_str_replace_result_block.rbs +49 -0
  123. data/sig/anthropic/models/beta/beta_text_editor_code_execution_str_replace_result_block_param.rbs +49 -0
  124. data/sig/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block.rbs +46 -0
  125. data/sig/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block_param.rbs +51 -0
  126. data/sig/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error.rbs +53 -0
  127. data/sig/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_param.rbs +53 -0
  128. data/sig/anthropic/models/beta/beta_text_editor_code_execution_view_result_block.rbs +61 -0
  129. data/sig/anthropic/models/beta/beta_text_editor_code_execution_view_result_block_param.rbs +61 -0
  130. data/sig/anthropic/models/beta/beta_tool_union.rbs +1 -0
  131. data/sig/anthropic/models/beta/message_count_tokens_params.rbs +1 -0
  132. data/sig/anthropic/models/beta_error_response.rbs +13 -2
  133. data/sig/anthropic/models/error_response.rbs +13 -2
  134. metadata +77 -2
@@ -0,0 +1,53 @@
1
+ module Anthropic
2
+ module Models
3
+ class BetaTextEditorCodeExecutionToolResultErrorParam = Beta::BetaTextEditorCodeExecutionToolResultErrorParam
4
+
5
+ module Beta
6
+ type beta_text_editor_code_execution_tool_result_error_param =
7
+ {
8
+ error_code: Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultErrorParam::error_code,
9
+ type: :text_editor_code_execution_tool_result_error,
10
+ error_message: String?
11
+ }
12
+
13
+ class BetaTextEditorCodeExecutionToolResultErrorParam < Anthropic::Internal::Type::BaseModel
14
+ attr_accessor error_code: Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultErrorParam::error_code
15
+
16
+ attr_accessor type: :text_editor_code_execution_tool_result_error
17
+
18
+ attr_accessor error_message: String?
19
+
20
+ def initialize: (
21
+ error_code: Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultErrorParam::error_code,
22
+ ?error_message: String?,
23
+ ?type: :text_editor_code_execution_tool_result_error
24
+ ) -> void
25
+
26
+ def to_hash: -> {
27
+ error_code: Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultErrorParam::error_code,
28
+ type: :text_editor_code_execution_tool_result_error,
29
+ error_message: String?
30
+ }
31
+
32
+ type error_code =
33
+ :invalid_tool_input
34
+ | :unavailable
35
+ | :too_many_requests
36
+ | :execution_time_exceeded
37
+ | :file_not_found
38
+
39
+ module ErrorCode
40
+ extend Anthropic::Internal::Type::Enum
41
+
42
+ INVALID_TOOL_INPUT: :invalid_tool_input
43
+ UNAVAILABLE: :unavailable
44
+ TOO_MANY_REQUESTS: :too_many_requests
45
+ EXECUTION_TIME_EXCEEDED: :execution_time_exceeded
46
+ FILE_NOT_FOUND: :file_not_found
47
+
48
+ def self?.values: -> ::Array[Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultErrorParam::error_code]
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,61 @@
1
+ module Anthropic
2
+ module Models
3
+ class BetaTextEditorCodeExecutionViewResultBlock = Beta::BetaTextEditorCodeExecutionViewResultBlock
4
+
5
+ module Beta
6
+ type beta_text_editor_code_execution_view_result_block =
7
+ {
8
+ content: String,
9
+ file_type: Anthropic::Models::Beta::BetaTextEditorCodeExecutionViewResultBlock::file_type,
10
+ num_lines: Integer?,
11
+ start_line: Integer?,
12
+ total_lines: Integer?,
13
+ type: :text_editor_code_execution_view_result
14
+ }
15
+
16
+ class BetaTextEditorCodeExecutionViewResultBlock < Anthropic::Internal::Type::BaseModel
17
+ attr_accessor content: String
18
+
19
+ attr_accessor file_type: Anthropic::Models::Beta::BetaTextEditorCodeExecutionViewResultBlock::file_type
20
+
21
+ attr_accessor num_lines: Integer?
22
+
23
+ attr_accessor start_line: Integer?
24
+
25
+ attr_accessor total_lines: Integer?
26
+
27
+ attr_accessor type: :text_editor_code_execution_view_result
28
+
29
+ def initialize: (
30
+ content: String,
31
+ file_type: Anthropic::Models::Beta::BetaTextEditorCodeExecutionViewResultBlock::file_type,
32
+ num_lines: Integer?,
33
+ start_line: Integer?,
34
+ total_lines: Integer?,
35
+ ?type: :text_editor_code_execution_view_result
36
+ ) -> void
37
+
38
+ def to_hash: -> {
39
+ content: String,
40
+ file_type: Anthropic::Models::Beta::BetaTextEditorCodeExecutionViewResultBlock::file_type,
41
+ num_lines: Integer?,
42
+ start_line: Integer?,
43
+ total_lines: Integer?,
44
+ type: :text_editor_code_execution_view_result
45
+ }
46
+
47
+ type file_type = :text | :image | :pdf
48
+
49
+ module FileType
50
+ extend Anthropic::Internal::Type::Enum
51
+
52
+ TEXT: :text
53
+ IMAGE: :image
54
+ PDF: :pdf
55
+
56
+ def self?.values: -> ::Array[Anthropic::Models::Beta::BetaTextEditorCodeExecutionViewResultBlock::file_type]
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,61 @@
1
+ module Anthropic
2
+ module Models
3
+ class BetaTextEditorCodeExecutionViewResultBlockParam = Beta::BetaTextEditorCodeExecutionViewResultBlockParam
4
+
5
+ module Beta
6
+ type beta_text_editor_code_execution_view_result_block_param =
7
+ {
8
+ content: String,
9
+ file_type: Anthropic::Models::Beta::BetaTextEditorCodeExecutionViewResultBlockParam::file_type,
10
+ type: :text_editor_code_execution_view_result,
11
+ num_lines: Integer?,
12
+ start_line: Integer?,
13
+ total_lines: Integer?
14
+ }
15
+
16
+ class BetaTextEditorCodeExecutionViewResultBlockParam < Anthropic::Internal::Type::BaseModel
17
+ attr_accessor content: String
18
+
19
+ attr_accessor file_type: Anthropic::Models::Beta::BetaTextEditorCodeExecutionViewResultBlockParam::file_type
20
+
21
+ attr_accessor type: :text_editor_code_execution_view_result
22
+
23
+ attr_accessor num_lines: Integer?
24
+
25
+ attr_accessor start_line: Integer?
26
+
27
+ attr_accessor total_lines: Integer?
28
+
29
+ def initialize: (
30
+ content: String,
31
+ file_type: Anthropic::Models::Beta::BetaTextEditorCodeExecutionViewResultBlockParam::file_type,
32
+ ?num_lines: Integer?,
33
+ ?start_line: Integer?,
34
+ ?total_lines: Integer?,
35
+ ?type: :text_editor_code_execution_view_result
36
+ ) -> void
37
+
38
+ def to_hash: -> {
39
+ content: String,
40
+ file_type: Anthropic::Models::Beta::BetaTextEditorCodeExecutionViewResultBlockParam::file_type,
41
+ type: :text_editor_code_execution_view_result,
42
+ num_lines: Integer?,
43
+ start_line: Integer?,
44
+ total_lines: Integer?
45
+ }
46
+
47
+ type file_type = :text | :image | :pdf
48
+
49
+ module FileType
50
+ extend Anthropic::Internal::Type::Enum
51
+
52
+ TEXT: :text
53
+ IMAGE: :image
54
+ PDF: :pdf
55
+
56
+ def self?.values: -> ::Array[Anthropic::Models::Beta::BetaTextEditorCodeExecutionViewResultBlockParam::file_type]
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
@@ -8,6 +8,7 @@ module Anthropic
8
8
  | Anthropic::Beta::BetaToolBash20241022
9
9
  | Anthropic::Beta::BetaToolBash20250124
10
10
  | Anthropic::Beta::BetaCodeExecutionTool20250522
11
+ | Anthropic::Beta::BetaCodeExecutionTool20250825
11
12
  | Anthropic::Beta::BetaToolComputerUse20241022
12
13
  | Anthropic::Beta::BetaToolComputerUse20250124
13
14
  | Anthropic::Beta::BetaToolTextEditor20241022
@@ -97,6 +97,7 @@ module Anthropic
97
97
  | Anthropic::Beta::BetaToolBash20241022
98
98
  | Anthropic::Beta::BetaToolBash20250124
99
99
  | Anthropic::Beta::BetaCodeExecutionTool20250522
100
+ | Anthropic::Beta::BetaCodeExecutionTool20250825
100
101
  | Anthropic::Beta::BetaToolComputerUse20241022
101
102
  | Anthropic::Beta::BetaToolComputerUse20250124
102
103
  | Anthropic::Beta::BetaToolTextEditor20241022
@@ -1,19 +1,30 @@
1
1
  module Anthropic
2
2
  module Models
3
3
  type beta_error_response =
4
- { error: Anthropic::Models::beta_error, type: :error }
4
+ {
5
+ error: Anthropic::Models::beta_error,
6
+ request_id: String?,
7
+ type: :error
8
+ }
5
9
 
6
10
  class BetaErrorResponse < Anthropic::Internal::Type::BaseModel
7
11
  attr_accessor error: Anthropic::Models::beta_error
8
12
 
13
+ attr_accessor request_id: String?
14
+
9
15
  attr_accessor type: :error
10
16
 
11
17
  def initialize: (
12
18
  error: Anthropic::Models::beta_error,
19
+ request_id: String?,
13
20
  ?type: :error
14
21
  ) -> void
15
22
 
16
- def to_hash: -> { error: Anthropic::Models::beta_error, type: :error }
23
+ def to_hash: -> {
24
+ error: Anthropic::Models::beta_error,
25
+ request_id: String?,
26
+ type: :error
27
+ }
17
28
  end
18
29
  end
19
30
  end
@@ -1,19 +1,30 @@
1
1
  module Anthropic
2
2
  module Models
3
3
  type error_response =
4
- { error: Anthropic::Models::error_object, type: :error }
4
+ {
5
+ error: Anthropic::Models::error_object,
6
+ request_id: String?,
7
+ type: :error
8
+ }
5
9
 
6
10
  class ErrorResponse < Anthropic::Internal::Type::BaseModel
7
11
  attr_accessor error: Anthropic::Models::error_object
8
12
 
13
+ attr_accessor request_id: String?
14
+
9
15
  attr_accessor type: :error
10
16
 
11
17
  def initialize: (
12
18
  error: Anthropic::Models::error_object,
19
+ request_id: String?,
13
20
  ?type: :error
14
21
  ) -> void
15
22
 
16
- def to_hash: -> { error: Anthropic::Models::error_object, type: :error }
23
+ def to_hash: -> {
24
+ error: Anthropic::Models::error_object,
25
+ request_id: String?,
26
+ type: :error
27
+ }
17
28
  end
18
29
  end
19
30
  end
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.7.0
4
+ version: 1.8.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-08-13 00:00:00.000000000 Z
11
+ date: 2025-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool
@@ -41,10 +41,20 @@ 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/input_schema.rb
45
+ - lib/anthropic/helpers/input_schema/array_of.rb
46
+ - lib/anthropic/helpers/input_schema/base_model.rb
47
+ - lib/anthropic/helpers/input_schema/boolean.rb
48
+ - lib/anthropic/helpers/input_schema/enum_of.rb
49
+ - lib/anthropic/helpers/input_schema/json_schema_converter.rb
50
+ - lib/anthropic/helpers/input_schema/parsed_json.rb
51
+ - lib/anthropic/helpers/input_schema/property_mapping.rb
52
+ - lib/anthropic/helpers/input_schema/union_of.rb
44
53
  - lib/anthropic/helpers/streaming.rb
45
54
  - lib/anthropic/helpers/streaming/events.rb
46
55
  - lib/anthropic/helpers/streaming/message_stream.rb
47
56
  - lib/anthropic/helpers/vertex/client.rb
57
+ - lib/anthropic/input_schema.rb
48
58
  - lib/anthropic/internal.rb
49
59
  - lib/anthropic/internal/jsonl_stream.rb
50
60
  - lib/anthropic/internal/page.rb
@@ -73,6 +83,14 @@ files:
73
83
  - lib/anthropic/models/beta/beta_base64_image_source.rb
74
84
  - lib/anthropic/models/beta/beta_base64_pdf_block.rb
75
85
  - lib/anthropic/models/beta/beta_base64_pdf_source.rb
86
+ - lib/anthropic/models/beta/beta_bash_code_execution_output_block.rb
87
+ - lib/anthropic/models/beta/beta_bash_code_execution_output_block_param.rb
88
+ - lib/anthropic/models/beta/beta_bash_code_execution_result_block.rb
89
+ - lib/anthropic/models/beta/beta_bash_code_execution_result_block_param.rb
90
+ - lib/anthropic/models/beta/beta_bash_code_execution_tool_result_block.rb
91
+ - lib/anthropic/models/beta/beta_bash_code_execution_tool_result_block_param.rb
92
+ - lib/anthropic/models/beta/beta_bash_code_execution_tool_result_error.rb
93
+ - lib/anthropic/models/beta/beta_bash_code_execution_tool_result_error_param.rb
76
94
  - lib/anthropic/models/beta/beta_cache_control_ephemeral.rb
77
95
  - lib/anthropic/models/beta/beta_cache_creation.rb
78
96
  - lib/anthropic/models/beta/beta_citation_char_location.rb
@@ -92,6 +110,7 @@ files:
92
110
  - lib/anthropic/models/beta/beta_code_execution_result_block.rb
93
111
  - lib/anthropic/models/beta/beta_code_execution_result_block_param.rb
94
112
  - lib/anthropic/models/beta/beta_code_execution_tool_20250522.rb
113
+ - lib/anthropic/models/beta/beta_code_execution_tool_20250825.rb
95
114
  - lib/anthropic/models/beta/beta_code_execution_tool_result_block.rb
96
115
  - lib/anthropic/models/beta/beta_code_execution_tool_result_block_content.rb
97
116
  - lib/anthropic/models/beta/beta_code_execution_tool_result_block_param.rb
@@ -145,6 +164,16 @@ files:
145
164
  - lib/anthropic/models/beta/beta_text_citation.rb
146
165
  - lib/anthropic/models/beta/beta_text_citation_param.rb
147
166
  - lib/anthropic/models/beta/beta_text_delta.rb
167
+ - lib/anthropic/models/beta/beta_text_editor_code_execution_create_result_block.rb
168
+ - lib/anthropic/models/beta/beta_text_editor_code_execution_create_result_block_param.rb
169
+ - lib/anthropic/models/beta/beta_text_editor_code_execution_str_replace_result_block.rb
170
+ - lib/anthropic/models/beta/beta_text_editor_code_execution_str_replace_result_block_param.rb
171
+ - lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block.rb
172
+ - lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block_param.rb
173
+ - lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error.rb
174
+ - lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_param.rb
175
+ - lib/anthropic/models/beta/beta_text_editor_code_execution_view_result_block.rb
176
+ - lib/anthropic/models/beta/beta_text_editor_code_execution_view_result_block_param.rb
148
177
  - lib/anthropic/models/beta/beta_thinking_block.rb
149
178
  - lib/anthropic/models/beta/beta_thinking_block_param.rb
150
179
  - lib/anthropic/models/beta/beta_thinking_config_disabled.rb
@@ -351,9 +380,17 @@ files:
351
380
  - rbi/anthropic/errors.rbi
352
381
  - rbi/anthropic/file_part.rbi
353
382
  - rbi/anthropic/helpers/bedrock/client.rbi
383
+ - rbi/anthropic/helpers/input_schema/array_of.rbi
384
+ - rbi/anthropic/helpers/input_schema/base_model.rbi
385
+ - rbi/anthropic/helpers/input_schema/boolean.rbi
386
+ - rbi/anthropic/helpers/input_schema/enum_of.rbi
387
+ - rbi/anthropic/helpers/input_schema/json_schema_converter.rbi
388
+ - rbi/anthropic/helpers/input_schema/union_of.rbi
354
389
  - rbi/anthropic/helpers/streaming/events.rbi
355
390
  - rbi/anthropic/helpers/streaming/message_stream.rbi
391
+ - rbi/anthropic/helpers/structured_output.rbi
356
392
  - rbi/anthropic/helpers/vertex/client.rbi
393
+ - rbi/anthropic/input_schema.rbi
357
394
  - rbi/anthropic/internal.rbi
358
395
  - rbi/anthropic/internal/jsonl_stream.rbi
359
396
  - rbi/anthropic/internal/page.rbi
@@ -382,6 +419,14 @@ files:
382
419
  - rbi/anthropic/models/beta/beta_base64_image_source.rbi
383
420
  - rbi/anthropic/models/beta/beta_base64_pdf_block.rbi
384
421
  - rbi/anthropic/models/beta/beta_base64_pdf_source.rbi
422
+ - rbi/anthropic/models/beta/beta_bash_code_execution_output_block.rbi
423
+ - rbi/anthropic/models/beta/beta_bash_code_execution_output_block_param.rbi
424
+ - rbi/anthropic/models/beta/beta_bash_code_execution_result_block.rbi
425
+ - rbi/anthropic/models/beta/beta_bash_code_execution_result_block_param.rbi
426
+ - rbi/anthropic/models/beta/beta_bash_code_execution_tool_result_block.rbi
427
+ - rbi/anthropic/models/beta/beta_bash_code_execution_tool_result_block_param.rbi
428
+ - rbi/anthropic/models/beta/beta_bash_code_execution_tool_result_error.rbi
429
+ - rbi/anthropic/models/beta/beta_bash_code_execution_tool_result_error_param.rbi
385
430
  - rbi/anthropic/models/beta/beta_cache_control_ephemeral.rbi
386
431
  - rbi/anthropic/models/beta/beta_cache_creation.rbi
387
432
  - rbi/anthropic/models/beta/beta_citation_char_location.rbi
@@ -401,6 +446,7 @@ files:
401
446
  - rbi/anthropic/models/beta/beta_code_execution_result_block.rbi
402
447
  - rbi/anthropic/models/beta/beta_code_execution_result_block_param.rbi
403
448
  - rbi/anthropic/models/beta/beta_code_execution_tool_20250522.rbi
449
+ - rbi/anthropic/models/beta/beta_code_execution_tool_20250825.rbi
404
450
  - rbi/anthropic/models/beta/beta_code_execution_tool_result_block.rbi
405
451
  - rbi/anthropic/models/beta/beta_code_execution_tool_result_block_content.rbi
406
452
  - rbi/anthropic/models/beta/beta_code_execution_tool_result_block_param.rbi
@@ -454,6 +500,16 @@ files:
454
500
  - rbi/anthropic/models/beta/beta_text_citation.rbi
455
501
  - rbi/anthropic/models/beta/beta_text_citation_param.rbi
456
502
  - rbi/anthropic/models/beta/beta_text_delta.rbi
503
+ - rbi/anthropic/models/beta/beta_text_editor_code_execution_create_result_block.rbi
504
+ - rbi/anthropic/models/beta/beta_text_editor_code_execution_create_result_block_param.rbi
505
+ - rbi/anthropic/models/beta/beta_text_editor_code_execution_str_replace_result_block.rbi
506
+ - rbi/anthropic/models/beta/beta_text_editor_code_execution_str_replace_result_block_param.rbi
507
+ - rbi/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block.rbi
508
+ - rbi/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block_param.rbi
509
+ - rbi/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error.rbi
510
+ - rbi/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_param.rbi
511
+ - rbi/anthropic/models/beta/beta_text_editor_code_execution_view_result_block.rbi
512
+ - rbi/anthropic/models/beta/beta_text_editor_code_execution_view_result_block_param.rbi
457
513
  - rbi/anthropic/models/beta/beta_thinking_block.rbi
458
514
  - rbi/anthropic/models/beta/beta_thinking_block_param.rbi
459
515
  - rbi/anthropic/models/beta/beta_thinking_config_disabled.rbi
@@ -690,6 +746,14 @@ files:
690
746
  - sig/anthropic/models/beta/beta_base64_image_source.rbs
691
747
  - sig/anthropic/models/beta/beta_base64_pdf_block.rbs
692
748
  - sig/anthropic/models/beta/beta_base64_pdf_source.rbs
749
+ - sig/anthropic/models/beta/beta_bash_code_execution_output_block.rbs
750
+ - sig/anthropic/models/beta/beta_bash_code_execution_output_block_param.rbs
751
+ - sig/anthropic/models/beta/beta_bash_code_execution_result_block.rbs
752
+ - sig/anthropic/models/beta/beta_bash_code_execution_result_block_param.rbs
753
+ - sig/anthropic/models/beta/beta_bash_code_execution_tool_result_block.rbs
754
+ - sig/anthropic/models/beta/beta_bash_code_execution_tool_result_block_param.rbs
755
+ - sig/anthropic/models/beta/beta_bash_code_execution_tool_result_error.rbs
756
+ - sig/anthropic/models/beta/beta_bash_code_execution_tool_result_error_param.rbs
693
757
  - sig/anthropic/models/beta/beta_cache_control_ephemeral.rbs
694
758
  - sig/anthropic/models/beta/beta_cache_creation.rbs
695
759
  - sig/anthropic/models/beta/beta_citation_char_location.rbs
@@ -709,6 +773,7 @@ files:
709
773
  - sig/anthropic/models/beta/beta_code_execution_result_block.rbs
710
774
  - sig/anthropic/models/beta/beta_code_execution_result_block_param.rbs
711
775
  - sig/anthropic/models/beta/beta_code_execution_tool_20250522.rbs
776
+ - sig/anthropic/models/beta/beta_code_execution_tool_20250825.rbs
712
777
  - sig/anthropic/models/beta/beta_code_execution_tool_result_block.rbs
713
778
  - sig/anthropic/models/beta/beta_code_execution_tool_result_block_content.rbs
714
779
  - sig/anthropic/models/beta/beta_code_execution_tool_result_block_param.rbs
@@ -762,6 +827,16 @@ files:
762
827
  - sig/anthropic/models/beta/beta_text_citation.rbs
763
828
  - sig/anthropic/models/beta/beta_text_citation_param.rbs
764
829
  - sig/anthropic/models/beta/beta_text_delta.rbs
830
+ - sig/anthropic/models/beta/beta_text_editor_code_execution_create_result_block.rbs
831
+ - sig/anthropic/models/beta/beta_text_editor_code_execution_create_result_block_param.rbs
832
+ - sig/anthropic/models/beta/beta_text_editor_code_execution_str_replace_result_block.rbs
833
+ - sig/anthropic/models/beta/beta_text_editor_code_execution_str_replace_result_block_param.rbs
834
+ - sig/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block.rbs
835
+ - sig/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block_param.rbs
836
+ - sig/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error.rbs
837
+ - sig/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_param.rbs
838
+ - sig/anthropic/models/beta/beta_text_editor_code_execution_view_result_block.rbs
839
+ - sig/anthropic/models/beta/beta_text_editor_code_execution_view_result_block_param.rbs
765
840
  - sig/anthropic/models/beta/beta_thinking_block.rbs
766
841
  - sig/anthropic/models/beta/beta_thinking_block_param.rbs
767
842
  - sig/anthropic/models/beta/beta_thinking_config_disabled.rbs