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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35043e85b3a216b685fa3c874d14c0d68d4a2a395c59fa9c07279fe282864251
4
- data.tar.gz: 9c4363716132147b993118bbba5365bab99fe34325212d6be366a54d4cccb5e3
3
+ metadata.gz: d476228cba96c8a01b39f390fd8fb398e62cea6ca8922b06f8d4192b1274098a
4
+ data.tar.gz: cc90ef1539b9246e99ea0f9e26b953383bb020fd25f85537445c1afbc3697105
5
5
  SHA512:
6
- metadata.gz: 7731c1a1b32b491f7e72a5a7a4e7ed0ba41d8f4db4e7a8c7b5bb6086d7d5e7dcf2e343b15a7dfdb13a635b93ee9f5991fb3793fef28ea39c5127fc63840868cf
7
- data.tar.gz: 0eee8df82d5d8926f5d439e986c9929286e26bb8d6041d91de0bc75d7eb9e530f5a1fa936c9db2eff2bc4818eacf1aaf11153bed57bf5844368c74ba11c345b0
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
@@ -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.38.0"
20
+ gem "cadenya", "~> 0.39.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -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.38.0"
4
+ VERSION = "0.39.0"
5
5
  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
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.38.0
4
+ version: 0.39.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cadenya