cadenya 0.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c2dcd1cfa5f7a97b3b8c55e8e75af30af8af505fd48b16020c547599f2ac38c
4
- data.tar.gz: 3d82c7355633027c9a0e4c1ffe0656b96cd2de3f91aeb53fb7a6eb55799a2b10
3
+ metadata.gz: 274ccbd26e73c45e670cfbb81466c39fc2077f6d5c5a32b2835ea5be0a46c03c
4
+ data.tar.gz: 2e744abab3330f3fddd68aaa0e81d10aad222bc498db1be2946b1394d23d874f
5
5
  SHA512:
6
- metadata.gz: a5beeda046e7a9cf0501211366e2dce76053d994e572addc87b5d3769e3772195303a593eba474f4f895ae26c207d44593e2095955b6c654bba3709116ac82e8
7
- data.tar.gz: 4f78341add82def842d57ca72779bd4cc3f241b50089c04e2a50c91bc561ebc9b89cb3eaa6e099dac900d68d0c4efeda2310053bd383425e23cd1452f91122ff
6
+ metadata.gz: dcda80d25e9295f303a4b5756f60658937682942f103d269a447bf594906fc0fe97cf4289e3d741cc5adc70373ae17f9e6ef47a8547bb58616910f36b5594d4e
7
+ data.tar.gz: 3c173ff743a5022b8599b7a7b0464b1d9ced87c79ed946356ef14d5b4c7f872c30827ee8fa484ab50924766d3ac15ca88a7a72ca077cfd9a39fc65960654f07e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
3
11
  ## 0.7.0 (2026-06-07)
4
12
 
5
13
  Full Changelog: [v0.6.0...v0.7.0](https://github.com/cadenya/cadenya-ruby/compare/v0.6.0...v0.7.0)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "cadenya", "~> 0.7.0"
20
+ gem "cadenya", "~> 0.8.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -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
- # BareMetadata contains the minimal metadata for a resource: the ID and an
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::BareMetadata, nil]
56
- optional :ai_provider_key, -> { Cadenya::BareMetadata }, api_name: :aiProviderKey
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::BareMetadata] BareMetadata contains the minimal metadata for a resource: the ID and an
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cadenya
4
- VERSION = "0.7.0"
4
+ VERSION = "0.8.0"
5
5
  end
@@ -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
- # BareMetadata contains the minimal metadata for a resource: the ID and an
74
- # optional human-readable name. These are used for reference fields where the full
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::BareMetadata::OrHash).void }
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::BareMetadata::OrHash,
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
- # BareMetadata contains the minimal metadata for a resource: the ID and an
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::BareMetadata,
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::BareMetadata,
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::BareMetadata?
43
+ attr_reader ai_provider_key: Cadenya::ResourceMetadata?
44
44
 
45
- def ai_provider_key=: (Cadenya::BareMetadata) -> Cadenya::BareMetadata
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::BareMetadata,
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::BareMetadata,
63
+ ai_provider_key: Cadenya::ResourceMetadata,
62
64
  provider: Cadenya::Models::Model::Info::provider
63
65
  }
64
66
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cadenya
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cadenya