anthropic 1.51.0 → 1.52.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +2 -1
- data/lib/anthropic/models/beta/beta_managed_agents_model.rb +5 -0
- data/lib/anthropic/models/model.rb +5 -0
- data/lib/anthropic/version.rb +1 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_model.rbi +7 -0
- data/rbi/anthropic/models/model.rbi +4 -0
- data/sig/anthropic/models/beta/beta_managed_agents_model.rbs +5 -1
- data/sig/anthropic/models/model.rbs +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1b312233ad8f04713361c1c5e30bca8db4844967eb3bdf0ef6360f8ab29f5733
|
|
4
|
+
data.tar.gz: 3b8e3408c23b7327750c050491580075c161bdab27c7e7989e433a3cf0cfad0b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fa41c8a827b8e8afc3ec20aa0f87097321a76db19147425685218e27aa8d8888b62efb0e1734b3a110fcbfbf421a59b27502925bb0aae8ceb6918224fda1bb73
|
|
7
|
+
data.tar.gz: 1e4763335254203b2585f6cf1762adad36febfa455c3ac1cba19f99da335d04db07af55451358c6e23ba8f3d4c3ae7194d3a84c8dbf8d65f3311bd7e9f411c91
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.52.0 (2026-06-30)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.51.0...v1.52.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.51.0...v1.52.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** add support for claude-sonnet-5 ([2d275bb](https://github.com/anthropics/anthropic-sdk-ruby/commit/2d275bb65db881384f4fb23891b5fb3dfb258590))
|
|
10
|
+
|
|
3
11
|
## 1.51.0 (2026-06-29)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v1.50.0...v1.51.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.50.0...v1.51.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.
|
|
18
|
+
gem "anthropic", "~> 1.52.0"
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
<!-- x-release-please-end -->
|
|
@@ -39,6 +39,7 @@ message = anthropic.messages.create(
|
|
|
39
39
|
puts(message.content)
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
+
|
|
42
43
|
## Requirements
|
|
43
44
|
|
|
44
45
|
Ruby 3.2.0+
|
|
@@ -10,6 +10,8 @@ module Anthropic
|
|
|
10
10
|
module BetaManagedAgentsModel
|
|
11
11
|
extend Anthropic::Internal::Type::Union
|
|
12
12
|
|
|
13
|
+
variant const: -> { Anthropic::Models::Beta::BetaManagedAgentsModel::CLAUDE_SONNET_5 }
|
|
14
|
+
|
|
13
15
|
variant const: -> { Anthropic::Models::Beta::BetaManagedAgentsModel::CLAUDE_FABLE_5 }
|
|
14
16
|
|
|
15
17
|
variant const: -> { Anthropic::Models::Beta::BetaManagedAgentsModel::CLAUDE_OPUS_4_8 }
|
|
@@ -43,6 +45,9 @@ module Anthropic
|
|
|
43
45
|
|
|
44
46
|
# @!group
|
|
45
47
|
|
|
48
|
+
# High-performance model for coding and agents
|
|
49
|
+
CLAUDE_SONNET_5 = :"claude-sonnet-5"
|
|
50
|
+
|
|
46
51
|
# Next generation of intelligence for the hardest knowledge work and coding problems
|
|
47
52
|
CLAUDE_FABLE_5 = :"claude-fable-5"
|
|
48
53
|
|
|
@@ -9,6 +9,8 @@ module Anthropic
|
|
|
9
9
|
module Model
|
|
10
10
|
extend Anthropic::Internal::Type::Union
|
|
11
11
|
|
|
12
|
+
variant const: -> { Anthropic::Models::Model::CLAUDE_SONNET_5 }
|
|
13
|
+
|
|
12
14
|
variant const: -> { Anthropic::Models::Model::CLAUDE_FABLE_5 }
|
|
13
15
|
|
|
14
16
|
variant const: -> { Anthropic::Models::Model::CLAUDE_MYTHOS_5 }
|
|
@@ -50,6 +52,9 @@ module Anthropic
|
|
|
50
52
|
|
|
51
53
|
# @!group
|
|
52
54
|
|
|
55
|
+
# High-performance model for coding and agents
|
|
56
|
+
CLAUDE_SONNET_5 = :"claude-sonnet-5"
|
|
57
|
+
|
|
53
58
|
# Next generation of intelligence for the hardest knowledge work and coding problems
|
|
54
59
|
CLAUDE_FABLE_5 = :"claude-fable-5"
|
|
55
60
|
|
data/lib/anthropic/version.rb
CHANGED
|
@@ -31,6 +31,13 @@ module Anthropic
|
|
|
31
31
|
end
|
|
32
32
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
33
33
|
|
|
34
|
+
# High-performance model for coding and agents
|
|
35
|
+
CLAUDE_SONNET_5 =
|
|
36
|
+
T.let(
|
|
37
|
+
:"claude-sonnet-5",
|
|
38
|
+
Anthropic::Beta::BetaManagedAgentsModel::TaggedSymbol
|
|
39
|
+
)
|
|
40
|
+
|
|
34
41
|
# Next generation of intelligence for the hardest knowledge work and coding problems
|
|
35
42
|
CLAUDE_FABLE_5 =
|
|
36
43
|
T.let(
|
|
@@ -18,6 +18,10 @@ module Anthropic
|
|
|
18
18
|
TaggedSymbol = T.type_alias { T.all(Symbol, Anthropic::Model) }
|
|
19
19
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
20
20
|
|
|
21
|
+
# High-performance model for coding and agents
|
|
22
|
+
CLAUDE_SONNET_5 =
|
|
23
|
+
T.let(:"claude-sonnet-5", Anthropic::Model::TaggedSymbol)
|
|
24
|
+
|
|
21
25
|
# Next generation of intelligence for the hardest knowledge work and coding problems
|
|
22
26
|
CLAUDE_FABLE_5 = T.let(:"claude-fable-5", Anthropic::Model::TaggedSymbol)
|
|
23
27
|
|
|
@@ -4,7 +4,8 @@ module Anthropic
|
|
|
4
4
|
|
|
5
5
|
module Beta
|
|
6
6
|
type beta_managed_agents_model =
|
|
7
|
-
:"claude-
|
|
7
|
+
:"claude-sonnet-5"
|
|
8
|
+
| :"claude-fable-5"
|
|
8
9
|
| :"claude-opus-4-8"
|
|
9
10
|
| :"claude-opus-4-7"
|
|
10
11
|
| :"claude-opus-4-6"
|
|
@@ -22,6 +23,9 @@ module Anthropic
|
|
|
22
23
|
|
|
23
24
|
def self?.variants: -> ::Array[Anthropic::Models::Beta::beta_managed_agents_model]
|
|
24
25
|
|
|
26
|
+
# High-performance model for coding and agents
|
|
27
|
+
CLAUDE_SONNET_5: :"claude-sonnet-5"
|
|
28
|
+
|
|
25
29
|
# Next generation of intelligence for the hardest knowledge work and coding problems
|
|
26
30
|
CLAUDE_FABLE_5: :"claude-fable-5"
|
|
27
31
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
module Anthropic
|
|
2
2
|
module Models
|
|
3
3
|
type model =
|
|
4
|
-
:"claude-
|
|
4
|
+
:"claude-sonnet-5"
|
|
5
|
+
| :"claude-fable-5"
|
|
5
6
|
| :"claude-mythos-5"
|
|
6
7
|
| :"claude-opus-4-8"
|
|
7
8
|
| :"claude-opus-4-7"
|
|
@@ -23,6 +24,9 @@ module Anthropic
|
|
|
23
24
|
|
|
24
25
|
def self?.variants: -> ::Array[Anthropic::Models::model]
|
|
25
26
|
|
|
27
|
+
# High-performance model for coding and agents
|
|
28
|
+
CLAUDE_SONNET_5: :"claude-sonnet-5"
|
|
29
|
+
|
|
26
30
|
# Next generation of intelligence for the hardest knowledge work and coding problems
|
|
27
31
|
CLAUDE_FABLE_5: :"claude-fable-5"
|
|
28
32
|
|
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.
|
|
4
|
+
version: 1.52.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-06-
|
|
11
|
+
date: 2026-06-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|