cadenya 1.2.0 → 1.3.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/lib/cadenya/client.rb +1 -1
- data/lib/cadenya/types.rb +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5de3120685ecaac9cb2dc5f747caa32cc32210272811934b86e66242ebaa05ed
|
|
4
|
+
data.tar.gz: d7ddc9e902bff38d9d9292c3e6525e9993f513b44a157a990d39ca4195662402
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4e26100b1ec642e14aae8ed87400f03af679f771cd2255b83da0980b4e9e9a7f846b8957591870d429042c2a7c0bae0fffbe7269dea330c60ec3c1449996d521
|
|
7
|
+
data.tar.gz: 24c3d5c36d6c1a665d29a621467921471de512123004688d7f0d2c4d67ae0ee22a5826040c610c652e45f31e1d3fffebd8a4e763af2a2957446a6fb5a9908ec3
|
data/lib/cadenya/client.rb
CHANGED
|
@@ -37,7 +37,7 @@ module Cadenya
|
|
|
37
37
|
auth_header: ["Authorization", "Bearer #{api_key}"],
|
|
38
38
|
max_retries: max_retries,
|
|
39
39
|
defaults: defaults,
|
|
40
|
-
user_agent: "cadenya-ruby/1.
|
|
40
|
+
user_agent: "cadenya-ruby/1.3.0 (api 1.0)",
|
|
41
41
|
connection: connection,
|
|
42
42
|
stream_transport: stream_transport
|
|
43
43
|
)
|
data/lib/cadenya/types.rb
CHANGED
|
@@ -724,9 +724,9 @@ module Cadenya
|
|
|
724
724
|
end
|
|
725
725
|
|
|
726
726
|
class AgentVariationInfo
|
|
727
|
-
attr_reader :tool_count, :tool_set_count, :sub_agent_count, :created_by, :model, :score, :feedback_count, :memory_layer_count, :effective_tool_count
|
|
727
|
+
attr_reader :tool_count, :tool_set_count, :sub_agent_count, :created_by, :model, :score, :feedback_count, :memory_layer_count, :effective_tool_count, :assignment_metadata
|
|
728
728
|
|
|
729
|
-
def initialize(tool_count: nil, tool_set_count: nil, sub_agent_count: nil, created_by: nil, model: nil, score: nil, feedback_count: nil, memory_layer_count: nil, effective_tool_count: nil)
|
|
729
|
+
def initialize(tool_count: nil, tool_set_count: nil, sub_agent_count: nil, created_by: nil, model: nil, score: nil, feedback_count: nil, memory_layer_count: nil, effective_tool_count: nil, assignment_metadata: nil)
|
|
730
730
|
@tool_count = tool_count
|
|
731
731
|
@tool_set_count = tool_set_count
|
|
732
732
|
@sub_agent_count = sub_agent_count
|
|
@@ -736,6 +736,7 @@ module Cadenya
|
|
|
736
736
|
@feedback_count = feedback_count
|
|
737
737
|
@memory_layer_count = memory_layer_count
|
|
738
738
|
@effective_tool_count = effective_tool_count
|
|
739
|
+
@assignment_metadata = assignment_metadata
|
|
739
740
|
end
|
|
740
741
|
|
|
741
742
|
def self.from_json(data)
|
|
@@ -749,6 +750,7 @@ module Cadenya
|
|
|
749
750
|
feedback_count: data["feedbackCount"],
|
|
750
751
|
memory_layer_count: data["memoryLayerCount"],
|
|
751
752
|
effective_tool_count: data["effectiveToolCount"],
|
|
753
|
+
assignment_metadata: data["assignmentMetadata"].nil? ? nil : (data["assignmentMetadata"]).transform_values { |v| Types::BareMetadata.from_json(v) },
|
|
752
754
|
)
|
|
753
755
|
end
|
|
754
756
|
|
|
@@ -763,6 +765,7 @@ module Cadenya
|
|
|
763
765
|
feedback_count: Util.plain(@feedback_count),
|
|
764
766
|
memory_layer_count: Util.plain(@memory_layer_count),
|
|
765
767
|
effective_tool_count: Util.plain(@effective_tool_count),
|
|
768
|
+
assignment_metadata: Util.plain(@assignment_metadata),
|
|
766
769
|
}.reject { |_k, v| v.nil? }
|
|
767
770
|
end
|
|
768
771
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cadenya
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cadenya
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|