cadenya 0.37.0 → 0.38.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: ca442fe2d2711e6a485b2a4dd60c5bbd00c7a3557c0a4ceefdb64beae7023f96
4
- data.tar.gz: 95863b2994482af8161b07a5d70bc2531939edfc444be20bef0c3ed3d6ea418e
3
+ metadata.gz: 35043e85b3a216b685fa3c874d14c0d68d4a2a395c59fa9c07279fe282864251
4
+ data.tar.gz: 9c4363716132147b993118bbba5365bab99fe34325212d6be366a54d4cccb5e3
5
5
  SHA512:
6
- metadata.gz: abe085b7833b0c4b8f1b5cf109345b9c70666edb66b9c403b411c9edb6033e3a829ed7614be2ebd7f5778b504d5f8e445ab94b046ff864d8d376d6ba49025a9a
7
- data.tar.gz: 87a3a04f0c8ec732fa3c215306181a8729b6bf2972d0924edc52c559db0e75d4efa91e98e4c3477e37d36674efb764c757593d994bd19a178bbff16cdcae066f
6
+ metadata.gz: 7731c1a1b32b491f7e72a5a7a4e7ed0ba41d8f4db4e7a8c7b5bb6086d7d5e7dcf2e343b15a7dfdb13a635b93ee9f5991fb3793fef28ea39c5127fc63840868cf
7
+ data.tar.gz: 0eee8df82d5d8926f5d439e986c9929286e26bb8d6041d91de0bc75d7eb9e530f5a1fa936c9db2eff2bc4818eacf1aaf11153bed57bf5844368c74ba11c345b0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.38.0 (2026-07-08)
4
+
5
+ Full Changelog: [v0.37.0...v0.38.0](https://github.com/cadenya/cadenya-ruby/compare/v0.37.0...v0.38.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([55059de](https://github.com/cadenya/cadenya-ruby/commit/55059deb9a0e57c8056d9de2545d885216f2f7b3))
10
+
3
11
  ## 0.37.0 (2026-07-08)
4
12
 
5
13
  Full Changelog: [v0.36.0...v0.37.0](https://github.com/cadenya/cadenya-ruby/compare/v0.36.0...v0.37.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.37.0"
20
+ gem "cadenya", "~> 0.38.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -5,26 +5,23 @@ module Cadenya
5
5
  module Agents
6
6
  class AgentVariationSpecProgressiveDiscovery < Cadenya::Internal::Type::BaseModel
7
7
  # @!attribute hints
8
+ # Free-text guidance appended to the discoverable-tools appendix in the system
9
+ # prompt. Hints steer the model's choice of tool names; they do not filter or rank
10
+ # anything, because tool_search matches names exactly rather than searching.
8
11
  #
9
12
  # @return [Array<String>, nil]
10
13
  optional :hints, Cadenya::Internal::Type::ArrayOf[String]
11
14
 
12
15
  # @!attribute max_tools
16
+ # The most tool names tool_search will load in a single call. Requesting more than
17
+ # this returns an error telling the model to retry in smaller batches -- it is a
18
+ # per-call batch limit, not a ceiling on how many tools an objective may end up
19
+ # with.
13
20
  #
14
21
  # @return [Integer, nil]
15
22
  optional :max_tools, Integer, api_name: :maxTools
16
23
 
17
- # @!attribute rerank_threshold
18
- # Rerank Threshold is an optional value that instructs whether or not to run a
19
- # search result through a embedding/reranker process which can improve performance
20
- # and reduce context bloat when tools reach the configured threshold. If a tool
21
- # match must exceed 0.8, for example, the tool very closely match the query the
22
- # tool search performed.
23
- #
24
- # @return [Float, nil]
25
- optional :rerank_threshold, Float, api_name: :rerankThreshold
26
-
27
- # @!method initialize(hints: nil, max_tools: nil, rerank_threshold: nil)
24
+ # @!method initialize(hints: nil, max_tools: nil)
28
25
  # Some parameter documentations has been truncated, see
29
26
  # {Cadenya::Models::Agents::AgentVariationSpecProgressiveDiscovery} for more
30
27
  # details.
@@ -35,11 +32,9 @@ module Cadenya
35
32
  # tool search. These are used in conjunction with the context-aware tool search
36
33
  # and can help select the best tools for the task.
37
34
  #
38
- # @param hints [Array<String>]
39
- #
40
- # @param max_tools [Integer]
35
+ # @param hints [Array<String>] Free-text guidance appended to the discoverable-tools appendix in the
41
36
  #
42
- # @param rerank_threshold [Float] Rerank Threshold is an optional value that instructs whether or not to run a sea
37
+ # @param max_tools [Integer] The most tool names tool_search will load in a single call. Requesting more
43
38
  end
44
39
  end
45
40
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cadenya
4
- VERSION = "0.37.0"
4
+ VERSION = "0.38.0"
5
5
  end
@@ -15,61 +15,50 @@ module Cadenya
15
15
  )
16
16
  end
17
17
 
18
+ # Free-text guidance appended to the discoverable-tools appendix in the system
19
+ # prompt. Hints steer the model's choice of tool names; they do not filter or rank
20
+ # anything, because tool_search matches names exactly rather than searching.
18
21
  sig { returns(T.nilable(T::Array[String])) }
19
22
  attr_reader :hints
20
23
 
21
24
  sig { params(hints: T::Array[String]).void }
22
25
  attr_writer :hints
23
26
 
27
+ # The most tool names tool_search will load in a single call. Requesting more than
28
+ # this returns an error telling the model to retry in smaller batches -- it is a
29
+ # per-call batch limit, not a ceiling on how many tools an objective may end up
30
+ # with.
24
31
  sig { returns(T.nilable(Integer)) }
25
32
  attr_reader :max_tools
26
33
 
27
34
  sig { params(max_tools: Integer).void }
28
35
  attr_writer :max_tools
29
36
 
30
- # Rerank Threshold is an optional value that instructs whether or not to run a
31
- # search result through a embedding/reranker process which can improve performance
32
- # and reduce context bloat when tools reach the configured threshold. If a tool
33
- # match must exceed 0.8, for example, the tool very closely match the query the
34
- # tool search performed.
35
- sig { returns(T.nilable(Float)) }
36
- attr_reader :rerank_threshold
37
-
38
- sig { params(rerank_threshold: Float).void }
39
- attr_writer :rerank_threshold
40
-
41
37
  # ProgressiveDiscovery is used to indicate that the agent should automatically
42
38
  # discover tools that are not explicitly assigned to it. Max tools is the maximum
43
39
  # number of tools that can be discovered per search. Hints are optional hints for
44
40
  # tool search. These are used in conjunction with the context-aware tool search
45
41
  # and can help select the best tools for the task.
46
42
  sig do
47
- params(
48
- hints: T::Array[String],
49
- max_tools: Integer,
50
- rerank_threshold: Float
51
- ).returns(T.attached_class)
43
+ params(hints: T::Array[String], max_tools: Integer).returns(
44
+ T.attached_class
45
+ )
52
46
  end
53
47
  def self.new(
48
+ # Free-text guidance appended to the discoverable-tools appendix in the system
49
+ # prompt. Hints steer the model's choice of tool names; they do not filter or rank
50
+ # anything, because tool_search matches names exactly rather than searching.
54
51
  hints: nil,
55
- max_tools: nil,
56
- # Rerank Threshold is an optional value that instructs whether or not to run a
57
- # search result through a embedding/reranker process which can improve performance
58
- # and reduce context bloat when tools reach the configured threshold. If a tool
59
- # match must exceed 0.8, for example, the tool very closely match the query the
60
- # tool search performed.
61
- rerank_threshold: nil
52
+ # The most tool names tool_search will load in a single call. Requesting more than
53
+ # this returns an error telling the model to retry in smaller batches -- it is a
54
+ # per-call batch limit, not a ceiling on how many tools an objective may end up
55
+ # with.
56
+ max_tools: nil
62
57
  )
63
58
  end
64
59
 
65
60
  sig do
66
- override.returns(
67
- {
68
- hints: T::Array[String],
69
- max_tools: Integer,
70
- rerank_threshold: Float
71
- }
72
- )
61
+ override.returns({ hints: T::Array[String], max_tools: Integer })
73
62
  end
74
63
  def to_hash
75
64
  end
@@ -4,7 +4,7 @@ module Cadenya
4
4
 
5
5
  module Agents
6
6
  type agent_variation_spec_progressive_discovery =
7
- { hints: ::Array[String], max_tools: Integer, rerank_threshold: Float }
7
+ { hints: ::Array[String], max_tools: Integer }
8
8
 
9
9
  class AgentVariationSpecProgressiveDiscovery < Cadenya::Internal::Type::BaseModel
10
10
  attr_reader hints: ::Array[String]?
@@ -15,21 +15,9 @@ module Cadenya
15
15
 
16
16
  def max_tools=: (Integer) -> Integer
17
17
 
18
- attr_reader rerank_threshold: Float?
18
+ def initialize: (?hints: ::Array[String], ?max_tools: Integer) -> void
19
19
 
20
- def rerank_threshold=: (Float) -> Float
21
-
22
- def initialize: (
23
- ?hints: ::Array[String],
24
- ?max_tools: Integer,
25
- ?rerank_threshold: Float
26
- ) -> void
27
-
28
- def to_hash: -> {
29
- hints: ::Array[String],
30
- max_tools: Integer,
31
- rerank_threshold: Float
32
- }
20
+ def to_hash: -> { hints: ::Array[String], max_tools: Integer }
33
21
  end
34
22
  end
35
23
  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.37.0
4
+ version: 0.38.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cadenya