cadenya 0.35.0 → 0.36.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: cfaae11aa3f5161d17a4be42e681595ca557229cca74f5beda4d9685193e706f
4
- data.tar.gz: 1d68812d7b991453a4be825508c944395e9459f64c4184e460decfa0e80f9fab
3
+ metadata.gz: 672a153ffa6ff7cc71d6a5e88a80f604f9c34a88b44a0f37618e6550e95fbf49
4
+ data.tar.gz: f602dade634d00fd6c7d6ac2ff223c2ef8bbee4a330acdc1fa0c00970ea36a3c
5
5
  SHA512:
6
- metadata.gz: fbc72e5372d659e69fbf34f8f014aa4445157b0ef0153dad3a746c69cdca742a274fa46bf797b030ffcfdc1dfedb5c67af040afb5d3a4dd0250bf7a5b11a01db
7
- data.tar.gz: b4c22be8a69db5fa8394bc92e8c1f27309ebc2edbb11a0fdc184b94618134fe523c80dedc4380aa874da585002e601059341f2e7700e2cb6459bf758e1faf87e
6
+ metadata.gz: 15ab786a38f4a0e707b9b846b8113b27a73181867200fb90447c6642c2c1237bbd1755eb62aa3bb721ea6e0291c5fea5bed20cb8c8669b46bdf044f6bfeb2014
7
+ data.tar.gz: b225e914e7cc4070449968db6e6aa838bad63dd1e4c30c92d075570f7fb15868e7cacebeeb216598f4d0f2620d16cb5b4451b10dcf087e193a31a801d825d192
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.36.0 (2026-07-08)
4
+
5
+ Full Changelog: [v0.35.0...v0.36.0](https://github.com/cadenya/cadenya-ruby/compare/v0.35.0...v0.36.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([d8b85d1](https://github.com/cadenya/cadenya-ruby/commit/d8b85d169739664080debdfa3701b16fa8cde7d9))
10
+
3
11
  ## 0.35.0 (2026-07-08)
4
12
 
5
13
  Full Changelog: [v0.34.0...v0.35.0](https://github.com/cadenya/cadenya-ruby/compare/v0.34.0...v0.35.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.35.0"
20
+ gem "cadenya", "~> 0.36.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -62,16 +62,7 @@ module Cadenya
62
62
  # @return [String, nil]
63
63
  optional :system_prompt_template, String, api_name: :systemPromptTemplate
64
64
 
65
- # @!attribute weight
66
- # Weight for weighted random selection (>= 0). P(v) = v.weight / sum(all_weights).
67
- # Only used when the agent's variation_selection_mode is WEIGHTED. A weight of 0
68
- # means never auto-selected, but can still be chosen explicitly via variation_id
69
- # on CreateObjectiveRequest.
70
- #
71
- # @return [Integer, nil]
72
- optional :weight, Integer
73
-
74
- # @!method initialize(compaction_config: nil, constraints: nil, description: nil, first_user_message_template: nil, model_config: nil, progressive_discovery: nil, system_prompt_template: nil, weight: nil)
65
+ # @!method initialize(compaction_config: nil, constraints: nil, description: nil, first_user_message_template: nil, model_config: nil, progressive_discovery: nil, system_prompt_template: nil)
75
66
  # Some parameter documentations has been truncated, see
76
67
  # {Cadenya::Models::Agents::AgentVariationSpec} for more details.
77
68
  #
@@ -90,8 +81,6 @@ module Cadenya
90
81
  # @param progressive_discovery [Cadenya::Models::Agents::AgentVariationSpecProgressiveDiscovery] ProgressiveDiscovery is used to indicate that the agent should automatically dis
91
82
  #
92
83
  # @param system_prompt_template [String] Liquid template for the system prompt of objectives using this variation.
93
- #
94
- # @param weight [Integer] Weight for weighted random selection (>= 0). P(v) = v.weight / sum(all_weights).
95
84
  end
96
85
  end
97
86
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cadenya
4
- VERSION = "0.35.0"
4
+ VERSION = "0.36.0"
5
5
  end
@@ -105,16 +105,6 @@ module Cadenya
105
105
  sig { params(system_prompt_template: String).void }
106
106
  attr_writer :system_prompt_template
107
107
 
108
- # Weight for weighted random selection (>= 0). P(v) = v.weight / sum(all_weights).
109
- # Only used when the agent's variation_selection_mode is WEIGHTED. A weight of 0
110
- # means never auto-selected, but can still be chosen explicitly via variation_id
111
- # on CreateObjectiveRequest.
112
- sig { returns(T.nilable(Integer)) }
113
- attr_reader :weight
114
-
115
- sig { params(weight: Integer).void }
116
- attr_writer :weight
117
-
118
108
  # AgentVariationSpec defines the operational configuration for a variation
119
109
  sig do
120
110
  params(
@@ -127,8 +117,7 @@ module Cadenya
127
117
  Cadenya::Agents::AgentVariationSpecModelConfig::OrHash,
128
118
  progressive_discovery:
129
119
  Cadenya::Agents::AgentVariationSpecProgressiveDiscovery::OrHash,
130
- system_prompt_template: String,
131
- weight: Integer
120
+ system_prompt_template: String
132
121
  ).returns(T.attached_class)
133
122
  end
134
123
  def self.new(
@@ -157,12 +146,7 @@ module Cadenya
157
146
  # Liquid template for the system prompt of objectives using this variation.
158
147
  # Rendered with CreateObjectiveRequest.system_prompt_data into
159
148
  # Objective.system_prompt.
160
- system_prompt_template: nil,
161
- # Weight for weighted random selection (>= 0). P(v) = v.weight / sum(all_weights).
162
- # Only used when the agent's variation_selection_mode is WEIGHTED. A weight of 0
163
- # means never auto-selected, but can still be chosen explicitly via variation_id
164
- # on CreateObjectiveRequest.
165
- weight: nil
149
+ system_prompt_template: nil
166
150
  )
167
151
  end
168
152
 
@@ -177,8 +161,7 @@ module Cadenya
177
161
  model_config: Cadenya::Agents::AgentVariationSpecModelConfig,
178
162
  progressive_discovery:
179
163
  Cadenya::Agents::AgentVariationSpecProgressiveDiscovery,
180
- system_prompt_template: String,
181
- weight: Integer
164
+ system_prompt_template: String
182
165
  }
183
166
  )
184
167
  end
@@ -11,8 +11,7 @@ module Cadenya
11
11
  first_user_message_template: String,
12
12
  model_config: Cadenya::Agents::AgentVariationSpecModelConfig,
13
13
  progressive_discovery: Cadenya::Agents::AgentVariationSpecProgressiveDiscovery,
14
- system_prompt_template: String,
15
- weight: Integer
14
+ system_prompt_template: String
16
15
  }
17
16
 
18
17
  class AgentVariationSpec < Cadenya::Internal::Type::BaseModel
@@ -52,10 +51,6 @@ module Cadenya
52
51
 
53
52
  def system_prompt_template=: (String) -> String
54
53
 
55
- attr_reader weight: Integer?
56
-
57
- def weight=: (Integer) -> Integer
58
-
59
54
  def initialize: (
60
55
  ?compaction_config: Cadenya::Agents::AgentVariationSpecCompactionConfig,
61
56
  ?constraints: Cadenya::Agents::AgentVariationSpecConstraints,
@@ -63,8 +58,7 @@ module Cadenya
63
58
  ?first_user_message_template: String,
64
59
  ?model_config: Cadenya::Agents::AgentVariationSpecModelConfig,
65
60
  ?progressive_discovery: Cadenya::Agents::AgentVariationSpecProgressiveDiscovery,
66
- ?system_prompt_template: String,
67
- ?weight: Integer
61
+ ?system_prompt_template: String
68
62
  ) -> void
69
63
 
70
64
  def to_hash: -> {
@@ -74,8 +68,7 @@ module Cadenya
74
68
  first_user_message_template: String,
75
69
  model_config: Cadenya::Agents::AgentVariationSpecModelConfig,
76
70
  progressive_discovery: Cadenya::Agents::AgentVariationSpecProgressiveDiscovery,
77
- system_prompt_template: String,
78
- weight: Integer
71
+ system_prompt_template: String
79
72
  }
80
73
  end
81
74
  end
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.35.0
4
+ version: 0.36.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cadenya