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 +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/cadenya/models/agents/agent_variation_spec_progressive_discovery.rb +10 -15
- data/lib/cadenya/models/context_lengths.rb +19 -17
- data/lib/cadenya/version.rb +1 -1
- data/rbi/cadenya/models/agents/agent_variation_spec_progressive_discovery.rbi +19 -30
- data/rbi/cadenya/models/context_lengths.rbi +22 -18
- data/sig/cadenya/models/agents/agent_variation_spec_progressive_discovery.rbs +3 -15
- 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: d476228cba96c8a01b39f390fd8fb398e62cea6ca8922b06f8d4192b1274098a
|
|
4
|
+
data.tar.gz: cc90ef1539b9246e99ea0f9e26b953383bb020fd25f85537445c1afbc3697105
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
@@ -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
|
-
# @!
|
|
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
|
|
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
|
-
#
|
|
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
|
-
#
|
|
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
|
-
#
|
|
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
|
-
#
|
|
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
|
-
#
|
|
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
|
-
#
|
|
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
|
-
#
|
|
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
|
-
#
|
|
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]
|
|
72
|
+
# @param assistant_messages [Integer] Character length of the chat history messages with the assistant role.
|
|
71
73
|
#
|
|
72
|
-
# @param available_tools [Integer]
|
|
74
|
+
# @param available_tools [Integer] Character length of the discoverable/available-tools appendix attached to the
|
|
73
75
|
#
|
|
74
|
-
# @param episodic_memory [Integer]
|
|
76
|
+
# @param episodic_memory [Integer] Character length of the episodic memory appendix attached to the system prompt.
|
|
75
77
|
#
|
|
76
|
-
# @param skills_memory [Integer]
|
|
78
|
+
# @param skills_memory [Integer] Character length of the skills memory appendix attached to the system prompt.
|
|
77
79
|
#
|
|
78
|
-
# @param system_prompt [Integer]
|
|
80
|
+
# @param system_prompt [Integer] Character length of the objective's base system prompt (rendered variation
|
|
79
81
|
#
|
|
80
|
-
# @param tool_definitions [Integer]
|
|
82
|
+
# @param tool_definitions [Integer] Character length of the serialized tool definitions sent with the completion
|
|
81
83
|
#
|
|
82
|
-
# @param tool_results [Integer]
|
|
84
|
+
# @param tool_results [Integer] Character length of the tool results present in the chat history.
|
|
83
85
|
#
|
|
84
|
-
# @param user_messages [Integer]
|
|
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
|
data/lib/cadenya/version.rb
CHANGED
|
@@ -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
|
-
|
|
49
|
-
|
|
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
|
-
|
|
56
|
-
#
|
|
57
|
-
#
|
|
58
|
-
#
|
|
59
|
-
|
|
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
|
-
#
|
|
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
|
-
#
|
|
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
|
-
#
|
|
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
|
-
#
|
|
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
|
-
#
|
|
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
|
-
#
|
|
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
|
-
#
|
|
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
|
-
#
|
|
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
|
-
#
|
|
67
|
+
# Character length of the chat history messages with the assistant role.
|
|
66
68
|
assistant_messages:,
|
|
67
|
-
#
|
|
69
|
+
# Character length of the discoverable/available-tools appendix attached to the
|
|
70
|
+
# system prompt.
|
|
68
71
|
available_tools:,
|
|
69
|
-
#
|
|
72
|
+
# Character length of the episodic memory appendix attached to the system prompt.
|
|
70
73
|
episodic_memory:,
|
|
71
|
-
#
|
|
74
|
+
# Character length of the skills memory appendix attached to the system prompt.
|
|
72
75
|
skills_memory:,
|
|
73
|
-
#
|
|
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
|
-
#
|
|
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
|
-
#
|
|
82
|
+
# Character length of the tool results present in the chat history.
|
|
79
83
|
tool_results:,
|
|
80
|
-
#
|
|
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
|
|
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
|
-
|
|
18
|
+
def initialize: (?hints: ::Array[String], ?max_tools: Integer) -> void
|
|
19
19
|
|
|
20
|
-
def
|
|
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
|