cadenya 0.12.0 → 0.14.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/client.rb +2 -2
- data/lib/cadenya/models/agent_spec.rb +23 -1
- data/lib/cadenya/models/agents/agent_variation_info.rb +2 -1
- data/lib/cadenya/models/agents/agent_variation_spec.rb +1 -22
- data/lib/cadenya/models/agents/variation_add_memory_layer_params.rb +3 -2
- data/lib/cadenya/models/agents/variation_memory_layer_assignment.rb +7 -6
- data/lib/cadenya/models/bulk_workspace_resources/bulk_workspace_apply_result_data_memory_entry_outcome.rb +2 -2
- data/lib/cadenya/models/bulk_workspace_resources/bulk_workspace_apply_result_data_memory_layer_outcome.rb +4 -4
- data/lib/cadenya/models/bulk_workspace_resources/bulk_workspace_apply_result_data_variation_memory_layer_outcome.rb +2 -2
- data/lib/cadenya/models/memory_layer.rb +4 -4
- data/lib/cadenya/models/memory_layer_list_params.rb +22 -1
- data/lib/cadenya/models/memory_layer_spec.rb +20 -2
- data/lib/cadenya/models/memory_layers/memory_entry.rb +2 -2
- data/lib/cadenya/models/memory_read.rb +2 -2
- data/lib/cadenya/models/memory_reference.rb +6 -5
- data/lib/cadenya/models/objective.rb +51 -16
- data/lib/cadenya/models/objective_create_params.rb +41 -16
- data/lib/cadenya/models/objective_event_data.rb +2 -2
- data/lib/cadenya/models/objective_info.rb +11 -9
- data/lib/cadenya/resources/agents/variations.rb +2 -2
- data/lib/cadenya/resources/memory_layers/entries.rb +2 -2
- data/lib/cadenya/resources/memory_layers.rb +14 -5
- data/lib/cadenya/resources/objectives.rb +4 -2
- data/lib/cadenya/version.rb +1 -1
- data/rbi/cadenya/client.rbi +2 -2
- data/rbi/cadenya/models/agent_spec.rbi +34 -0
- data/rbi/cadenya/models/agents/agent_variation_info.rbi +4 -2
- data/rbi/cadenya/models/agents/agent_variation_spec.rbi +0 -32
- data/rbi/cadenya/models/agents/variation_add_memory_layer_params.rbi +4 -2
- data/rbi/cadenya/models/agents/variation_memory_layer_assignment.rbi +10 -8
- data/rbi/cadenya/models/bulk_workspace_resources/bulk_workspace_apply_result_data_memory_entry_outcome.rbi +4 -4
- data/rbi/cadenya/models/bulk_workspace_resources/bulk_workspace_apply_result_data_memory_layer_outcome.rbi +8 -8
- data/rbi/cadenya/models/bulk_workspace_resources/bulk_workspace_apply_result_data_variation_memory_layer_outcome.rbi +4 -4
- data/rbi/cadenya/models/memory_layer.rbi +4 -4
- data/rbi/cadenya/models/memory_layer_list_params.rbi +26 -0
- data/rbi/cadenya/models/memory_layer_spec.rbi +28 -2
- data/rbi/cadenya/models/memory_layers/memory_entry.rbi +2 -2
- data/rbi/cadenya/models/memory_read.rbi +2 -2
- data/rbi/cadenya/models/memory_reference.rbi +9 -7
- data/rbi/cadenya/models/objective.rbi +81 -28
- data/rbi/cadenya/models/objective_create_params.rbi +72 -28
- data/rbi/cadenya/models/objective_event_data.rbi +4 -4
- data/rbi/cadenya/models/objective_info.rbi +16 -12
- data/rbi/cadenya/resources/agents/variations.rbi +3 -3
- data/rbi/cadenya/resources/memory_layers/entries.rbi +2 -2
- data/rbi/cadenya/resources/memory_layers.rbi +12 -4
- data/rbi/cadenya/resources/objectives.rbi +15 -13
- data/sig/cadenya/models/agent_spec.rbs +14 -0
- data/sig/cadenya/models/agents/agent_variation_spec.rbs +0 -14
- data/sig/cadenya/models/memory_layer_list_params.rbs +14 -0
- data/sig/cadenya/models/memory_layer_spec.rbs +14 -0
- data/sig/cadenya/models/objective.rbs +30 -5
- data/sig/cadenya/models/objective_create_params.rbs +26 -5
- data/sig/cadenya/models/objective_info.rbs +4 -4
- data/sig/cadenya/resources/memory_layers.rbs +2 -0
- data/sig/cadenya/resources/objectives.rbs +2 -1
- metadata +2 -2
|
@@ -8,8 +8,6 @@ module Cadenya
|
|
|
8
8
|
compaction_config: Cadenya::Agents::AgentVariationSpecCompactionConfig,
|
|
9
9
|
constraints: Cadenya::Agents::AgentVariationSpecConstraints,
|
|
10
10
|
description: String,
|
|
11
|
-
enable_episodic_memory: bool,
|
|
12
|
-
episodic_memory_ttl: Integer,
|
|
13
11
|
model_config: Cadenya::Agents::AgentVariationSpecModelConfig,
|
|
14
12
|
progressive_discovery: Cadenya::Agents::AgentVariationSpecProgressiveDiscovery,
|
|
15
13
|
system_prompt_template: String,
|
|
@@ -34,14 +32,6 @@ module Cadenya
|
|
|
34
32
|
|
|
35
33
|
def description=: (String) -> String
|
|
36
34
|
|
|
37
|
-
attr_reader enable_episodic_memory: bool?
|
|
38
|
-
|
|
39
|
-
def enable_episodic_memory=: (bool) -> bool
|
|
40
|
-
|
|
41
|
-
attr_reader episodic_memory_ttl: Integer?
|
|
42
|
-
|
|
43
|
-
def episodic_memory_ttl=: (Integer) -> Integer
|
|
44
|
-
|
|
45
35
|
attr_reader model_config: Cadenya::Agents::AgentVariationSpecModelConfig?
|
|
46
36
|
|
|
47
37
|
def model_config=: (
|
|
@@ -70,8 +60,6 @@ module Cadenya
|
|
|
70
60
|
?compaction_config: Cadenya::Agents::AgentVariationSpecCompactionConfig,
|
|
71
61
|
?constraints: Cadenya::Agents::AgentVariationSpecConstraints,
|
|
72
62
|
?description: String,
|
|
73
|
-
?enable_episodic_memory: bool,
|
|
74
|
-
?episodic_memory_ttl: Integer,
|
|
75
63
|
?model_config: Cadenya::Agents::AgentVariationSpecModelConfig,
|
|
76
64
|
?progressive_discovery: Cadenya::Agents::AgentVariationSpecProgressiveDiscovery,
|
|
77
65
|
?system_prompt_template: String,
|
|
@@ -83,8 +71,6 @@ module Cadenya
|
|
|
83
71
|
compaction_config: Cadenya::Agents::AgentVariationSpecCompactionConfig,
|
|
84
72
|
constraints: Cadenya::Agents::AgentVariationSpecConstraints,
|
|
85
73
|
description: String,
|
|
86
|
-
enable_episodic_memory: bool,
|
|
87
|
-
episodic_memory_ttl: Integer,
|
|
88
74
|
model_config: Cadenya::Agents::AgentVariationSpecModelConfig,
|
|
89
75
|
progressive_discovery: Cadenya::Agents::AgentVariationSpecProgressiveDiscovery,
|
|
90
76
|
system_prompt_template: String,
|
|
@@ -3,8 +3,10 @@ module Cadenya
|
|
|
3
3
|
type memory_layer_list_params =
|
|
4
4
|
{
|
|
5
5
|
workspace_id: String,
|
|
6
|
+
agent_id: String,
|
|
6
7
|
bundle_key: String,
|
|
7
8
|
cursor: String,
|
|
9
|
+
episodic_key_prefix: String,
|
|
8
10
|
include_info: bool,
|
|
9
11
|
limit: Integer,
|
|
10
12
|
prefix: String,
|
|
@@ -20,6 +22,10 @@ module Cadenya
|
|
|
20
22
|
|
|
21
23
|
attr_accessor workspace_id: String
|
|
22
24
|
|
|
25
|
+
attr_reader agent_id: String?
|
|
26
|
+
|
|
27
|
+
def agent_id=: (String) -> String
|
|
28
|
+
|
|
23
29
|
attr_reader bundle_key: String?
|
|
24
30
|
|
|
25
31
|
def bundle_key=: (String) -> String
|
|
@@ -28,6 +34,10 @@ module Cadenya
|
|
|
28
34
|
|
|
29
35
|
def cursor=: (String) -> String
|
|
30
36
|
|
|
37
|
+
attr_reader episodic_key_prefix: String?
|
|
38
|
+
|
|
39
|
+
def episodic_key_prefix=: (String) -> String
|
|
40
|
+
|
|
31
41
|
attr_reader include_info: bool?
|
|
32
42
|
|
|
33
43
|
def include_info=: (bool) -> bool
|
|
@@ -56,8 +66,10 @@ module Cadenya
|
|
|
56
66
|
|
|
57
67
|
def initialize: (
|
|
58
68
|
workspace_id: String,
|
|
69
|
+
?agent_id: String,
|
|
59
70
|
?bundle_key: String,
|
|
60
71
|
?cursor: String,
|
|
72
|
+
?episodic_key_prefix: String,
|
|
61
73
|
?include_info: bool,
|
|
62
74
|
?limit: Integer,
|
|
63
75
|
?prefix: String,
|
|
@@ -69,8 +81,10 @@ module Cadenya
|
|
|
69
81
|
|
|
70
82
|
def to_hash: -> {
|
|
71
83
|
workspace_id: String,
|
|
84
|
+
agent_id: String,
|
|
72
85
|
bundle_key: String,
|
|
73
86
|
cursor: String,
|
|
87
|
+
episodic_key_prefix: String,
|
|
74
88
|
include_info: bool,
|
|
75
89
|
limit: Integer,
|
|
76
90
|
prefix: String,
|
|
@@ -3,7 +3,9 @@ module Cadenya
|
|
|
3
3
|
type memory_layer_spec =
|
|
4
4
|
{
|
|
5
5
|
type: Cadenya::Models::MemoryLayerSpec::type_,
|
|
6
|
+
agent_id: String,
|
|
6
7
|
description: String,
|
|
8
|
+
episodic_key: String,
|
|
7
9
|
expires_at: Time,
|
|
8
10
|
system_managed: bool
|
|
9
11
|
}
|
|
@@ -15,6 +17,14 @@ module Cadenya
|
|
|
15
17
|
|
|
16
18
|
def description=: (String) -> String
|
|
17
19
|
|
|
20
|
+
attr_reader agent_id: String?
|
|
21
|
+
|
|
22
|
+
def agent_id=: (String) -> String
|
|
23
|
+
|
|
24
|
+
attr_reader episodic_key: String?
|
|
25
|
+
|
|
26
|
+
def episodic_key=: (String) -> String
|
|
27
|
+
|
|
18
28
|
attr_reader expires_at: Time?
|
|
19
29
|
|
|
20
30
|
def expires_at=: (Time) -> Time
|
|
@@ -25,14 +35,18 @@ module Cadenya
|
|
|
25
35
|
|
|
26
36
|
def initialize: (
|
|
27
37
|
type: Cadenya::Models::MemoryLayerSpec::type_,
|
|
38
|
+
?agent_id: String,
|
|
28
39
|
?description: String,
|
|
40
|
+
?episodic_key: String,
|
|
29
41
|
?expires_at: Time,
|
|
30
42
|
?system_managed: bool
|
|
31
43
|
) -> void
|
|
32
44
|
|
|
33
45
|
def to_hash: -> {
|
|
34
46
|
type: Cadenya::Models::MemoryLayerSpec::type_,
|
|
47
|
+
agent_id: String,
|
|
35
48
|
description: String,
|
|
49
|
+
episodic_key: String,
|
|
36
50
|
expires_at: Time,
|
|
37
51
|
system_managed: bool
|
|
38
52
|
}
|
|
@@ -8,8 +8,9 @@ module Cadenya
|
|
|
8
8
|
state: Cadenya::Models::Objective::state,
|
|
9
9
|
system_prompt: String,
|
|
10
10
|
data: ::Hash[Symbol, top],
|
|
11
|
+
episodic_memory: Cadenya::Objective::EpisodicMemory,
|
|
11
12
|
info: Cadenya::ObjectiveInfo,
|
|
12
|
-
|
|
13
|
+
memory_cascade: ::Array[Cadenya::MemoryReference],
|
|
13
14
|
output: ::Hash[Symbol, top],
|
|
14
15
|
parent_objective_id: String,
|
|
15
16
|
secrets: ::Array[Cadenya::ObjectiveSecret],
|
|
@@ -22,9 +23,15 @@ module Cadenya
|
|
|
22
23
|
|
|
23
24
|
attr_accessor metadata: Cadenya::OperationMetadata
|
|
24
25
|
|
|
25
|
-
attr_reader
|
|
26
|
+
attr_reader episodic_memory: Cadenya::Objective::EpisodicMemory?
|
|
26
27
|
|
|
27
|
-
def
|
|
28
|
+
def episodic_memory=: (
|
|
29
|
+
Cadenya::Objective::EpisodicMemory
|
|
30
|
+
) -> Cadenya::Objective::EpisodicMemory
|
|
31
|
+
|
|
32
|
+
attr_reader memory_cascade: ::Array[Cadenya::MemoryReference]?
|
|
33
|
+
|
|
34
|
+
def memory_cascade=: (
|
|
28
35
|
::Array[Cadenya::MemoryReference]
|
|
29
36
|
) -> ::Array[Cadenya::MemoryReference]
|
|
30
37
|
|
|
@@ -71,8 +78,9 @@ module Cadenya
|
|
|
71
78
|
state: Cadenya::Models::Objective::state,
|
|
72
79
|
system_prompt: String,
|
|
73
80
|
?data: ::Hash[Symbol, top],
|
|
81
|
+
?episodic_memory: Cadenya::Objective::EpisodicMemory,
|
|
74
82
|
?info: Cadenya::ObjectiveInfo,
|
|
75
|
-
?
|
|
83
|
+
?memory_cascade: ::Array[Cadenya::MemoryReference],
|
|
76
84
|
?output: ::Hash[Symbol, top],
|
|
77
85
|
?parent_objective_id: String,
|
|
78
86
|
?secrets: ::Array[Cadenya::ObjectiveSecret],
|
|
@@ -87,8 +95,9 @@ module Cadenya
|
|
|
87
95
|
state: Cadenya::Models::Objective::state,
|
|
88
96
|
system_prompt: String,
|
|
89
97
|
data: ::Hash[Symbol, top],
|
|
98
|
+
episodic_memory: Cadenya::Objective::EpisodicMemory,
|
|
90
99
|
info: Cadenya::ObjectiveInfo,
|
|
91
|
-
|
|
100
|
+
memory_cascade: ::Array[Cadenya::MemoryReference],
|
|
92
101
|
output: ::Hash[Symbol, top],
|
|
93
102
|
parent_objective_id: String,
|
|
94
103
|
secrets: ::Array[Cadenya::ObjectiveSecret],
|
|
@@ -118,6 +127,22 @@ module Cadenya
|
|
|
118
127
|
|
|
119
128
|
def self?.values: -> ::Array[Cadenya::Models::Objective::state]
|
|
120
129
|
end
|
|
130
|
+
|
|
131
|
+
type episodic_memory = { key: String, memory_layer_id: String }
|
|
132
|
+
|
|
133
|
+
class EpisodicMemory < Cadenya::Internal::Type::BaseModel
|
|
134
|
+
attr_reader key: String?
|
|
135
|
+
|
|
136
|
+
def key=: (String) -> String
|
|
137
|
+
|
|
138
|
+
attr_reader memory_layer_id: String?
|
|
139
|
+
|
|
140
|
+
def memory_layer_id=: (String) -> String
|
|
141
|
+
|
|
142
|
+
def initialize: (?key: String, ?memory_layer_id: String) -> void
|
|
143
|
+
|
|
144
|
+
def to_hash: -> { key: String, memory_layer_id: String }
|
|
145
|
+
end
|
|
121
146
|
end
|
|
122
147
|
end
|
|
123
148
|
end
|
|
@@ -5,8 +5,9 @@ module Cadenya
|
|
|
5
5
|
workspace_id: String,
|
|
6
6
|
agent_id: String,
|
|
7
7
|
data: ::Hash[Symbol, top],
|
|
8
|
+
episodic_memory: Cadenya::ObjectiveCreateParams::EpisodicMemory,
|
|
8
9
|
initial_message: String,
|
|
9
|
-
|
|
10
|
+
memory_cascade: ::Array[Cadenya::MemoryReference],
|
|
10
11
|
metadata: Cadenya::CreateOperationMetadata,
|
|
11
12
|
secrets: ::Array[Cadenya::ObjectiveCreateParams::Secret],
|
|
12
13
|
user_data: ::Hash[Symbol, top],
|
|
@@ -24,13 +25,19 @@ module Cadenya
|
|
|
24
25
|
|
|
25
26
|
attr_accessor data: ::Hash[Symbol, top]
|
|
26
27
|
|
|
28
|
+
attr_reader episodic_memory: Cadenya::ObjectiveCreateParams::EpisodicMemory?
|
|
29
|
+
|
|
30
|
+
def episodic_memory=: (
|
|
31
|
+
Cadenya::ObjectiveCreateParams::EpisodicMemory
|
|
32
|
+
) -> Cadenya::ObjectiveCreateParams::EpisodicMemory
|
|
33
|
+
|
|
27
34
|
attr_reader initial_message: String?
|
|
28
35
|
|
|
29
36
|
def initial_message=: (String) -> String
|
|
30
37
|
|
|
31
|
-
attr_reader
|
|
38
|
+
attr_reader memory_cascade: ::Array[Cadenya::MemoryReference]?
|
|
32
39
|
|
|
33
|
-
def
|
|
40
|
+
def memory_cascade=: (
|
|
34
41
|
::Array[Cadenya::MemoryReference]
|
|
35
42
|
) -> ::Array[Cadenya::MemoryReference]
|
|
36
43
|
|
|
@@ -58,8 +65,9 @@ module Cadenya
|
|
|
58
65
|
workspace_id: String,
|
|
59
66
|
agent_id: String,
|
|
60
67
|
data: ::Hash[Symbol, top],
|
|
68
|
+
?episodic_memory: Cadenya::ObjectiveCreateParams::EpisodicMemory,
|
|
61
69
|
?initial_message: String,
|
|
62
|
-
?
|
|
70
|
+
?memory_cascade: ::Array[Cadenya::MemoryReference],
|
|
63
71
|
?metadata: Cadenya::CreateOperationMetadata,
|
|
64
72
|
?secrets: ::Array[Cadenya::ObjectiveCreateParams::Secret],
|
|
65
73
|
?user_data: ::Hash[Symbol, top],
|
|
@@ -71,8 +79,9 @@ module Cadenya
|
|
|
71
79
|
workspace_id: String,
|
|
72
80
|
agent_id: String,
|
|
73
81
|
data: ::Hash[Symbol, top],
|
|
82
|
+
episodic_memory: Cadenya::ObjectiveCreateParams::EpisodicMemory,
|
|
74
83
|
initial_message: String,
|
|
75
|
-
|
|
84
|
+
memory_cascade: ::Array[Cadenya::MemoryReference],
|
|
76
85
|
metadata: Cadenya::CreateOperationMetadata,
|
|
77
86
|
secrets: ::Array[Cadenya::ObjectiveCreateParams::Secret],
|
|
78
87
|
user_data: ::Hash[Symbol, top],
|
|
@@ -80,6 +89,18 @@ module Cadenya
|
|
|
80
89
|
request_options: Cadenya::RequestOptions
|
|
81
90
|
}
|
|
82
91
|
|
|
92
|
+
type episodic_memory = { key: String, memory_layer_id: String }
|
|
93
|
+
|
|
94
|
+
class EpisodicMemory < Cadenya::Internal::Type::BaseModel
|
|
95
|
+
attr_reader key: String?
|
|
96
|
+
|
|
97
|
+
def key=: (String) -> String
|
|
98
|
+
|
|
99
|
+
def initialize: (?key: String) -> void
|
|
100
|
+
|
|
101
|
+
def to_hash: -> { key: String, memory_layer_id: String }
|
|
102
|
+
end
|
|
103
|
+
|
|
83
104
|
type secret = { name: String, value: String }
|
|
84
105
|
|
|
85
106
|
class Secret < Cadenya::Internal::Type::BaseModel
|
|
@@ -6,7 +6,7 @@ module Cadenya
|
|
|
6
6
|
agent_variation: Cadenya::ResourceMetadata,
|
|
7
7
|
created_by: Cadenya::Profile,
|
|
8
8
|
current_context_window_id: String,
|
|
9
|
-
|
|
9
|
+
effective_memory_cascade: ::Array[Cadenya::MemoryReference],
|
|
10
10
|
total_context_windows: Integer,
|
|
11
11
|
total_events: Integer,
|
|
12
12
|
total_input_tokens: Integer,
|
|
@@ -24,7 +24,7 @@ module Cadenya
|
|
|
24
24
|
|
|
25
25
|
attr_accessor current_context_window_id: String
|
|
26
26
|
|
|
27
|
-
attr_accessor
|
|
27
|
+
attr_accessor effective_memory_cascade: ::Array[Cadenya::MemoryReference]
|
|
28
28
|
|
|
29
29
|
attr_accessor total_context_windows: Integer
|
|
30
30
|
|
|
@@ -43,7 +43,7 @@ module Cadenya
|
|
|
43
43
|
agent_variation: Cadenya::ResourceMetadata,
|
|
44
44
|
created_by: Cadenya::Profile,
|
|
45
45
|
current_context_window_id: String,
|
|
46
|
-
|
|
46
|
+
effective_memory_cascade: ::Array[Cadenya::MemoryReference],
|
|
47
47
|
total_context_windows: Integer,
|
|
48
48
|
total_events: Integer,
|
|
49
49
|
total_input_tokens: Integer,
|
|
@@ -57,7 +57,7 @@ module Cadenya
|
|
|
57
57
|
agent_variation: Cadenya::ResourceMetadata,
|
|
58
58
|
created_by: Cadenya::Profile,
|
|
59
59
|
current_context_window_id: String,
|
|
60
|
-
|
|
60
|
+
effective_memory_cascade: ::Array[Cadenya::MemoryReference],
|
|
61
61
|
total_context_windows: Integer,
|
|
62
62
|
total_events: Integer,
|
|
63
63
|
total_input_tokens: Integer,
|
|
@@ -13,8 +13,9 @@ module Cadenya
|
|
|
13
13
|
String workspace_id,
|
|
14
14
|
agent_id: String,
|
|
15
15
|
data: ::Hash[Symbol, top],
|
|
16
|
+
?episodic_memory: Cadenya::ObjectiveCreateParams::EpisodicMemory,
|
|
16
17
|
?initial_message: String,
|
|
17
|
-
?
|
|
18
|
+
?memory_cascade: ::Array[Cadenya::MemoryReference],
|
|
18
19
|
?metadata: Cadenya::CreateOperationMetadata,
|
|
19
20
|
?secrets: ::Array[Cadenya::ObjectiveCreateParams::Secret],
|
|
20
21
|
?user_data: ::Hash[Symbol, top],
|
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: 0.
|
|
4
|
+
version: 0.14.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-06-
|
|
11
|
+
date: 2026-06-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|