anthropic 1.28.0 → 1.29.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d2da1a7bc8b49ea61915d1cc299b5aa6b0f3f23196d5e27c7b9dd3905f7e48f
4
- data.tar.gz: f8256e11e3730d01877f3107c0a16ae66b5f3de6f5ec3cc7606ff44c889504e9
3
+ metadata.gz: 9903ffc6a65a97e1aecd5d543076498736d593e5e415b6858b735f43212071ce
4
+ data.tar.gz: dd482586dd325a06e741621608b8bcf6a609e1f094b7ac2b8da740da1f3d6af6
5
5
  SHA512:
6
- metadata.gz: '087f4d5e7a7f9104c994123d42eed55d377be6bfa5f4c232e98b972b82cdc269000724723da83aeda9a418e7d60d38c0cdc28e514cba9a09c39b26ca9190abe8'
7
- data.tar.gz: 78ffa75859db0ca13363677ef710da7dcdab18847d1e9a922b00d767e5e1fba0502300b821f8eb987e9c597e87d70c4f027df4df7b1a670ddb11f4f03eab2948
6
+ metadata.gz: 552efd90cf4c12ac0bc67fdf37043e6507d73e4532e8619b47c36eaf1dd87e2cf8ba6585f9fa03b6b2f6dfed7a185530255781e35cb229467b26faa20b1c95a5
7
+ data.tar.gz: e6b42808531ee1b092b83b2c03381c215b3165f3528420b171aa99cd4a75c95697e5250ad2b65e8cf0b12164ec9fd5698fa34f6f068486a09684cf357adbce68
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.29.0 (2026-04-07)
4
+
5
+ Full Changelog: [v1.28.0...v1.29.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.28.0...v1.29.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** Add support for claude-mythos-preview ([3f81797](https://github.com/anthropics/anthropic-sdk-ruby/commit/3f81797e418480fecb7034e7001690cddf97e1e3))
10
+
3
11
  ## 1.28.0 (2026-04-03)
4
12
 
5
13
  Full Changelog: [v1.27.0...v1.28.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.27.0...v1.28.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ Add to your application's Gemfile:
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "anthropic", "~> 1.28.0"
18
+ gem "anthropic", "~> 1.29.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -202,6 +202,10 @@ module Anthropic
202
202
  optional :system_, union: -> { Anthropic::Beta::MessageCreateParams::System }, api_name: :system
203
203
 
204
204
  # @!attribute temperature
205
+ # @deprecated Deprecated. Models released after Claude Opus 4.6 do not support setting
206
+ # temperature. A value of 1.0 of will be accepted for backwards compatibility, all
207
+ # other values will be rejected with a 400 error.
208
+ #
205
209
  # Amount of randomness injected into the response.
206
210
  #
207
211
  # Defaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature` closer to `0.0`
@@ -316,6 +320,9 @@ module Anthropic
316
320
  optional :tools, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::BetaToolUnion] }
317
321
 
318
322
  # @!attribute top_k
323
+ # @deprecated Deprecated. Models released after Claude Opus 4.6 do not accept top_k; any value
324
+ # will be rejected with a 400 error.
325
+ #
319
326
  # Only sample from the top K options for each subsequent token.
320
327
  #
321
328
  # Used to remove "long tail" low probability responses.
@@ -328,6 +335,10 @@ module Anthropic
328
335
  optional :top_k, Integer
329
336
 
330
337
  # @!attribute top_p
338
+ # @deprecated Deprecated. Models released after Claude Opus 4.6 do not support setting top_p.
339
+ # A value >= 0.99 will be accepted for backwards compatibility, all other values
340
+ # will be rejected with a 400 error.
341
+ #
331
342
  # Use nucleus sampling.
332
343
  #
333
344
  # In nucleus sampling, we compute the cumulative distribution over all the options
@@ -270,6 +270,10 @@ module Anthropic
270
270
  api_name: :system
271
271
 
272
272
  # @!attribute temperature
273
+ # @deprecated Deprecated. Models released after Claude Opus 4.6 do not support setting
274
+ # temperature. A value of 1.0 of will be accepted for backwards compatibility, all
275
+ # other values will be rejected with a 400 error.
276
+ #
273
277
  # Amount of randomness injected into the response.
274
278
  #
275
279
  # Defaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature` closer to `0.0`
@@ -384,6 +388,9 @@ module Anthropic
384
388
  optional :tools, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::BetaToolUnion] }
385
389
 
386
390
  # @!attribute top_k
391
+ # @deprecated Deprecated. Models released after Claude Opus 4.6 do not accept top_k; any value
392
+ # will be rejected with a 400 error.
393
+ #
387
394
  # Only sample from the top K options for each subsequent token.
388
395
  #
389
396
  # Used to remove "long tail" low probability responses.
@@ -396,6 +403,10 @@ module Anthropic
396
403
  optional :top_k, Integer
397
404
 
398
405
  # @!attribute top_p
406
+ # @deprecated Deprecated. Models released after Claude Opus 4.6 do not support setting top_p.
407
+ # A value >= 0.99 will be accepted for backwards compatibility, all other values
408
+ # will be rejected with a 400 error.
409
+ #
399
410
  # Use nucleus sampling.
400
411
  #
401
412
  # In nucleus sampling, we compute the cumulative distribution over all the options
@@ -166,6 +166,10 @@ module Anthropic
166
166
  optional :system_, union: -> { Anthropic::MessageCreateParams::System }, api_name: :system
167
167
 
168
168
  # @!attribute temperature
169
+ # @deprecated Deprecated. Models released after Claude Opus 4.6 do not support setting
170
+ # temperature. A value of 1.0 of will be accepted for backwards compatibility, all
171
+ # other values will be rejected with a 400 error.
172
+ #
169
173
  # Amount of randomness injected into the response.
170
174
  #
171
175
  # Defaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature` closer to `0.0`
@@ -280,6 +284,9 @@ module Anthropic
280
284
  optional :tools, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::ToolUnion] }
281
285
 
282
286
  # @!attribute top_k
287
+ # @deprecated Deprecated. Models released after Claude Opus 4.6 do not accept top_k; any value
288
+ # will be rejected with a 400 error.
289
+ #
283
290
  # Only sample from the top K options for each subsequent token.
284
291
  #
285
292
  # Used to remove "long tail" low probability responses.
@@ -292,6 +299,10 @@ module Anthropic
292
299
  optional :top_k, Integer
293
300
 
294
301
  # @!attribute top_p
302
+ # @deprecated Deprecated. Models released after Claude Opus 4.6 do not support setting top_p.
303
+ # A value >= 0.99 will be accepted for backwards compatibility, all other values
304
+ # will be rejected with a 400 error.
305
+ #
295
306
  # Use nucleus sampling.
296
307
  #
297
308
  # In nucleus sampling, we compute the cumulative distribution over all the options
@@ -220,6 +220,10 @@ module Anthropic
220
220
  api_name: :system
221
221
 
222
222
  # @!attribute temperature
223
+ # @deprecated Deprecated. Models released after Claude Opus 4.6 do not support setting
224
+ # temperature. A value of 1.0 of will be accepted for backwards compatibility, all
225
+ # other values will be rejected with a 400 error.
226
+ #
223
227
  # Amount of randomness injected into the response.
224
228
  #
225
229
  # Defaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature` closer to `0.0`
@@ -334,6 +338,9 @@ module Anthropic
334
338
  optional :tools, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::ToolUnion] }
335
339
 
336
340
  # @!attribute top_k
341
+ # @deprecated Deprecated. Models released after Claude Opus 4.6 do not accept top_k; any value
342
+ # will be rejected with a 400 error.
343
+ #
337
344
  # Only sample from the top K options for each subsequent token.
338
345
  #
339
346
  # Used to remove "long tail" low probability responses.
@@ -346,6 +353,10 @@ module Anthropic
346
353
  optional :top_k, Integer
347
354
 
348
355
  # @!attribute top_p
356
+ # @deprecated Deprecated. Models released after Claude Opus 4.6 do not support setting top_p.
357
+ # A value >= 0.99 will be accepted for backwards compatibility, all other values
358
+ # will be rejected with a 400 error.
359
+ #
349
360
  # Use nucleus sampling.
350
361
  #
351
362
  # In nucleus sampling, we compute the cumulative distribution over all the options
@@ -8,6 +8,8 @@ module Anthropic
8
8
  module Model
9
9
  extend Anthropic::Internal::Type::Union
10
10
 
11
+ variant const: -> { Anthropic::Models::Model::CLAUDE_MYTHOS_PREVIEW }
12
+
11
13
  variant const: -> { Anthropic::Models::Model::CLAUDE_OPUS_4_6 }
12
14
 
13
15
  variant const: -> { Anthropic::Models::Model::CLAUDE_SONNET_4_6 }
@@ -49,7 +51,10 @@ module Anthropic
49
51
 
50
52
  # @!group
51
53
 
52
- # Most intelligent model for building agents and coding
54
+ # New class of intelligence, strongest in coding and cybersecurity
55
+ CLAUDE_MYTHOS_PREVIEW = :"claude-mythos-preview"
56
+
57
+ # Frontier intelligence for long-running agents and coding
53
58
  CLAUDE_OPUS_4_6 = :"claude-opus-4-6"
54
59
 
55
60
  # Best combination of speed and intelligence
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Anthropic
4
- VERSION = "1.28.0"
4
+ VERSION = "1.29.0"
5
5
  end
@@ -17,7 +17,11 @@ module Anthropic
17
17
  TaggedSymbol = T.type_alias { T.all(Symbol, Anthropic::Model) }
18
18
  OrSymbol = T.type_alias { T.any(Symbol, String) }
19
19
 
20
- # Most intelligent model for building agents and coding
20
+ # New class of intelligence, strongest in coding and cybersecurity
21
+ CLAUDE_MYTHOS_PREVIEW =
22
+ T.let(:"claude-mythos-preview", Anthropic::Model::TaggedSymbol)
23
+
24
+ # Frontier intelligence for long-running agents and coding
21
25
  CLAUDE_OPUS_4_6 =
22
26
  T.let(:"claude-opus-4-6", Anthropic::Model::TaggedSymbol)
23
27
 
@@ -1,7 +1,8 @@
1
1
  module Anthropic
2
2
  module Models
3
3
  type model =
4
- :"claude-opus-4-6"
4
+ :"claude-mythos-preview"
5
+ | :"claude-opus-4-6"
5
6
  | :"claude-sonnet-4-6"
6
7
  | :"claude-haiku-4-5"
7
8
  | :"claude-haiku-4-5-20251001"
@@ -23,7 +24,10 @@ module Anthropic
23
24
 
24
25
  def self?.variants: -> ::Array[Anthropic::Models::model]
25
26
 
26
- # Most intelligent model for building agents and coding
27
+ # New class of intelligence, strongest in coding and cybersecurity
28
+ CLAUDE_MYTHOS_PREVIEW: :"claude-mythos-preview"
29
+
30
+ # Frontier intelligence for long-running agents and coding
27
31
  CLAUDE_OPUS_4_6: :"claude-opus-4-6"
28
32
 
29
33
  # Best combination of speed and intelligence
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.28.0
4
+ version: 1.29.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthropic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-03 00:00:00.000000000 Z
11
+ date: 2026-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi