anthropic 1.43.0 → 1.45.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 (109) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +45 -0
  3. data/README.md +1 -1
  4. data/SECURITY.md +7 -19
  5. data/lib/anthropic/file_part.rb +4 -1
  6. data/lib/anthropic/helpers/streaming/message_stream.rb +18 -0
  7. data/lib/anthropic/internal/util.rb +6 -2
  8. data/lib/anthropic/models/beta/agent_create_params.rb +3 -1
  9. data/lib/anthropic/models/beta/agent_update_params.rb +3 -1
  10. data/lib/anthropic/models/beta/beta_advisor_message_iteration_usage.rb +4 -3
  11. data/lib/anthropic/models/beta/beta_advisor_redacted_result_block.rb +10 -1
  12. data/lib/anthropic/models/beta/beta_advisor_redacted_result_block_param.rb +8 -1
  13. data/lib/anthropic/models/beta/beta_advisor_result_block.rb +15 -1
  14. data/lib/anthropic/models/beta/beta_advisor_result_block_param.rb +7 -1
  15. data/lib/anthropic/models/beta/beta_advisor_tool_20260301.rb +4 -3
  16. data/lib/anthropic/models/beta/beta_content_block_param.rb +7 -1
  17. data/lib/anthropic/models/beta/beta_managed_agents_model.rb +8 -2
  18. data/lib/anthropic/models/beta/beta_managed_agents_model_config.rb +4 -3
  19. data/lib/anthropic/models/beta/beta_managed_agents_model_config_params.rb +4 -3
  20. data/lib/anthropic/models/beta/beta_message.rb +4 -3
  21. data/lib/anthropic/models/beta/beta_message_delta_usage.rb +14 -1
  22. data/lib/anthropic/models/beta/beta_message_param.rb +4 -3
  23. data/lib/anthropic/models/beta/beta_mid_conversation_system_block_param.rb +41 -0
  24. data/lib/anthropic/models/beta/beta_output_tokens_details.rb +30 -0
  25. data/lib/anthropic/models/beta/beta_usage.rb +14 -1
  26. data/lib/anthropic/models/beta/beta_web_fetch_tool_result_error_code.rb +1 -0
  27. data/lib/anthropic/models/beta/message_count_tokens_params.rb +4 -3
  28. data/lib/anthropic/models/beta/message_create_params.rb +4 -3
  29. data/lib/anthropic/models/beta/messages/batch_create_params.rb +4 -3
  30. data/lib/anthropic/models/completion.rb +4 -3
  31. data/lib/anthropic/models/completion_create_params.rb +4 -3
  32. data/lib/anthropic/models/content_block_param.rb +7 -1
  33. data/lib/anthropic/models/message.rb +4 -3
  34. data/lib/anthropic/models/message_count_tokens_params.rb +4 -3
  35. data/lib/anthropic/models/message_create_params.rb +4 -3
  36. data/lib/anthropic/models/message_delta_usage.rb +17 -1
  37. data/lib/anthropic/models/message_param.rb +4 -3
  38. data/lib/anthropic/models/messages/batch_create_params.rb +4 -3
  39. data/lib/anthropic/models/mid_conversation_system_block_param.rb +37 -0
  40. data/lib/anthropic/models/model.rb +14 -2
  41. data/lib/anthropic/models/output_tokens_details.rb +26 -0
  42. data/lib/anthropic/models/usage.rb +17 -1
  43. data/lib/anthropic/models/web_fetch_tool_result_error_code.rb +1 -0
  44. data/lib/anthropic/models.rb +4 -0
  45. data/lib/anthropic/resources/beta/messages.rb +3 -3
  46. data/lib/anthropic/resources/completions.rb +2 -2
  47. data/lib/anthropic/resources/messages.rb +3 -3
  48. data/lib/anthropic/version.rb +1 -1
  49. data/lib/anthropic.rb +4 -0
  50. data/rbi/anthropic/models/beta/beta_advisor_message_iteration_usage.rbi +6 -4
  51. data/rbi/anthropic/models/beta/beta_advisor_redacted_result_block.rbi +22 -4
  52. data/rbi/anthropic/models/beta/beta_advisor_redacted_result_block_param.rbi +18 -4
  53. data/rbi/anthropic/models/beta/beta_advisor_result_block.rbi +26 -3
  54. data/rbi/anthropic/models/beta/beta_advisor_result_block_param.rbi +16 -3
  55. data/rbi/anthropic/models/beta/beta_advisor_tool_20260301.rbi +6 -4
  56. data/rbi/anthropic/models/beta/beta_content_block_param.rbi +2 -1
  57. data/rbi/anthropic/models/beta/beta_managed_agents_model.rbi +10 -2
  58. data/rbi/anthropic/models/beta/beta_managed_agents_model_config.rbi +6 -4
  59. data/rbi/anthropic/models/beta/beta_managed_agents_model_config_params.rbi +6 -4
  60. data/rbi/anthropic/models/beta/beta_message.rbi +6 -4
  61. data/rbi/anthropic/models/beta/beta_message_delta_usage.rbi +28 -0
  62. data/rbi/anthropic/models/beta/beta_message_param.rbi +5 -0
  63. data/rbi/anthropic/models/beta/beta_mid_conversation_system_block_param.rbi +74 -0
  64. data/rbi/anthropic/models/beta/beta_output_tokens_details.rbi +48 -0
  65. data/rbi/anthropic/models/beta/beta_usage.rbi +28 -0
  66. data/rbi/anthropic/models/beta/beta_web_fetch_tool_result_error_code.rbi +5 -0
  67. data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +6 -4
  68. data/rbi/anthropic/models/beta/message_create_params.rbi +6 -4
  69. data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +6 -4
  70. data/rbi/anthropic/models/completion.rbi +6 -4
  71. data/rbi/anthropic/models/completion_create_params.rbi +6 -4
  72. data/rbi/anthropic/models/content_block_param.rbi +2 -1
  73. data/rbi/anthropic/models/message.rbi +6 -4
  74. data/rbi/anthropic/models/message_count_tokens_params.rbi +6 -4
  75. data/rbi/anthropic/models/message_create_params.rbi +6 -4
  76. data/rbi/anthropic/models/message_delta_usage.rbi +27 -0
  77. data/rbi/anthropic/models/message_param.rbi +1 -0
  78. data/rbi/anthropic/models/messages/batch_create_params.rbi +6 -4
  79. data/rbi/anthropic/models/mid_conversation_system_block_param.rbi +66 -0
  80. data/rbi/anthropic/models/model.rbi +7 -2
  81. data/rbi/anthropic/models/output_tokens_details.rbi +41 -0
  82. data/rbi/anthropic/models/usage.rbi +27 -0
  83. data/rbi/anthropic/models/web_fetch_tool_result_error_code.rbi +5 -0
  84. data/rbi/anthropic/models.rbi +5 -0
  85. data/rbi/anthropic/resources/beta/messages.rbi +9 -6
  86. data/rbi/anthropic/resources/completions.rbi +6 -4
  87. data/rbi/anthropic/resources/messages.rbi +9 -6
  88. data/sig/anthropic/models/beta/beta_advisor_redacted_result_block.rbs +9 -1
  89. data/sig/anthropic/models/beta/beta_advisor_redacted_result_block_param.rbs +10 -2
  90. data/sig/anthropic/models/beta/beta_advisor_result_block.rbs +14 -3
  91. data/sig/anthropic/models/beta/beta_advisor_result_block_param.rbs +13 -3
  92. data/sig/anthropic/models/beta/beta_content_block_param.rbs +1 -0
  93. data/sig/anthropic/models/beta/beta_managed_agents_model.rbs +5 -1
  94. data/sig/anthropic/models/beta/beta_message_delta_usage.rbs +5 -0
  95. data/sig/anthropic/models/beta/beta_message_param.rbs +2 -1
  96. data/sig/anthropic/models/beta/beta_mid_conversation_system_block_param.rbs +34 -0
  97. data/sig/anthropic/models/beta/beta_output_tokens_details.rbs +17 -0
  98. data/sig/anthropic/models/beta/beta_usage.rbs +5 -0
  99. data/sig/anthropic/models/beta/beta_web_fetch_tool_result_error_code.rbs +2 -0
  100. data/sig/anthropic/models/content_block_param.rbs +1 -0
  101. data/sig/anthropic/models/message_delta_usage.rbs +5 -0
  102. data/sig/anthropic/models/message_param.rbs +2 -1
  103. data/sig/anthropic/models/mid_conversation_system_block_param.rbs +30 -0
  104. data/sig/anthropic/models/model.rbs +5 -1
  105. data/sig/anthropic/models/output_tokens_details.rbs +13 -0
  106. data/sig/anthropic/models/usage.rbs +5 -0
  107. data/sig/anthropic/models/web_fetch_tool_result_error_code.rbs +2 -0
  108. data/sig/anthropic/models.rbs +4 -0
  109. metadata +14 -2
@@ -55,6 +55,17 @@ module Anthropic
55
55
  # @return [Integer]
56
56
  required :output_tokens, Integer
57
57
 
58
+ # @!attribute output_tokens_details
59
+ # Breakdown of output tokens by category.
60
+ #
61
+ # `output_tokens` remains the inclusive, authoritative total used for billing.
62
+ # This object provides a read-only decomposition for observability — for example,
63
+ # how many of the billed output tokens were spent on internal reasoning that may
64
+ # have been summarized before being returned to you.
65
+ #
66
+ # @return [Anthropic::Models::Beta::BetaOutputTokensDetails, nil]
67
+ required :output_tokens_details, -> { Anthropic::Beta::BetaOutputTokensDetails }, nil?: true
68
+
58
69
  # @!attribute server_tool_use
59
70
  # The number of server tool requests.
60
71
  #
@@ -73,7 +84,7 @@ module Anthropic
73
84
  # @return [Symbol, Anthropic::Models::Beta::BetaUsage::Speed, nil]
74
85
  required :speed, enum: -> { Anthropic::Beta::BetaUsage::Speed }, nil?: true
75
86
 
76
- # @!method initialize(cache_creation:, cache_creation_input_tokens:, cache_read_input_tokens:, inference_geo:, input_tokens:, iterations:, output_tokens:, server_tool_use:, service_tier:, speed:)
87
+ # @!method initialize(cache_creation:, cache_creation_input_tokens:, cache_read_input_tokens:, inference_geo:, input_tokens:, iterations:, output_tokens:, output_tokens_details:, server_tool_use:, service_tier:, speed:)
77
88
  # Some parameter documentations has been truncated, see
78
89
  # {Anthropic::Models::Beta::BetaUsage} for more details.
79
90
  #
@@ -91,6 +102,8 @@ module Anthropic
91
102
  #
92
103
  # @param output_tokens [Integer] The number of output tokens which were used.
93
104
  #
105
+ # @param output_tokens_details [Anthropic::Models::Beta::BetaOutputTokensDetails, nil] Breakdown of output tokens by category.
106
+ #
94
107
  # @param server_tool_use [Anthropic::Models::Beta::BetaServerToolUsage, nil] The number of server tool requests.
95
108
  #
96
109
  # @param service_tier [Symbol, Anthropic::Models::Beta::BetaUsage::ServiceTier, nil] If the request used the priority, standard, or batch tier.
@@ -9,6 +9,7 @@ module Anthropic
9
9
  INVALID_TOOL_INPUT = :invalid_tool_input
10
10
  URL_TOO_LONG = :url_too_long
11
11
  URL_NOT_ALLOWED = :url_not_allowed
12
+ URL_NOT_IN_PRIOR_CONTEXT = :url_not_in_prior_context
12
13
  URL_NOT_ACCESSIBLE = :url_not_accessible
13
14
  UNSUPPORTED_CONTENT_TYPE = :unsupported_content_type
14
15
  TOO_MANY_REQUESTS = :too_many_requests
@@ -79,8 +79,9 @@ module Anthropic
79
79
  required :messages, -> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::BetaMessageParam] }
80
80
 
81
81
  # @!attribute model
82
- # The model that will complete your prompt.\n\nSee
83
- # [models](https://docs.anthropic.com/en/docs/models-overview) for additional
82
+ # The model that will complete your prompt.
83
+ #
84
+ # See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
84
85
  # details and options.
85
86
  #
86
87
  # @return [Symbol, String, Anthropic::Models::Model]
@@ -258,7 +259,7 @@ module Anthropic
258
259
  #
259
260
  # @param messages [Array<Anthropic::Models::Beta::BetaMessageParam>] Input messages.
260
261
  #
261
- # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.\n\nSee [models](https://docs.anthropic
262
+ # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.
262
263
  #
263
264
  # @param cache_control [Anthropic::Models::Beta::BetaCacheControlEphemeral, nil] Top-level cache control automatically applies a cache_control marker to the last
264
265
  #
@@ -97,8 +97,9 @@ module Anthropic
97
97
  required :messages, -> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::BetaMessageParam] }
98
98
 
99
99
  # @!attribute model
100
- # The model that will complete your prompt.\n\nSee
101
- # [models](https://docs.anthropic.com/en/docs/models-overview) for additional
100
+ # The model that will complete your prompt.
101
+ #
102
+ # See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
102
103
  # details and options.
103
104
  #
104
105
  # @return [Symbol, String, Anthropic::Models::Model]
@@ -381,7 +382,7 @@ module Anthropic
381
382
  #
382
383
  # @param messages [Array<Anthropic::Models::Beta::BetaMessageParam>] Input messages.
383
384
  #
384
- # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.\n\nSee [models](https://docs.anthropic
385
+ # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.
385
386
  #
386
387
  # @param cache_control [Anthropic::Models::Beta::BetaCacheControlEphemeral, nil] Top-level cache control automatically applies a cache_control marker to the last
387
388
  #
@@ -150,8 +150,9 @@ module Anthropic
150
150
  required :messages, -> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::BetaMessageParam] }
151
151
 
152
152
  # @!attribute model
153
- # The model that will complete your prompt.\n\nSee
154
- # [models](https://docs.anthropic.com/en/docs/models-overview) for additional
153
+ # The model that will complete your prompt.
154
+ #
155
+ # See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
155
156
  # details and options.
156
157
  #
157
158
  # @return [Symbol, String, Anthropic::Models::Model]
@@ -449,7 +450,7 @@ module Anthropic
449
450
  #
450
451
  # @param messages [Array<Anthropic::Models::Beta::BetaMessageParam>] Input messages.
451
452
  #
452
- # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.\n\nSee [models](https://docs.anthropic
453
+ # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.
453
454
  #
454
455
  # @param cache_control [Anthropic::Models::Beta::BetaCacheControlEphemeral, nil] Top-level cache control automatically applies a cache_control marker to the last
455
456
  #
@@ -21,8 +21,9 @@ module Anthropic
21
21
  required :completion, String
22
22
 
23
23
  # @!attribute model
24
- # The model that will complete your prompt.\n\nSee
25
- # [models](https://docs.anthropic.com/en/docs/models-overview) for additional
24
+ # The model that will complete your prompt.
25
+ #
26
+ # See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
26
27
  # details and options.
27
28
  #
28
29
  # @return [Symbol, String, Anthropic::Models::Model]
@@ -56,7 +57,7 @@ module Anthropic
56
57
  #
57
58
  # @param completion [String] The resulting completion up to and excluding the stop sequences.
58
59
  #
59
- # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.\n\nSee [models](https://docs.anthropic
60
+ # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.
60
61
  #
61
62
  # @param stop_reason [String, nil] The reason that we stopped.
62
63
  #
@@ -19,8 +19,9 @@ module Anthropic
19
19
  required :max_tokens_to_sample, Integer
20
20
 
21
21
  # @!attribute model
22
- # The model that will complete your prompt.\n\nSee
23
- # [models](https://docs.anthropic.com/en/docs/models-overview) for additional
22
+ # The model that will complete your prompt.
23
+ #
24
+ # See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
24
25
  # details and options.
25
26
  #
26
27
  # @return [Symbol, String, Anthropic::Models::Model]
@@ -118,7 +119,7 @@ module Anthropic
118
119
  #
119
120
  # @param max_tokens_to_sample [Integer] The maximum number of tokens to generate before stopping.
120
121
  #
121
- # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.\n\nSee [models](https://docs.anthropic
122
+ # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.
122
123
  #
123
124
  # @param prompt [String] The prompt that you want Claude to complete.
124
125
  #
@@ -51,8 +51,14 @@ module Anthropic
51
51
  # Files uploaded via this block will be available in the container's input directory.
52
52
  variant :container_upload, -> { Anthropic::ContainerUploadBlockParam }
53
53
 
54
+ # System instructions that appear mid-conversation.
55
+ #
56
+ # Use this block to provide or update system-level instructions at a specific
57
+ # point in the conversation, rather than only via the top-level `system` parameter.
58
+ variant :mid_conv_system, -> { Anthropic::MidConversationSystemBlockParam }
59
+
54
60
  # @!method self.variants
55
- # @return [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, Anthropic::Models::WebFetchToolResultBlockParam, Anthropic::Models::CodeExecutionToolResultBlockParam, Anthropic::Models::BashCodeExecutionToolResultBlockParam, Anthropic::Models::TextEditorCodeExecutionToolResultBlockParam, Anthropic::Models::ToolSearchToolResultBlockParam, Anthropic::Models::ContainerUploadBlockParam)]
61
+ # @return [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, Anthropic::Models::WebFetchToolResultBlockParam, Anthropic::Models::CodeExecutionToolResultBlockParam, Anthropic::Models::BashCodeExecutionToolResultBlockParam, Anthropic::Models::TextEditorCodeExecutionToolResultBlockParam, Anthropic::Models::ToolSearchToolResultBlockParam, Anthropic::Models::ContainerUploadBlockParam, Anthropic::Models::MidConversationSystemBlockParam)]
56
62
  end
57
63
  end
58
64
  end
@@ -71,8 +71,9 @@ module Anthropic
71
71
  end
72
72
 
73
73
  # @!attribute model
74
- # The model that will complete your prompt.\n\nSee
75
- # [models](https://docs.anthropic.com/en/docs/models-overview) for additional
74
+ # The model that will complete your prompt.
75
+ #
76
+ # See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
76
77
  # details and options.
77
78
  #
78
79
  # @return [Symbol, String, Anthropic::Models::Model]
@@ -159,7 +160,7 @@ module Anthropic
159
160
  #
160
161
  # @param content [Array<Anthropic::Models::TextBlock, Anthropic::Models::ThinkingBlock, Anthropic::Models::RedactedThinkingBlock, Anthropic::Models::ToolUseBlock, Anthropic::Models::ServerToolUseBlock, Anthropic::Models::WebSearchToolResultBlock, Anthropic::Models::WebFetchToolResultBlock, Anthropic::Models::CodeExecutionToolResultBlock, Anthropic::Models::BashCodeExecutionToolResultBlock, Anthropic::Models::TextEditorCodeExecutionToolResultBlock, Anthropic::Models::ToolSearchToolResultBlock, Anthropic::Models::ContainerUploadBlock>] Content generated by the model.
161
162
  #
162
- # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.\n\nSee [models](https://docs.anthropic
163
+ # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.
163
164
  #
164
165
  # @param stop_details [Anthropic::Models::RefusalStopDetails, nil] Structured information about a refusal.
165
166
  #
@@ -78,8 +78,9 @@ module Anthropic
78
78
  required :messages, -> { Anthropic::Internal::Type::ArrayOf[Anthropic::MessageParam] }
79
79
 
80
80
  # @!attribute model
81
- # The model that will complete your prompt.\n\nSee
82
- # [models](https://docs.anthropic.com/en/docs/models-overview) for additional
81
+ # The model that will complete your prompt.
82
+ #
83
+ # See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
83
84
  # details and options.
84
85
  #
85
86
  # @return [Symbol, String, Anthropic::Models::Model]
@@ -215,7 +216,7 @@ module Anthropic
215
216
  #
216
217
  # @param messages [Array<Anthropic::Models::MessageParam>] Input messages.
217
218
  #
218
- # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.\n\nSee [models](https://docs.anthropic
219
+ # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.
219
220
  #
220
221
  # @param cache_control [Anthropic::Models::CacheControlEphemeral, nil] Top-level cache control automatically applies a cache_control marker to the last
221
222
  #
@@ -96,8 +96,9 @@ module Anthropic
96
96
  required :messages, -> { Anthropic::Internal::Type::ArrayOf[Anthropic::MessageParam] }
97
97
 
98
98
  # @!attribute model
99
- # The model that will complete your prompt.\n\nSee
100
- # [models](https://docs.anthropic.com/en/docs/models-overview) for additional
99
+ # The model that will complete your prompt.
100
+ #
101
+ # See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
101
102
  # details and options.
102
103
  #
103
104
  # @return [Symbol, String, Anthropic::Models::Model]
@@ -325,7 +326,7 @@ module Anthropic
325
326
  #
326
327
  # @param messages [Array<Anthropic::Models::MessageParam>] Input messages.
327
328
  #
328
- # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.\n\nSee [models](https://docs.anthropic
329
+ # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.
329
330
  #
330
331
  # @param cache_control [Anthropic::Models::CacheControlEphemeral, nil] Top-level cache control automatically applies a cache_control marker to the last
331
332
  #
@@ -27,13 +27,27 @@ module Anthropic
27
27
  # @return [Integer]
28
28
  required :output_tokens, Integer
29
29
 
30
+ # @!attribute output_tokens_details
31
+ # Breakdown of output tokens by category.
32
+ #
33
+ # `output_tokens` remains the inclusive, authoritative total used for billing.
34
+ # This object provides a read-only decomposition for observability — for example,
35
+ # how many of the billed output tokens were spent on internal reasoning that may
36
+ # have been summarized before being returned to you.
37
+ #
38
+ # @return [Anthropic::Models::OutputTokensDetails, nil]
39
+ required :output_tokens_details, -> { Anthropic::OutputTokensDetails }, nil?: true
40
+
30
41
  # @!attribute server_tool_use
31
42
  # The number of server tool requests.
32
43
  #
33
44
  # @return [Anthropic::Models::ServerToolUsage, nil]
34
45
  required :server_tool_use, -> { Anthropic::ServerToolUsage }, nil?: true
35
46
 
36
- # @!method initialize(cache_creation_input_tokens:, cache_read_input_tokens:, input_tokens:, output_tokens:, server_tool_use:)
47
+ # @!method initialize(cache_creation_input_tokens:, cache_read_input_tokens:, input_tokens:, output_tokens:, output_tokens_details:, server_tool_use:)
48
+ # Some parameter documentations has been truncated, see
49
+ # {Anthropic::Models::MessageDeltaUsage} for more details.
50
+ #
37
51
  # @param cache_creation_input_tokens [Integer, nil] The cumulative number of input tokens used to create the cache entry.
38
52
  #
39
53
  # @param cache_read_input_tokens [Integer, nil] The cumulative number of input tokens read from the cache.
@@ -42,6 +56,8 @@ module Anthropic
42
56
  #
43
57
  # @param output_tokens [Integer] The cumulative number of output tokens which were used.
44
58
  #
59
+ # @param output_tokens_details [Anthropic::Models::OutputTokensDetails, nil] Breakdown of output tokens by category.
60
+ #
45
61
  # @param server_tool_use [Anthropic::Models::ServerToolUsage, nil] The number of server tool requests.
46
62
  end
47
63
  end
@@ -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::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, Anthropic::Models::WebFetchToolResultBlockParam, Anthropic::Models::CodeExecutionToolResultBlockParam, Anthropic::Models::BashCodeExecutionToolResultBlockParam, Anthropic::Models::TextEditorCodeExecutionToolResultBlockParam, Anthropic::Models::ToolSearchToolResultBlockParam, Anthropic::Models::ContainerUploadBlockParam>]
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, Anthropic::Models::WebFetchToolResultBlockParam, Anthropic::Models::CodeExecutionToolResultBlockParam, Anthropic::Models::BashCodeExecutionToolResultBlockParam, Anthropic::Models::TextEditorCodeExecutionToolResultBlockParam, Anthropic::Models::ToolSearchToolResultBlockParam, Anthropic::Models::ContainerUploadBlockParam, Anthropic::Models::MidConversationSystemBlockParam>]
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::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, Anthropic::Models::WebFetchToolResultBlockParam, Anthropic::Models::CodeExecutionToolResultBlockParam, Anthropic::Models::BashCodeExecutionToolResultBlockParam, Anthropic::Models::TextEditorCodeExecutionToolResultBlockParam, Anthropic::Models::ToolSearchToolResultBlockParam, Anthropic::Models::ContainerUploadBlockParam>]
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, Anthropic::Models::WebFetchToolResultBlockParam, Anthropic::Models::CodeExecutionToolResultBlockParam, Anthropic::Models::BashCodeExecutionToolResultBlockParam, Anthropic::Models::TextEditorCodeExecutionToolResultBlockParam, Anthropic::Models::ToolSearchToolResultBlockParam, Anthropic::Models::ContainerUploadBlockParam, Anthropic::Models::MidConversationSystemBlockParam>]
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::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, Anthropic::Models::WebFetchToolResultBlockParam, Anthropic::Models::CodeExecutionToolResultBlockParam, Anthropic::Models::BashCodeExecutionToolResultBlockParam, Anthropic::Models::TextEditorCodeExecutionToolResultBlockParam, Anthropic::Models::ToolSearchToolResultBlockParam, Anthropic::Models::ContainerUploadBlockParam>)]
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, Anthropic::Models::WebFetchToolResultBlockParam, Anthropic::Models::CodeExecutionToolResultBlockParam, Anthropic::Models::BashCodeExecutionToolResultBlockParam, Anthropic::Models::TextEditorCodeExecutionToolResultBlockParam, Anthropic::Models::ToolSearchToolResultBlockParam, Anthropic::Models::ContainerUploadBlockParam, Anthropic::Models::MidConversationSystemBlockParam>)]
30
30
 
31
31
  # @type [Anthropic::Internal::Type::Converter]
32
32
  ContentBlockParamArray = Anthropic::Internal::Type::ArrayOf[union: -> {
@@ -40,6 +40,7 @@ module Anthropic
40
40
 
41
41
  USER = :user
42
42
  ASSISTANT = :assistant
43
+ SYSTEM = :system
43
44
 
44
45
  # @!method self.values
45
46
  # @return [Array<Symbol>]
@@ -140,8 +140,9 @@ module Anthropic
140
140
  required :messages, -> { Anthropic::Internal::Type::ArrayOf[Anthropic::MessageParam] }
141
141
 
142
142
  # @!attribute model
143
- # The model that will complete your prompt.\n\nSee
144
- # [models](https://docs.anthropic.com/en/docs/models-overview) for additional
143
+ # The model that will complete your prompt.
144
+ #
145
+ # See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
145
146
  # details and options.
146
147
  #
147
148
  # @return [Symbol, String, Anthropic::Models::Model]
@@ -385,7 +386,7 @@ module Anthropic
385
386
  #
386
387
  # @param messages [Array<Anthropic::Models::MessageParam>] Input messages.
387
388
  #
388
- # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.\n\nSee [models](https://docs.anthropic
389
+ # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.
389
390
  #
390
391
  # @param cache_control [Anthropic::Models::CacheControlEphemeral, nil] Top-level cache control automatically applies a cache_control marker to the last
391
392
  #
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ class MidConversationSystemBlockParam < Anthropic::Internal::Type::BaseModel
6
+ # @!attribute content
7
+ # System instruction text blocks.
8
+ #
9
+ # @return [Array<Anthropic::Models::TextBlockParam>]
10
+ required :content, -> { Anthropic::Internal::Type::ArrayOf[Anthropic::TextBlockParam] }
11
+
12
+ # @!attribute type
13
+ #
14
+ # @return [Symbol, :mid_conv_system]
15
+ required :type, const: :mid_conv_system
16
+
17
+ # @!attribute cache_control
18
+ # Create a cache control breakpoint at this content block.
19
+ #
20
+ # @return [Anthropic::Models::CacheControlEphemeral, nil]
21
+ optional :cache_control, -> { Anthropic::CacheControlEphemeral }, nil?: true
22
+
23
+ # @!method initialize(content:, cache_control: nil, type: :mid_conv_system)
24
+ # System instructions that appear mid-conversation.
25
+ #
26
+ # Use this block to provide or update system-level instructions at a specific
27
+ # point in the conversation, rather than only via the top-level `system`
28
+ # parameter.
29
+ #
30
+ # @param content [Array<Anthropic::Models::TextBlockParam>] System instruction text blocks.
31
+ #
32
+ # @param cache_control [Anthropic::Models::CacheControlEphemeral, nil] Create a cache control breakpoint at this content block.
33
+ #
34
+ # @param type [Symbol, :mid_conv_system]
35
+ end
36
+ end
37
+ end
@@ -2,12 +2,15 @@
2
2
 
3
3
  module Anthropic
4
4
  module Models
5
- # The model that will complete your prompt.\n\nSee
6
- # [models](https://docs.anthropic.com/en/docs/models-overview) for additional
5
+ # The model that will complete your prompt.
6
+ #
7
+ # See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
7
8
  # details and options.
8
9
  module Model
9
10
  extend Anthropic::Internal::Type::Union
10
11
 
12
+ variant const: -> { Anthropic::Models::Model::CLAUDE_OPUS_4_8 }
13
+
11
14
  variant const: -> { Anthropic::Models::Model::CLAUDE_OPUS_4_7 }
12
15
 
13
16
  variant const: -> { Anthropic::Models::Model::CLAUDE_MYTHOS_PREVIEW }
@@ -53,6 +56,9 @@ module Anthropic
53
56
 
54
57
  # @!group
55
58
 
59
+ # Frontier intelligence for long-running agents and coding
60
+ CLAUDE_OPUS_4_8 = :"claude-opus-4-8"
61
+
56
62
  # Frontier intelligence for long-running agents and coding
57
63
  CLAUDE_OPUS_4_7 = :"claude-opus-4-7"
58
64
 
@@ -84,9 +90,15 @@ module Anthropic
84
90
  CLAUDE_SONNET_4_5_20250929 = :"claude-sonnet-4-5-20250929"
85
91
 
86
92
  # Exceptional model for specialized complex tasks
93
+ # @deprecated Will reach end-of-life on August 5, 2026. Please migrate to a newer model. Visit
94
+ # https://docs.anthropic.com/en/docs/resources/model-deprecations for more
95
+ # information.
87
96
  CLAUDE_OPUS_4_1 = :"claude-opus-4-1"
88
97
 
89
98
  # Exceptional model for specialized complex tasks
99
+ # @deprecated Will reach end-of-life on August 5, 2026. Please migrate to a newer model. Visit
100
+ # https://docs.anthropic.com/en/docs/resources/model-deprecations for more
101
+ # information.
90
102
  CLAUDE_OPUS_4_1_20250805 = :"claude-opus-4-1-20250805"
91
103
 
92
104
  # Powerful model for complex tasks
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ class OutputTokensDetails < Anthropic::Internal::Type::BaseModel
6
+ # @!attribute thinking_tokens
7
+ # Number of output tokens the model generated as internal reasoning, including the
8
+ # thinking-block delimiter tokens.
9
+ #
10
+ # Reflects the raw reasoning the model produced, not the (possibly shorter)
11
+ # summarized thinking text returned in the response body. Computed by
12
+ # re-tokenizing the raw reasoning text, so it may differ from the model's exact
13
+ # generation count by a small number of tokens. Always ≤ `output_tokens`;
14
+ # `output_tokens - thinking_tokens` approximates the non-reasoning output.
15
+ #
16
+ # @return [Integer]
17
+ required :thinking_tokens, Integer
18
+
19
+ # @!method initialize(thinking_tokens:)
20
+ # Some parameter documentations has been truncated, see
21
+ # {Anthropic::Models::OutputTokensDetails} for more details.
22
+ #
23
+ # @param thinking_tokens [Integer] Number of output tokens the model generated as internal reasoning, including
24
+ end
25
+ end
26
+ end
@@ -39,6 +39,17 @@ module Anthropic
39
39
  # @return [Integer]
40
40
  required :output_tokens, Integer
41
41
 
42
+ # @!attribute output_tokens_details
43
+ # Breakdown of output tokens by category.
44
+ #
45
+ # `output_tokens` remains the inclusive, authoritative total used for billing.
46
+ # This object provides a read-only decomposition for observability — for example,
47
+ # how many of the billed output tokens were spent on internal reasoning that may
48
+ # have been summarized before being returned to you.
49
+ #
50
+ # @return [Anthropic::Models::OutputTokensDetails, nil]
51
+ required :output_tokens_details, -> { Anthropic::OutputTokensDetails }, nil?: true
52
+
42
53
  # @!attribute server_tool_use
43
54
  # The number of server tool requests.
44
55
  #
@@ -51,7 +62,10 @@ module Anthropic
51
62
  # @return [Symbol, Anthropic::Models::Usage::ServiceTier, nil]
52
63
  required :service_tier, enum: -> { Anthropic::Usage::ServiceTier }, nil?: true
53
64
 
54
- # @!method initialize(cache_creation:, cache_creation_input_tokens:, cache_read_input_tokens:, inference_geo:, input_tokens:, output_tokens:, server_tool_use:, service_tier:)
65
+ # @!method initialize(cache_creation:, cache_creation_input_tokens:, cache_read_input_tokens:, inference_geo:, input_tokens:, output_tokens:, output_tokens_details:, server_tool_use:, service_tier:)
66
+ # Some parameter documentations has been truncated, see {Anthropic::Models::Usage}
67
+ # for more details.
68
+ #
55
69
  # @param cache_creation [Anthropic::Models::CacheCreation, nil] Breakdown of cached tokens by TTL
56
70
  #
57
71
  # @param cache_creation_input_tokens [Integer, nil] The number of input tokens used to create the cache entry.
@@ -64,6 +78,8 @@ module Anthropic
64
78
  #
65
79
  # @param output_tokens [Integer] The number of output tokens which were used.
66
80
  #
81
+ # @param output_tokens_details [Anthropic::Models::OutputTokensDetails, nil] Breakdown of output tokens by category.
82
+ #
67
83
  # @param server_tool_use [Anthropic::Models::ServerToolUsage, nil] The number of server tool requests.
68
84
  #
69
85
  # @param service_tier [Symbol, Anthropic::Models::Usage::ServiceTier, nil] If the request used the priority, standard, or batch tier.
@@ -8,6 +8,7 @@ module Anthropic
8
8
  INVALID_TOOL_INPUT = :invalid_tool_input
9
9
  URL_TOO_LONG = :url_too_long
10
10
  URL_NOT_ALLOWED = :url_not_allowed
11
+ URL_NOT_IN_PRIOR_CONTEXT = :url_not_in_prior_context
11
12
  URL_NOT_ACCESSIBLE = :url_not_accessible
12
13
  UNSUPPORTED_CONTENT_TYPE = :unsupported_content_type
13
14
  TOO_MANY_REQUESTS = :too_many_requests
@@ -221,6 +221,8 @@ module Anthropic
221
221
 
222
222
  Metadata = Anthropic::Models::Metadata
223
223
 
224
+ MidConversationSystemBlockParam = Anthropic::Models::MidConversationSystemBlockParam
225
+
224
226
  Model = Anthropic::Models::Model
225
227
 
226
228
  ModelCapabilities = Anthropic::Models::ModelCapabilities
@@ -235,6 +237,8 @@ module Anthropic
235
237
 
236
238
  OutputConfig = Anthropic::Models::OutputConfig
237
239
 
240
+ OutputTokensDetails = Anthropic::Models::OutputTokensDetails
241
+
238
242
  OverloadedError = Anthropic::Models::OverloadedError
239
243
 
240
244
  PermissionError = Anthropic::Models::PermissionError
@@ -46,7 +46,7 @@ module Anthropic
46
46
  #
47
47
  # @param messages [Array<Anthropic::Models::Beta::BetaMessageParam>] Body param: Input messages.
48
48
  #
49
- # @param model [Symbol, String, Anthropic::Models::Model] Body param: The model that will complete your prompt.\n\nSee [models](https://do
49
+ # @param model [Symbol, String, Anthropic::Models::Model] Body param: The model that will complete your prompt.
50
50
  #
51
51
  # @param cache_control [Anthropic::Models::Beta::BetaCacheControlEphemeral, nil] Body param: Top-level cache control automatically applies a cache_control marker
52
52
  #
@@ -156,7 +156,7 @@ module Anthropic
156
156
  #
157
157
  # @param messages [Array<Anthropic::Models::Beta::BetaMessageParam>] Body param: Input messages.
158
158
  #
159
- # @param model [Symbol, String, Anthropic::Models::Model] Body param: The model that will complete your prompt.\n\nSee [models](https://do
159
+ # @param model [Symbol, String, Anthropic::Models::Model] Body param: The model that will complete your prompt.
160
160
  #
161
161
  # @param cache_control [Anthropic::Models::Beta::BetaCacheControlEphemeral, nil] Body param: Top-level cache control automatically applies a cache_control marker
162
162
  #
@@ -333,7 +333,7 @@ module Anthropic
333
333
  #
334
334
  # @param messages [Array<Anthropic::Models::Beta::BetaMessageParam>] Body param: Input messages.
335
335
  #
336
- # @param model [Symbol, String, Anthropic::Models::Model] Body param: The model that will complete your prompt.\n\nSee [models](https://do
336
+ # @param model [Symbol, String, Anthropic::Models::Model] Body param: The model that will complete your prompt.
337
337
  #
338
338
  # @param cache_control [Anthropic::Models::Beta::BetaCacheControlEphemeral, nil] Body param: Top-level cache control automatically applies a cache_control marker
339
339
  #
@@ -22,7 +22,7 @@ module Anthropic
22
22
  #
23
23
  # @param max_tokens_to_sample [Integer] Body param: The maximum number of tokens to generate before stopping.
24
24
  #
25
- # @param model [Symbol, String, Anthropic::Models::Model] Body param: The model that will complete your prompt.\n\nSee [models](https://do
25
+ # @param model [Symbol, String, Anthropic::Models::Model] Body param: The model that will complete your prompt.
26
26
  #
27
27
  # @param prompt [String] Body param: The prompt that you want Claude to complete.
28
28
  #
@@ -78,7 +78,7 @@ module Anthropic
78
78
  #
79
79
  # @param max_tokens_to_sample [Integer] Body param: The maximum number of tokens to generate before stopping.
80
80
  #
81
- # @param model [Symbol, String, Anthropic::Models::Model] Body param: The model that will complete your prompt.\n\nSee [models](https://do
81
+ # @param model [Symbol, String, Anthropic::Models::Model] Body param: The model that will complete your prompt.
82
82
  #
83
83
  # @param prompt [String] Body param: The prompt that you want Claude to complete.
84
84
  #
@@ -28,7 +28,7 @@ module Anthropic
28
28
  #
29
29
  # @param messages [Array<Anthropic::Models::MessageParam>] Input messages.
30
30
  #
31
- # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.\n\nSee [models](https://docs.anthropic
31
+ # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.
32
32
  #
33
33
  # @param cache_control [Anthropic::Models::CacheControlEphemeral, nil] Top-level cache control automatically applies a cache_control marker to the last
34
34
  #
@@ -192,7 +192,7 @@ module Anthropic
192
192
  #
193
193
  # @param messages [Array<Anthropic::Models::MessageParam>] Input messages.
194
194
  #
195
- # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.\n\nSee [models](https://docs.anthropic
195
+ # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.
196
196
  #
197
197
  # @param cache_control [Anthropic::Models::CacheControlEphemeral, nil] Top-level cache control automatically applies a cache_control marker to the last
198
198
  #
@@ -262,7 +262,7 @@ module Anthropic
262
262
  #
263
263
  # @param messages [Array<Anthropic::Models::MessageParam>] Input messages.
264
264
  #
265
- # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.\n\nSee [models](https://docs.anthropic
265
+ # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.
266
266
  #
267
267
  # @param cache_control [Anthropic::Models::CacheControlEphemeral, nil] Top-level cache control automatically applies a cache_control marker to the last
268
268
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Anthropic
4
- VERSION = "1.43.0"
4
+ VERSION = "1.45.0"
5
5
  end
data/lib/anthropic.rb CHANGED
@@ -298,9 +298,11 @@ require_relative "anthropic/models/beta/beta_message_iteration_usage"
298
298
  require_relative "anthropic/models/beta/beta_message_param"
299
299
  require_relative "anthropic/models/beta/beta_message_tokens_count"
300
300
  require_relative "anthropic/models/beta/beta_metadata"
301
+ require_relative "anthropic/models/beta/beta_mid_conversation_system_block_param"
301
302
  require_relative "anthropic/models/beta/beta_model_capabilities"
302
303
  require_relative "anthropic/models/beta/beta_model_info"
303
304
  require_relative "anthropic/models/beta/beta_output_config"
305
+ require_relative "anthropic/models/beta/beta_output_tokens_details"
304
306
  require_relative "anthropic/models/beta/beta_packages"
305
307
  require_relative "anthropic/models/beta/beta_packages_params"
306
308
  require_relative "anthropic/models/beta/beta_plain_text_source"
@@ -770,6 +772,7 @@ require_relative "anthropic/models/messages/message_batch_result"
770
772
  require_relative "anthropic/models/messages/message_batch_succeeded_result"
771
773
  require_relative "anthropic/models/message_tokens_count"
772
774
  require_relative "anthropic/models/metadata"
775
+ require_relative "anthropic/models/mid_conversation_system_block_param"
773
776
  require_relative "anthropic/models/model"
774
777
  require_relative "anthropic/models/model_capabilities"
775
778
  require_relative "anthropic/models/model_info"
@@ -777,6 +780,7 @@ require_relative "anthropic/models/model_list_params"
777
780
  require_relative "anthropic/models/model_retrieve_params"
778
781
  require_relative "anthropic/models/not_found_error"
779
782
  require_relative "anthropic/models/output_config"
783
+ require_relative "anthropic/models/output_tokens_details"
780
784
  require_relative "anthropic/models/overloaded_error"
781
785
  require_relative "anthropic/models/permission_error"
782
786
  require_relative "anthropic/models/plain_text_source"