cadenya 0.37.0 → 0.39.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: d476228cba96c8a01b39f390fd8fb398e62cea6ca8922b06f8d4192b1274098a
4
+ data.tar.gz: cc90ef1539b9246e99ea0f9e26b953383bb020fd25f85537445c1afbc3697105
5
5
  SHA512:
6
- metadata.gz: abe085b7833b0c4b8f1b5cf109345b9c70666edb66b9c403b411c9edb6033e3a829ed7614be2ebd7f5778b504d5f8e445ab94b046ff864d8d376d6ba49025a9a
7
- data.tar.gz: 87a3a04f0c8ec732fa3c215306181a8729b6bf2972d0924edc52c559db0e75d4efa91e98e4c3477e37d36674efb764c757593d994bd19a178bbff16cdcae066f
6
+ metadata.gz: 86308ad83b4a82f733671c19859766677a70bd7ddca427bacdda95c52709596eae0fa176d2418eaa0c219b87c489573941c01fad5391ef959b052dfa87123b6c
7
+ data.tar.gz: 93c02bb40ac05cb76797eb36b639da1a44d5e4899d7b6e925741cec8438625b5d00fda089b6c449eebe792df1061f70dc6f02ae2133d01d04aa3053053ae52ec
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.39.0 (2026-07-08)
4
+
5
+ Full Changelog: [v0.38.0...v0.39.0](https://github.com/cadenya/cadenya-ruby/compare/v0.38.0...v0.39.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([e6ab66f](https://github.com/cadenya/cadenya-ruby/commit/e6ab66fffe14ee4c081fddbf46922dbbdadbd981))
10
+
11
+ ## 0.38.0 (2026-07-08)
12
+
13
+ Full Changelog: [v0.37.0...v0.38.0](https://github.com/cadenya/cadenya-ruby/compare/v0.37.0...v0.38.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([55059de](https://github.com/cadenya/cadenya-ruby/commit/55059deb9a0e57c8056d9de2545d885216f2f7b3))
18
+
3
19
  ## 0.37.0 (2026-07-08)
4
20
 
5
21
  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.39.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
 
@@ -5,50 +5,52 @@ module Cadenya
5
5
  class ContextLengths < Cadenya::Internal::Type::BaseModel
6
6
  response_only do
7
7
  # @!attribute assistant_messages
8
- # Chat history messages with the assistant role.
8
+ # Character length of the chat history messages with the assistant role.
9
9
  #
10
10
  # @return [Integer]
11
11
  required :assistant_messages, Integer, api_name: :assistantMessages
12
12
 
13
13
  # @!attribute available_tools
14
- # The discoverable/available-tools appendix attached to the system prompt.
14
+ # Character length of the discoverable/available-tools appendix attached to the
15
+ # system prompt.
15
16
  #
16
17
  # @return [Integer]
17
18
  required :available_tools, Integer, api_name: :availableTools
18
19
 
19
20
  # @!attribute episodic_memory
20
- # The episodic memory appendix attached to the system prompt.
21
+ # Character length of the episodic memory appendix attached to the system prompt.
21
22
  #
22
23
  # @return [Integer]
23
24
  required :episodic_memory, Integer, api_name: :episodicMemory
24
25
 
25
26
  # @!attribute skills_memory
26
- # The skills memory appendix attached to the system prompt.
27
+ # Character length of the skills memory appendix attached to the system prompt.
27
28
  #
28
29
  # @return [Integer]
29
30
  required :skills_memory, Integer, api_name: :skillsMemory
30
31
 
31
32
  # @!attribute system_prompt
32
- # The objective's base system prompt (rendered variation template).
33
+ # Character length of the objective's base system prompt (rendered variation
34
+ # template). Not tokens -- see the message comment.
33
35
  #
34
36
  # @return [Integer]
35
37
  required :system_prompt, Integer, api_name: :systemPrompt
36
38
 
37
39
  # @!attribute tool_definitions
38
- # Serialized tool definitions sent with the completion request (names,
39
- # descriptions, and JSON-schema parameters).
40
+ # Character length of the serialized tool definitions sent with the completion
41
+ # request (names, descriptions, and JSON-schema parameters).
40
42
  #
41
43
  # @return [Integer]
42
44
  required :tool_definitions, Integer, api_name: :toolDefinitions
43
45
 
44
46
  # @!attribute tool_results
45
- # Tool results present in the chat history.
47
+ # Character length of the tool results present in the chat history.
46
48
  #
47
49
  # @return [Integer]
48
50
  required :tool_results, Integer, api_name: :toolResults
49
51
 
50
52
  # @!attribute user_messages
51
- # Chat history messages with the user role.
53
+ # Character length of the chat history messages with the user role.
52
54
  #
53
55
  # @return [Integer]
54
56
  required :user_messages, Integer, api_name: :userMessages
@@ -67,21 +69,21 @@ module Cadenya
67
69
  # New components are added as new fields — wire-compatible; absent components read
68
70
  # as 0.
69
71
  #
70
- # @param assistant_messages [Integer] Chat history messages with the assistant role.
72
+ # @param assistant_messages [Integer] Character length of the chat history messages with the assistant role.
71
73
  #
72
- # @param available_tools [Integer] The discoverable/available-tools appendix attached to the system prompt.
74
+ # @param available_tools [Integer] Character length of the discoverable/available-tools appendix attached to the
73
75
  #
74
- # @param episodic_memory [Integer] The episodic memory appendix attached to the system prompt.
76
+ # @param episodic_memory [Integer] Character length of the episodic memory appendix attached to the system prompt.
75
77
  #
76
- # @param skills_memory [Integer] The skills memory appendix attached to the system prompt.
78
+ # @param skills_memory [Integer] Character length of the skills memory appendix attached to the system prompt.
77
79
  #
78
- # @param system_prompt [Integer] The objective's base system prompt (rendered variation template).
80
+ # @param system_prompt [Integer] Character length of the objective's base system prompt (rendered variation
79
81
  #
80
- # @param tool_definitions [Integer] Serialized tool definitions sent with the completion request
82
+ # @param tool_definitions [Integer] Character length of the serialized tool definitions sent with the completion
81
83
  #
82
- # @param tool_results [Integer] Tool results present in the chat history.
84
+ # @param tool_results [Integer] Character length of the tool results present in the chat history.
83
85
  #
84
- # @param user_messages [Integer] Chat history messages with the user role.
86
+ # @param user_messages [Integer] Character length of the chat history messages with the user role.
85
87
  end
86
88
  end
87
89
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cadenya
4
- VERSION = "0.37.0"
4
+ VERSION = "0.39.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
@@ -8,36 +8,38 @@ module Cadenya
8
8
  T.any(Cadenya::ContextLengths, Cadenya::Internal::AnyHash)
9
9
  end
10
10
 
11
- # Chat history messages with the assistant role.
11
+ # Character length of the chat history messages with the assistant role.
12
12
  sig { returns(Integer) }
13
13
  attr_accessor :assistant_messages
14
14
 
15
- # The discoverable/available-tools appendix attached to the system prompt.
15
+ # Character length of the discoverable/available-tools appendix attached to the
16
+ # system prompt.
16
17
  sig { returns(Integer) }
17
18
  attr_accessor :available_tools
18
19
 
19
- # The episodic memory appendix attached to the system prompt.
20
+ # Character length of the episodic memory appendix attached to the system prompt.
20
21
  sig { returns(Integer) }
21
22
  attr_accessor :episodic_memory
22
23
 
23
- # The skills memory appendix attached to the system prompt.
24
+ # Character length of the skills memory appendix attached to the system prompt.
24
25
  sig { returns(Integer) }
25
26
  attr_accessor :skills_memory
26
27
 
27
- # The objective's base system prompt (rendered variation template).
28
+ # Character length of the objective's base system prompt (rendered variation
29
+ # template). Not tokens -- see the message comment.
28
30
  sig { returns(Integer) }
29
31
  attr_accessor :system_prompt
30
32
 
31
- # Serialized tool definitions sent with the completion request (names,
32
- # descriptions, and JSON-schema parameters).
33
+ # Character length of the serialized tool definitions sent with the completion
34
+ # request (names, descriptions, and JSON-schema parameters).
33
35
  sig { returns(Integer) }
34
36
  attr_accessor :tool_definitions
35
37
 
36
- # Tool results present in the chat history.
38
+ # Character length of the tool results present in the chat history.
37
39
  sig { returns(Integer) }
38
40
  attr_accessor :tool_results
39
41
 
40
- # Chat history messages with the user role.
42
+ # Character length of the chat history messages with the user role.
41
43
  sig { returns(Integer) }
42
44
  attr_accessor :user_messages
43
45
 
@@ -62,22 +64,24 @@ module Cadenya
62
64
  ).returns(T.attached_class)
63
65
  end
64
66
  def self.new(
65
- # Chat history messages with the assistant role.
67
+ # Character length of the chat history messages with the assistant role.
66
68
  assistant_messages:,
67
- # The discoverable/available-tools appendix attached to the system prompt.
69
+ # Character length of the discoverable/available-tools appendix attached to the
70
+ # system prompt.
68
71
  available_tools:,
69
- # The episodic memory appendix attached to the system prompt.
72
+ # Character length of the episodic memory appendix attached to the system prompt.
70
73
  episodic_memory:,
71
- # The skills memory appendix attached to the system prompt.
74
+ # Character length of the skills memory appendix attached to the system prompt.
72
75
  skills_memory:,
73
- # The objective's base system prompt (rendered variation template).
76
+ # Character length of the objective's base system prompt (rendered variation
77
+ # template). Not tokens -- see the message comment.
74
78
  system_prompt:,
75
- # Serialized tool definitions sent with the completion request (names,
76
- # descriptions, and JSON-schema parameters).
79
+ # Character length of the serialized tool definitions sent with the completion
80
+ # request (names, descriptions, and JSON-schema parameters).
77
81
  tool_definitions:,
78
- # Tool results present in the chat history.
82
+ # Character length of the tool results present in the chat history.
79
83
  tool_results:,
80
- # Chat history messages with the user role.
84
+ # Character length of the chat history messages with the user role.
81
85
  user_messages:
82
86
  )
83
87
  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.39.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cadenya