cadenya 0.27.0 → 0.28.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/agent_spec.rb +16 -15
- data/lib/cadenya/models/agents/agent_schedule_spec.rb +21 -20
- data/lib/cadenya/models/agents/agent_variation_spec.rb +16 -14
- data/lib/cadenya/models/objective.rb +18 -16
- data/lib/cadenya/models/objective_create_params.rb +28 -25
- data/lib/cadenya/resources/objectives.rb +5 -5
- data/lib/cadenya/version.rb +1 -1
- data/rbi/cadenya/models/agent_spec.rbi +23 -19
- data/rbi/cadenya/models/agents/agent_schedule_spec.rbi +38 -36
- data/rbi/cadenya/models/agents/agent_variation_spec.rbi +25 -21
- data/rbi/cadenya/models/objective.rbi +24 -24
- data/rbi/cadenya/models/objective_create_params.rbi +39 -37
- data/rbi/cadenya/resources/objectives.rbi +16 -15
- data/sig/cadenya/models/agent_spec.rbs +9 -7
- data/sig/cadenya/models/agents/agent_schedule_spec.rbs +15 -15
- data/sig/cadenya/models/agents/agent_variation_spec.rbs +7 -7
- data/sig/cadenya/models/objective.rbs +14 -14
- data/sig/cadenya/models/objective_create_params.rbs +16 -16
- data/sig/cadenya/resources/objectives.rbs +3 -3
- metadata +2 -2
|
@@ -6,23 +6,23 @@ module Cadenya
|
|
|
6
6
|
type agent_schedule_spec =
|
|
7
7
|
{
|
|
8
8
|
schedule: Cadenya::Agents::AgentScheduleSpecSchedule,
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
first_user_message: String,
|
|
10
|
+
first_user_message_data: top,
|
|
11
11
|
overlap_policy: Cadenya::Models::Agents::AgentScheduleSpec::overlap_policy,
|
|
12
|
-
|
|
12
|
+
system_prompt_data: top,
|
|
13
13
|
variation_id: String
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
class AgentScheduleSpec < Cadenya::Internal::Type::BaseModel
|
|
17
17
|
attr_accessor schedule: Cadenya::Agents::AgentScheduleSpecSchedule
|
|
18
18
|
|
|
19
|
-
attr_reader
|
|
19
|
+
attr_reader first_user_message: String?
|
|
20
20
|
|
|
21
|
-
def
|
|
21
|
+
def first_user_message=: (String) -> String
|
|
22
22
|
|
|
23
|
-
attr_reader
|
|
23
|
+
attr_reader first_user_message_data: top?
|
|
24
24
|
|
|
25
|
-
def
|
|
25
|
+
def first_user_message_data=: (top) -> top
|
|
26
26
|
|
|
27
27
|
attr_reader overlap_policy: Cadenya::Models::Agents::AgentScheduleSpec::overlap_policy?
|
|
28
28
|
|
|
@@ -30,9 +30,9 @@ module Cadenya
|
|
|
30
30
|
Cadenya::Models::Agents::AgentScheduleSpec::overlap_policy
|
|
31
31
|
) -> Cadenya::Models::Agents::AgentScheduleSpec::overlap_policy
|
|
32
32
|
|
|
33
|
-
attr_reader
|
|
33
|
+
attr_reader system_prompt_data: top?
|
|
34
34
|
|
|
35
|
-
def
|
|
35
|
+
def system_prompt_data=: (top) -> top
|
|
36
36
|
|
|
37
37
|
attr_reader variation_id: String?
|
|
38
38
|
|
|
@@ -40,19 +40,19 @@ module Cadenya
|
|
|
40
40
|
|
|
41
41
|
def initialize: (
|
|
42
42
|
schedule: Cadenya::Agents::AgentScheduleSpecSchedule,
|
|
43
|
-
?
|
|
44
|
-
?
|
|
43
|
+
?first_user_message: String,
|
|
44
|
+
?first_user_message_data: top,
|
|
45
45
|
?overlap_policy: Cadenya::Models::Agents::AgentScheduleSpec::overlap_policy,
|
|
46
|
-
?
|
|
46
|
+
?system_prompt_data: top,
|
|
47
47
|
?variation_id: String
|
|
48
48
|
) -> void
|
|
49
49
|
|
|
50
50
|
def to_hash: -> {
|
|
51
51
|
schedule: Cadenya::Agents::AgentScheduleSpecSchedule,
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
first_user_message: String,
|
|
53
|
+
first_user_message_data: top,
|
|
54
54
|
overlap_policy: Cadenya::Models::Agents::AgentScheduleSpec::overlap_policy,
|
|
55
|
-
|
|
55
|
+
system_prompt_data: top,
|
|
56
56
|
variation_id: String
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -8,10 +8,10 @@ module Cadenya
|
|
|
8
8
|
compaction_config: Cadenya::Agents::AgentVariationSpecCompactionConfig,
|
|
9
9
|
constraints: Cadenya::Agents::AgentVariationSpecConstraints,
|
|
10
10
|
description: String,
|
|
11
|
+
first_user_message_template: String,
|
|
11
12
|
model_config: Cadenya::Agents::AgentVariationSpecModelConfig,
|
|
12
13
|
progressive_discovery: Cadenya::Agents::AgentVariationSpecProgressiveDiscovery,
|
|
13
14
|
system_prompt_template: String,
|
|
14
|
-
user_message_template: String,
|
|
15
15
|
weight: Integer
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -32,6 +32,10 @@ module Cadenya
|
|
|
32
32
|
|
|
33
33
|
def description=: (String) -> String
|
|
34
34
|
|
|
35
|
+
attr_reader first_user_message_template: String?
|
|
36
|
+
|
|
37
|
+
def first_user_message_template=: (String) -> String
|
|
38
|
+
|
|
35
39
|
attr_reader model_config: Cadenya::Agents::AgentVariationSpecModelConfig?
|
|
36
40
|
|
|
37
41
|
def model_config=: (
|
|
@@ -48,10 +52,6 @@ module Cadenya
|
|
|
48
52
|
|
|
49
53
|
def system_prompt_template=: (String) -> String
|
|
50
54
|
|
|
51
|
-
attr_reader user_message_template: String?
|
|
52
|
-
|
|
53
|
-
def user_message_template=: (String) -> String
|
|
54
|
-
|
|
55
55
|
attr_reader weight: Integer?
|
|
56
56
|
|
|
57
57
|
def weight=: (Integer) -> Integer
|
|
@@ -60,10 +60,10 @@ module Cadenya
|
|
|
60
60
|
?compaction_config: Cadenya::Agents::AgentVariationSpecCompactionConfig,
|
|
61
61
|
?constraints: Cadenya::Agents::AgentVariationSpecConstraints,
|
|
62
62
|
?description: String,
|
|
63
|
+
?first_user_message_template: String,
|
|
63
64
|
?model_config: Cadenya::Agents::AgentVariationSpecModelConfig,
|
|
64
65
|
?progressive_discovery: Cadenya::Agents::AgentVariationSpecProgressiveDiscovery,
|
|
65
66
|
?system_prompt_template: String,
|
|
66
|
-
?user_message_template: String,
|
|
67
67
|
?weight: Integer
|
|
68
68
|
) -> void
|
|
69
69
|
|
|
@@ -71,10 +71,10 @@ module Cadenya
|
|
|
71
71
|
compaction_config: Cadenya::Agents::AgentVariationSpecCompactionConfig,
|
|
72
72
|
constraints: Cadenya::Agents::AgentVariationSpecConstraints,
|
|
73
73
|
description: String,
|
|
74
|
+
first_user_message_template: String,
|
|
74
75
|
model_config: Cadenya::Agents::AgentVariationSpecModelConfig,
|
|
75
76
|
progressive_discovery: Cadenya::Agents::AgentVariationSpecProgressiveDiscovery,
|
|
76
77
|
system_prompt_template: String,
|
|
77
|
-
user_message_template: String,
|
|
78
78
|
weight: Integer
|
|
79
79
|
}
|
|
80
80
|
end
|
|
@@ -3,23 +3,23 @@ module Cadenya
|
|
|
3
3
|
type objective =
|
|
4
4
|
{
|
|
5
5
|
config_snapshot: Cadenya::ObjectiveConfigSnapshot,
|
|
6
|
-
|
|
6
|
+
first_user_message: String,
|
|
7
7
|
metadata: Cadenya::OperationMetadata,
|
|
8
8
|
state: Cadenya::Models::Objective::state,
|
|
9
9
|
system_prompt: String,
|
|
10
|
-
data: ::Hash[Symbol, top],
|
|
11
10
|
episodic_memory: Cadenya::Objective::EpisodicMemory,
|
|
11
|
+
first_user_message_data: ::Hash[Symbol, top],
|
|
12
12
|
info: Cadenya::ObjectiveInfo,
|
|
13
13
|
memory_cascade: ::Array[Cadenya::MemoryReference],
|
|
14
14
|
output: ::Hash[Symbol, top],
|
|
15
15
|
parent_objective_id: String,
|
|
16
16
|
secrets: ::Array[Cadenya::ObjectiveSecret],
|
|
17
17
|
state_message: String,
|
|
18
|
-
|
|
18
|
+
system_prompt_data: ::Hash[Symbol, top]
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
class Objective < Cadenya::Internal::Type::BaseModel
|
|
22
|
-
attr_accessor
|
|
22
|
+
attr_accessor first_user_message: String
|
|
23
23
|
|
|
24
24
|
attr_accessor metadata: Cadenya::OperationMetadata
|
|
25
25
|
|
|
@@ -47,9 +47,9 @@ module Cadenya
|
|
|
47
47
|
|
|
48
48
|
attr_accessor system_prompt: String
|
|
49
49
|
|
|
50
|
-
attr_reader
|
|
50
|
+
attr_reader first_user_message_data: ::Hash[Symbol, top]?
|
|
51
51
|
|
|
52
|
-
def
|
|
52
|
+
def first_user_message_data=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
53
53
|
|
|
54
54
|
attr_reader info: Cadenya::ObjectiveInfo?
|
|
55
55
|
|
|
@@ -67,42 +67,42 @@ module Cadenya
|
|
|
67
67
|
|
|
68
68
|
def state_message=: (String) -> String
|
|
69
69
|
|
|
70
|
-
attr_reader
|
|
70
|
+
attr_reader system_prompt_data: ::Hash[Symbol, top]?
|
|
71
71
|
|
|
72
|
-
def
|
|
72
|
+
def system_prompt_data=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
73
73
|
|
|
74
74
|
def initialize: (
|
|
75
75
|
config_snapshot: Cadenya::ObjectiveConfigSnapshot,
|
|
76
|
-
|
|
76
|
+
first_user_message: String,
|
|
77
77
|
metadata: Cadenya::OperationMetadata,
|
|
78
78
|
state: Cadenya::Models::Objective::state,
|
|
79
79
|
system_prompt: String,
|
|
80
|
-
?data: ::Hash[Symbol, top],
|
|
81
80
|
?episodic_memory: Cadenya::Objective::EpisodicMemory,
|
|
81
|
+
?first_user_message_data: ::Hash[Symbol, top],
|
|
82
82
|
?info: Cadenya::ObjectiveInfo,
|
|
83
83
|
?memory_cascade: ::Array[Cadenya::MemoryReference],
|
|
84
84
|
?output: ::Hash[Symbol, top],
|
|
85
85
|
?parent_objective_id: String,
|
|
86
86
|
?secrets: ::Array[Cadenya::ObjectiveSecret],
|
|
87
87
|
?state_message: String,
|
|
88
|
-
?
|
|
88
|
+
?system_prompt_data: ::Hash[Symbol, top]
|
|
89
89
|
) -> void
|
|
90
90
|
|
|
91
91
|
def to_hash: -> {
|
|
92
92
|
config_snapshot: Cadenya::ObjectiveConfigSnapshot,
|
|
93
|
-
|
|
93
|
+
first_user_message: String,
|
|
94
94
|
metadata: Cadenya::OperationMetadata,
|
|
95
95
|
state: Cadenya::Models::Objective::state,
|
|
96
96
|
system_prompt: String,
|
|
97
|
-
data: ::Hash[Symbol, top],
|
|
98
97
|
episodic_memory: Cadenya::Objective::EpisodicMemory,
|
|
98
|
+
first_user_message_data: ::Hash[Symbol, top],
|
|
99
99
|
info: Cadenya::ObjectiveInfo,
|
|
100
100
|
memory_cascade: ::Array[Cadenya::MemoryReference],
|
|
101
101
|
output: ::Hash[Symbol, top],
|
|
102
102
|
parent_objective_id: String,
|
|
103
103
|
secrets: ::Array[Cadenya::ObjectiveSecret],
|
|
104
104
|
state_message: String,
|
|
105
|
-
|
|
105
|
+
system_prompt_data: ::Hash[Symbol, top]
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
type state =
|
|
@@ -4,13 +4,13 @@ module Cadenya
|
|
|
4
4
|
{
|
|
5
5
|
workspace_id: String,
|
|
6
6
|
agent_id: String,
|
|
7
|
-
|
|
7
|
+
system_prompt_data: ::Hash[Symbol, top],
|
|
8
8
|
episodic_memory: Cadenya::ObjectiveCreateParams::EpisodicMemory,
|
|
9
|
-
|
|
9
|
+
first_user_message: String,
|
|
10
|
+
first_user_message_data: ::Hash[Symbol, top],
|
|
10
11
|
memory_cascade: ::Array[Cadenya::MemoryReference],
|
|
11
12
|
metadata: Cadenya::CreateOperationMetadata,
|
|
12
13
|
secrets: ::Array[Cadenya::ObjectiveCreateParams::Secret],
|
|
13
|
-
user_data: ::Hash[Symbol, top],
|
|
14
14
|
variation_id: String
|
|
15
15
|
}
|
|
16
16
|
& Cadenya::Internal::Type::request_parameters
|
|
@@ -23,7 +23,7 @@ module Cadenya
|
|
|
23
23
|
|
|
24
24
|
attr_accessor agent_id: String
|
|
25
25
|
|
|
26
|
-
attr_accessor
|
|
26
|
+
attr_accessor system_prompt_data: ::Hash[Symbol, top]
|
|
27
27
|
|
|
28
28
|
attr_reader episodic_memory: Cadenya::ObjectiveCreateParams::EpisodicMemory?
|
|
29
29
|
|
|
@@ -31,9 +31,13 @@ module Cadenya
|
|
|
31
31
|
Cadenya::ObjectiveCreateParams::EpisodicMemory
|
|
32
32
|
) -> Cadenya::ObjectiveCreateParams::EpisodicMemory
|
|
33
33
|
|
|
34
|
-
attr_reader
|
|
34
|
+
attr_reader first_user_message: String?
|
|
35
35
|
|
|
36
|
-
def
|
|
36
|
+
def first_user_message=: (String) -> String
|
|
37
|
+
|
|
38
|
+
attr_reader first_user_message_data: ::Hash[Symbol, top]?
|
|
39
|
+
|
|
40
|
+
def first_user_message_data=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
37
41
|
|
|
38
42
|
attr_reader memory_cascade: ::Array[Cadenya::MemoryReference]?
|
|
39
43
|
|
|
@@ -53,10 +57,6 @@ module Cadenya
|
|
|
53
57
|
::Array[Cadenya::ObjectiveCreateParams::Secret]
|
|
54
58
|
) -> ::Array[Cadenya::ObjectiveCreateParams::Secret]
|
|
55
59
|
|
|
56
|
-
attr_reader user_data: ::Hash[Symbol, top]?
|
|
57
|
-
|
|
58
|
-
def user_data=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
59
|
-
|
|
60
60
|
attr_reader variation_id: String?
|
|
61
61
|
|
|
62
62
|
def variation_id=: (String) -> String
|
|
@@ -64,13 +64,13 @@ module Cadenya
|
|
|
64
64
|
def initialize: (
|
|
65
65
|
workspace_id: String,
|
|
66
66
|
agent_id: String,
|
|
67
|
-
|
|
67
|
+
system_prompt_data: ::Hash[Symbol, top],
|
|
68
68
|
?episodic_memory: Cadenya::ObjectiveCreateParams::EpisodicMemory,
|
|
69
|
-
?
|
|
69
|
+
?first_user_message: String,
|
|
70
|
+
?first_user_message_data: ::Hash[Symbol, top],
|
|
70
71
|
?memory_cascade: ::Array[Cadenya::MemoryReference],
|
|
71
72
|
?metadata: Cadenya::CreateOperationMetadata,
|
|
72
73
|
?secrets: ::Array[Cadenya::ObjectiveCreateParams::Secret],
|
|
73
|
-
?user_data: ::Hash[Symbol, top],
|
|
74
74
|
?variation_id: String,
|
|
75
75
|
?request_options: Cadenya::request_opts
|
|
76
76
|
) -> void
|
|
@@ -78,13 +78,13 @@ module Cadenya
|
|
|
78
78
|
def to_hash: -> {
|
|
79
79
|
workspace_id: String,
|
|
80
80
|
agent_id: String,
|
|
81
|
-
|
|
81
|
+
system_prompt_data: ::Hash[Symbol, top],
|
|
82
82
|
episodic_memory: Cadenya::ObjectiveCreateParams::EpisodicMemory,
|
|
83
|
-
|
|
83
|
+
first_user_message: String,
|
|
84
|
+
first_user_message_data: ::Hash[Symbol, top],
|
|
84
85
|
memory_cascade: ::Array[Cadenya::MemoryReference],
|
|
85
86
|
metadata: Cadenya::CreateOperationMetadata,
|
|
86
87
|
secrets: ::Array[Cadenya::ObjectiveCreateParams::Secret],
|
|
87
|
-
user_data: ::Hash[Symbol, top],
|
|
88
88
|
variation_id: String,
|
|
89
89
|
request_options: Cadenya::RequestOptions
|
|
90
90
|
}
|
|
@@ -12,13 +12,13 @@ module Cadenya
|
|
|
12
12
|
def create: (
|
|
13
13
|
String workspace_id,
|
|
14
14
|
agent_id: String,
|
|
15
|
-
|
|
15
|
+
system_prompt_data: ::Hash[Symbol, top],
|
|
16
16
|
?episodic_memory: Cadenya::ObjectiveCreateParams::EpisodicMemory,
|
|
17
|
-
?
|
|
17
|
+
?first_user_message: String,
|
|
18
|
+
?first_user_message_data: ::Hash[Symbol, top],
|
|
18
19
|
?memory_cascade: ::Array[Cadenya::MemoryReference],
|
|
19
20
|
?metadata: Cadenya::CreateOperationMetadata,
|
|
20
21
|
?secrets: ::Array[Cadenya::ObjectiveCreateParams::Secret],
|
|
21
|
-
?user_data: ::Hash[Symbol, top],
|
|
22
22
|
?variation_id: String,
|
|
23
23
|
?request_options: Cadenya::request_opts
|
|
24
24
|
) -> Cadenya::Objective
|
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.28.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-07-
|
|
11
|
+
date: 2026-07-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|