cadenya 0.38.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 +8 -0
- data/README.md +1 -1
- data/lib/cadenya/models/context_lengths.rb +19 -17
- data/lib/cadenya/version.rb +1 -1
- data/rbi/cadenya/models/context_lengths.rbi +22 -18
- 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,13 @@
|
|
|
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
|
+
|
|
3
11
|
## 0.38.0 (2026-07-08)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.37.0...v0.38.0](https://github.com/cadenya/cadenya-ruby/compare/v0.37.0...v0.38.0)
|
data/README.md
CHANGED
|
@@ -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
|
@@ -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
|