cadenya 0.6.0 → 0.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -10
- data/lib/cadenya/models/model.rb +4 -9
- data/lib/cadenya/version.rb +1 -1
- data/rbi/cadenya/models/model.rbi +6 -16
- data/sig/cadenya/models/model.rbs +7 -5
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 274ccbd26e73c45e670cfbb81466c39fc2077f6d5c5a32b2835ea5be0a46c03c
|
|
4
|
+
data.tar.gz: 2e744abab3330f3fddd68aaa0e81d10aad222bc498db1be2946b1394d23d874f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dcda80d25e9295f303a4b5756f60658937682942f103d269a447bf594906fc0fe97cf4289e3d741cc5adc70373ae17f9e6ef47a8547bb58616910f36b5594d4e
|
|
7
|
+
data.tar.gz: 3c173ff743a5022b8599b7a7b0464b1d9ced87c79ed946356ef14d5b4c7f872c30827ee8fa484ab50924766d3ac15ca88a7a72ca077cfd9a39fc65960654f07e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.8.0 (2026-06-07)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.7.0...v0.8.0](https://github.com/cadenya/cadenya-ruby/compare/v0.7.0...v0.8.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([8a0854a](https://github.com/cadenya/cadenya-ruby/commit/8a0854a55ccebb1213d7eb4a0547f2ff858ce5ae))
|
|
10
|
+
|
|
11
|
+
## 0.7.0 (2026-06-07)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.6.0...v0.7.0](https://github.com/cadenya/cadenya-ruby/compare/v0.6.0...v0.7.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([27ab1ac](https://github.com/cadenya/cadenya-ruby/commit/27ab1acea4087916251d218b880e3f1185860aba))
|
|
18
|
+
|
|
3
19
|
## 0.6.0 (2026-06-07)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.5.0...v0.6.0](https://github.com/cadenya/cadenya-ruby/compare/v0.5.0...v0.6.0)
|
data/README.md
CHANGED
|
@@ -4,15 +4,6 @@ The Cadenya Ruby library provides convenient access to the Cadenya REST API from
|
|
|
4
4
|
|
|
5
5
|
It is generated with [Stainless](https://www.stainless.com/).
|
|
6
6
|
|
|
7
|
-
## MCP Server
|
|
8
|
-
|
|
9
|
-
Use the Cadenya MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
|
|
10
|
-
|
|
11
|
-
[](https://cursor.com/en-US/install-mcp?name=cadenya-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImNhZGVueWEtbWNwIl0sImVudiI6eyJDQURFTllBX0FQSV9LRVkiOiJNeSBBUEkgS2V5IiwiQ0FERU5ZQV9XRUJIT09LX0tFWSI6Ik15IFdlYmhvb2sgS2V5In19)
|
|
12
|
-
[](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22cadenya-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22cadenya-mcp%22%5D%2C%22env%22%3A%7B%22CADENYA_API_KEY%22%3A%22My%20API%20Key%22%2C%22CADENYA_WEBHOOK_KEY%22%3A%22My%20Webhook%20Key%22%7D%7D)
|
|
13
|
-
|
|
14
|
-
> Note: You may need to set environment variables in your MCP client.
|
|
15
|
-
|
|
16
7
|
## Documentation
|
|
17
8
|
|
|
18
9
|
Documentation for releases of this gem can be found [on RubyDoc](https://gemdocs.org/gems/cadenya).
|
|
@@ -26,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
|
|
|
26
17
|
<!-- x-release-please-start-version -->
|
|
27
18
|
|
|
28
19
|
```ruby
|
|
29
|
-
gem "cadenya", "~> 0.
|
|
20
|
+
gem "cadenya", "~> 0.8.0"
|
|
30
21
|
```
|
|
31
22
|
|
|
32
23
|
<!-- x-release-please-end -->
|
data/lib/cadenya/models/model.rb
CHANGED
|
@@ -45,15 +45,10 @@ module Cadenya
|
|
|
45
45
|
optional :agent_variation_count, Integer, api_name: :agentVariationCount
|
|
46
46
|
|
|
47
47
|
# @!attribute ai_provider_key
|
|
48
|
-
#
|
|
49
|
-
# optional human-readable name. These are used for reference fields where the full
|
|
50
|
-
# metadata (account scoping, timestamps, labels, external IDs) is not needed —
|
|
51
|
-
# e.g., the tool references inside an agent variation spec or the tools assigned
|
|
52
|
-
# to an objective. Both fields are server-populated; clients provide IDs through
|
|
53
|
-
# sibling fields rather than by constructing a BareMetadata themselves.
|
|
48
|
+
# Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
54
49
|
#
|
|
55
|
-
# @return [Cadenya::Models::
|
|
56
|
-
optional :ai_provider_key, -> { Cadenya::
|
|
50
|
+
# @return [Cadenya::Models::ResourceMetadata, nil]
|
|
51
|
+
optional :ai_provider_key, -> { Cadenya::ResourceMetadata }, api_name: :aiProviderKey
|
|
57
52
|
|
|
58
53
|
# @!attribute provider
|
|
59
54
|
# The AI provider this model routes through (via its provider key).
|
|
@@ -70,7 +65,7 @@ module Cadenya
|
|
|
70
65
|
#
|
|
71
66
|
# @param agent_variation_count [Integer] Number of agent variations currently provisioned on this model. Useful for
|
|
72
67
|
#
|
|
73
|
-
# @param ai_provider_key [Cadenya::Models::
|
|
68
|
+
# @param ai_provider_key [Cadenya::Models::ResourceMetadata] Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
74
69
|
#
|
|
75
70
|
# @param provider [Symbol, Cadenya::Models::Model::Info::Provider] The AI provider this model routes through (via its provider key).
|
|
76
71
|
|
data/lib/cadenya/version.rb
CHANGED
|
@@ -70,16 +70,11 @@ module Cadenya
|
|
|
70
70
|
sig { params(agent_variation_count: Integer).void }
|
|
71
71
|
attr_writer :agent_variation_count
|
|
72
72
|
|
|
73
|
-
#
|
|
74
|
-
|
|
75
|
-
# metadata (account scoping, timestamps, labels, external IDs) is not needed —
|
|
76
|
-
# e.g., the tool references inside an agent variation spec or the tools assigned
|
|
77
|
-
# to an objective. Both fields are server-populated; clients provide IDs through
|
|
78
|
-
# sibling fields rather than by constructing a BareMetadata themselves.
|
|
79
|
-
sig { returns(T.nilable(Cadenya::BareMetadata)) }
|
|
73
|
+
# Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
74
|
+
sig { returns(T.nilable(Cadenya::ResourceMetadata)) }
|
|
80
75
|
attr_reader :ai_provider_key
|
|
81
76
|
|
|
82
|
-
sig { params(ai_provider_key: Cadenya::
|
|
77
|
+
sig { params(ai_provider_key: Cadenya::ResourceMetadata::OrHash).void }
|
|
83
78
|
attr_writer :ai_provider_key
|
|
84
79
|
|
|
85
80
|
# The AI provider this model routes through (via its provider key).
|
|
@@ -93,7 +88,7 @@ module Cadenya
|
|
|
93
88
|
sig do
|
|
94
89
|
params(
|
|
95
90
|
agent_variation_count: Integer,
|
|
96
|
-
ai_provider_key: Cadenya::
|
|
91
|
+
ai_provider_key: Cadenya::ResourceMetadata::OrHash,
|
|
97
92
|
provider: Cadenya::Model::Info::Provider::OrSymbol
|
|
98
93
|
).returns(T.attached_class)
|
|
99
94
|
end
|
|
@@ -101,12 +96,7 @@ module Cadenya
|
|
|
101
96
|
# Number of agent variations currently provisioned on this model. Useful for
|
|
102
97
|
# previewing how many variations a swap would affect.
|
|
103
98
|
agent_variation_count: nil,
|
|
104
|
-
#
|
|
105
|
-
# optional human-readable name. These are used for reference fields where the full
|
|
106
|
-
# metadata (account scoping, timestamps, labels, external IDs) is not needed —
|
|
107
|
-
# e.g., the tool references inside an agent variation spec or the tools assigned
|
|
108
|
-
# to an objective. Both fields are server-populated; clients provide IDs through
|
|
109
|
-
# sibling fields rather than by constructing a BareMetadata themselves.
|
|
99
|
+
# Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
110
100
|
ai_provider_key: nil,
|
|
111
101
|
# The AI provider this model routes through (via its provider key).
|
|
112
102
|
provider: nil
|
|
@@ -117,7 +107,7 @@ module Cadenya
|
|
|
117
107
|
override.returns(
|
|
118
108
|
{
|
|
119
109
|
agent_variation_count: Integer,
|
|
120
|
-
ai_provider_key: Cadenya::
|
|
110
|
+
ai_provider_key: Cadenya::ResourceMetadata,
|
|
121
111
|
provider: Cadenya::Model::Info::Provider::TaggedSymbol
|
|
122
112
|
}
|
|
123
113
|
)
|
|
@@ -31,7 +31,7 @@ module Cadenya
|
|
|
31
31
|
type info =
|
|
32
32
|
{
|
|
33
33
|
agent_variation_count: Integer,
|
|
34
|
-
ai_provider_key: Cadenya::
|
|
34
|
+
ai_provider_key: Cadenya::ResourceMetadata,
|
|
35
35
|
provider: Cadenya::Models::Model::Info::provider
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -40,9 +40,11 @@ module Cadenya
|
|
|
40
40
|
|
|
41
41
|
def agent_variation_count=: (Integer) -> Integer
|
|
42
42
|
|
|
43
|
-
attr_reader ai_provider_key: Cadenya::
|
|
43
|
+
attr_reader ai_provider_key: Cadenya::ResourceMetadata?
|
|
44
44
|
|
|
45
|
-
def ai_provider_key=: (
|
|
45
|
+
def ai_provider_key=: (
|
|
46
|
+
Cadenya::ResourceMetadata
|
|
47
|
+
) -> Cadenya::ResourceMetadata
|
|
46
48
|
|
|
47
49
|
attr_reader provider: Cadenya::Models::Model::Info::provider?
|
|
48
50
|
|
|
@@ -52,13 +54,13 @@ module Cadenya
|
|
|
52
54
|
|
|
53
55
|
def initialize: (
|
|
54
56
|
?agent_variation_count: Integer,
|
|
55
|
-
?ai_provider_key: Cadenya::
|
|
57
|
+
?ai_provider_key: Cadenya::ResourceMetadata,
|
|
56
58
|
?provider: Cadenya::Models::Model::Info::provider
|
|
57
59
|
) -> void
|
|
58
60
|
|
|
59
61
|
def to_hash: -> {
|
|
60
62
|
agent_variation_count: Integer,
|
|
61
|
-
ai_provider_key: Cadenya::
|
|
63
|
+
ai_provider_key: Cadenya::ResourceMetadata,
|
|
62
64
|
provider: Cadenya::Models::Model::Info::provider
|
|
63
65
|
}
|
|
64
66
|
|