cadenya 0.26.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 +16 -0
- data/README.md +1 -1
- data/lib/cadenya/models/account_info.rb +13 -1
- data/lib/cadenya/models/account_rotate_challenge_token_params.rb +14 -0
- 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/agents/webhook_delivery_data.rb +1 -0
- data/lib/cadenya/models/agents/webhook_delivery_list_params.rb +1 -0
- data/lib/cadenya/models/objective.rb +18 -16
- data/lib/cadenya/models/objective_continue_params.rb +1 -26
- data/lib/cadenya/models/objective_create_params.rb +28 -25
- data/lib/cadenya/models/objective_event_data.rb +63 -1
- data/lib/cadenya/models/rotate_challenge_token_response.rb +18 -0
- data/lib/cadenya/models/tool_set_adapter_mcp.rb +38 -1
- data/lib/cadenya/models/tool_sets/tool_info.rb +14 -1
- data/lib/cadenya/models.rb +4 -0
- data/lib/cadenya/resources/account.rb +19 -0
- data/lib/cadenya/resources/objectives.rb +6 -8
- data/lib/cadenya/version.rb +1 -1
- data/lib/cadenya.rb +2 -0
- data/rbi/cadenya/models/account_info.rbi +19 -0
- data/rbi/cadenya/models/account_rotate_challenge_token_params.rbi +30 -0
- 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/agents/webhook_delivery_data.rbi +5 -0
- data/rbi/cadenya/models/agents/webhook_delivery_list_params.rbi +5 -0
- data/rbi/cadenya/models/objective.rbi +24 -24
- data/rbi/cadenya/models/objective_continue_params.rbi +0 -49
- data/rbi/cadenya/models/objective_create_params.rbi +39 -37
- data/rbi/cadenya/models/objective_event_data.rbi +128 -0
- data/rbi/cadenya/models/rotate_challenge_token_response.rbi +30 -0
- data/rbi/cadenya/models/tool_set_adapter_mcp.rbi +69 -0
- data/rbi/cadenya/models/tool_sets/tool_info.rbi +17 -0
- data/rbi/cadenya/models.rbi +5 -0
- data/rbi/cadenya/resources/account.rbi +10 -0
- data/rbi/cadenya/resources/objectives.rbi +16 -20
- data/sig/cadenya/models/account_info.rbs +11 -1
- data/sig/cadenya/models/account_rotate_challenge_token_params.rbs +15 -0
- 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/agents/webhook_delivery_data.rbs +2 -0
- data/sig/cadenya/models/agents/webhook_delivery_list_params.rbs +2 -0
- data/sig/cadenya/models/objective.rbs +14 -14
- data/sig/cadenya/models/objective_continue_params.rbs +1 -26
- data/sig/cadenya/models/objective_create_params.rbs +16 -16
- data/sig/cadenya/models/objective_event_data.rbs +56 -0
- data/sig/cadenya/models/rotate_challenge_token_response.rbs +15 -0
- data/sig/cadenya/models/tool_set_adapter_mcp.rbs +32 -0
- data/sig/cadenya/models/tool_sets/tool_info.rbs +11 -1
- data/sig/cadenya/models.rbs +4 -0
- data/sig/cadenya/resources/account.rbs +4 -0
- data/sig/cadenya/resources/objectives.rbs +3 -4
- metadata +8 -2
data/rbi/cadenya/models.rbi
CHANGED
|
@@ -9,6 +9,9 @@ module Cadenya
|
|
|
9
9
|
|
|
10
10
|
AccountRetrieveParams = Cadenya::Models::AccountRetrieveParams
|
|
11
11
|
|
|
12
|
+
AccountRotateChallengeTokenParams =
|
|
13
|
+
Cadenya::Models::AccountRotateChallengeTokenParams
|
|
14
|
+
|
|
12
15
|
AccountRotateWebhookSigningKeyParams =
|
|
13
16
|
Cadenya::Models::AccountRotateWebhookSigningKeyParams
|
|
14
17
|
|
|
@@ -183,6 +186,8 @@ module Cadenya
|
|
|
183
186
|
|
|
184
187
|
ResourceMetadata = Cadenya::Models::ResourceMetadata
|
|
185
188
|
|
|
189
|
+
RotateChallengeTokenResponse = Cadenya::Models::RotateChallengeTokenResponse
|
|
190
|
+
|
|
186
191
|
RotateWebhookSigningKeyResponse =
|
|
187
192
|
Cadenya::Models::RotateWebhookSigningKeyResponse
|
|
188
193
|
|
|
@@ -15,6 +15,16 @@ module Cadenya
|
|
|
15
15
|
def retrieve(request_options: {})
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
# Rotates the challenge token sent in the X-Cadenya-Challenge-Token header on MCP
|
|
19
|
+
# tools/list requests. Returns only the new token.
|
|
20
|
+
sig do
|
|
21
|
+
params(request_options: Cadenya::RequestOptions::OrHash).returns(
|
|
22
|
+
Cadenya::RotateChallengeTokenResponse
|
|
23
|
+
)
|
|
24
|
+
end
|
|
25
|
+
def rotate_challenge_token(request_options: {})
|
|
26
|
+
end
|
|
27
|
+
|
|
18
28
|
# Rotates the webhook signing key for the account. Returns only the new key.
|
|
19
29
|
sig do
|
|
20
30
|
params(request_options: Cadenya::RequestOptions::OrHash).returns(
|
|
@@ -20,14 +20,14 @@ module Cadenya
|
|
|
20
20
|
params(
|
|
21
21
|
workspace_id: String,
|
|
22
22
|
agent_id: String,
|
|
23
|
-
|
|
23
|
+
system_prompt_data: T::Hash[Symbol, T.anything],
|
|
24
24
|
episodic_memory:
|
|
25
25
|
Cadenya::ObjectiveCreateParams::EpisodicMemory::OrHash,
|
|
26
|
-
|
|
26
|
+
first_user_message: String,
|
|
27
|
+
first_user_message_data: T::Hash[Symbol, T.anything],
|
|
27
28
|
memory_cascade: T::Array[Cadenya::MemoryReference::OrHash],
|
|
28
29
|
metadata: Cadenya::CreateOperationMetadata::OrHash,
|
|
29
30
|
secrets: T::Array[Cadenya::ObjectiveCreateParams::Secret::OrHash],
|
|
30
|
-
user_data: T::Hash[Symbol, T.anything],
|
|
31
31
|
variation_id: String,
|
|
32
32
|
request_options: Cadenya::RequestOptions::OrHash
|
|
33
33
|
).returns(Cadenya::Objective)
|
|
@@ -35,17 +35,22 @@ module Cadenya
|
|
|
35
35
|
def create(
|
|
36
36
|
workspace_id,
|
|
37
37
|
agent_id:,
|
|
38
|
-
# Arbitrary data
|
|
39
|
-
#
|
|
40
|
-
|
|
38
|
+
# Arbitrary data rendered into the selected variation's system_prompt_template
|
|
39
|
+
# (liquid) to produce the objective's system prompt. If the agent has a
|
|
40
|
+
# system_prompt_data_schema, this must satisfy it.
|
|
41
|
+
system_prompt_data:,
|
|
41
42
|
# Episodic is used to configure the episodic memory for the objective
|
|
42
43
|
episodic_memory: nil,
|
|
43
|
-
# Optional
|
|
44
|
-
#
|
|
45
|
-
#
|
|
46
|
-
#
|
|
44
|
+
# Optional explicit first user message for the LLM chat history. When not set, the
|
|
45
|
+
# selected variation's first_user_message_template is rendered with
|
|
46
|
+
# first_user_message_data instead. If neither this field nor a
|
|
47
|
+
# first_user_message_template is present, the request is rejected with
|
|
47
48
|
# InvalidArgument.
|
|
48
|
-
|
|
49
|
+
first_user_message: nil,
|
|
50
|
+
# Arbitrary data rendered into the selected variation's
|
|
51
|
+
# first_user_message_template (liquid) to produce the first user message. Separate
|
|
52
|
+
# from `system_prompt_data`, which renders the system prompt template.
|
|
53
|
+
first_user_message_data: nil,
|
|
49
54
|
# Memory layers/entries layered over the baseline cascade inherited from the
|
|
50
55
|
# selected variation — element-level rules over inherited styles, in CSS terms.
|
|
51
56
|
#
|
|
@@ -67,10 +72,6 @@ module Cadenya
|
|
|
67
72
|
# Secrets that can be used in the headers for tool calls using the secret
|
|
68
73
|
# interpolation format.
|
|
69
74
|
secrets: nil,
|
|
70
|
-
# Arbitrary data rendered into the selected variation's user_message_template
|
|
71
|
-
# (liquid) to produce the initial user message. Separate from `data`, which
|
|
72
|
-
# renders the system prompt template.
|
|
73
|
-
user_data: nil,
|
|
74
75
|
# Optional explicit variation selection. Overrides the agent's
|
|
75
76
|
# variation_selection_mode.
|
|
76
77
|
variation_id: nil,
|
|
@@ -182,7 +183,6 @@ module Cadenya
|
|
|
182
183
|
workspace_id: String,
|
|
183
184
|
enqueue: T::Boolean,
|
|
184
185
|
message: String,
|
|
185
|
-
secrets: T::Array[Cadenya::ObjectiveContinueParams::Secret::OrHash],
|
|
186
186
|
request_options: Cadenya::RequestOptions::OrHash
|
|
187
187
|
).returns(Cadenya::ObjectiveEvent)
|
|
188
188
|
end
|
|
@@ -199,10 +199,6 @@ module Cadenya
|
|
|
199
199
|
# Body param: The message to continue an objective that has completed (or you are
|
|
200
200
|
# enqueing)
|
|
201
201
|
message: nil,
|
|
202
|
-
# Body param: Secrets that should be included with the message. Helpful for when
|
|
203
|
-
# you need to update secrets on the objective (IE: A secret expires and needs to
|
|
204
|
-
# be refreshed)
|
|
205
|
-
secrets: nil,
|
|
206
202
|
request_options: {}
|
|
207
203
|
)
|
|
208
204
|
end
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
module Cadenya
|
|
2
2
|
module Models
|
|
3
3
|
type account_info =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
challenge_token: String,
|
|
6
|
+
global_api_key: Cadenya::APIKey,
|
|
7
|
+
webhook_events_hmac_secret: String
|
|
8
|
+
}
|
|
5
9
|
|
|
6
10
|
class AccountInfo < Cadenya::Internal::Type::BaseModel
|
|
11
|
+
attr_reader challenge_token: String?
|
|
12
|
+
|
|
13
|
+
def challenge_token=: (String) -> String
|
|
14
|
+
|
|
7
15
|
attr_reader global_api_key: Cadenya::APIKey?
|
|
8
16
|
|
|
9
17
|
def global_api_key=: (Cadenya::APIKey) -> Cadenya::APIKey
|
|
@@ -13,11 +21,13 @@ module Cadenya
|
|
|
13
21
|
def webhook_events_hmac_secret=: (String) -> String
|
|
14
22
|
|
|
15
23
|
def initialize: (
|
|
24
|
+
?challenge_token: String,
|
|
16
25
|
?global_api_key: Cadenya::APIKey,
|
|
17
26
|
?webhook_events_hmac_secret: String
|
|
18
27
|
) -> void
|
|
19
28
|
|
|
20
29
|
def to_hash: -> {
|
|
30
|
+
challenge_token: String,
|
|
21
31
|
global_api_key: Cadenya::APIKey,
|
|
22
32
|
webhook_events_hmac_secret: String
|
|
23
33
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Cadenya
|
|
2
|
+
module Models
|
|
3
|
+
type account_rotate_challenge_token_params =
|
|
4
|
+
{ } & Cadenya::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class AccountRotateChallengeTokenParams < Cadenya::Internal::Type::BaseModel
|
|
7
|
+
extend Cadenya::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Cadenya::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: Cadenya::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: Cadenya::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -6,8 +6,8 @@ module Cadenya
|
|
|
6
6
|
description: String,
|
|
7
7
|
enable_episodic_memory: bool,
|
|
8
8
|
episodic_memory_ttl: Integer,
|
|
9
|
-
input_data_schema: ::Hash[Symbol, top],
|
|
10
9
|
output_definition: ::Hash[Symbol, top],
|
|
10
|
+
system_prompt_data_schema: ::Hash[Symbol, top],
|
|
11
11
|
webhook_events_url: String
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -26,14 +26,16 @@ module Cadenya
|
|
|
26
26
|
|
|
27
27
|
def episodic_memory_ttl=: (Integer) -> Integer
|
|
28
28
|
|
|
29
|
-
attr_reader input_data_schema: ::Hash[Symbol, top]?
|
|
30
|
-
|
|
31
|
-
def input_data_schema=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
32
|
-
|
|
33
29
|
attr_reader output_definition: ::Hash[Symbol, top]?
|
|
34
30
|
|
|
35
31
|
def output_definition=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
36
32
|
|
|
33
|
+
attr_reader system_prompt_data_schema: ::Hash[Symbol, top]?
|
|
34
|
+
|
|
35
|
+
def system_prompt_data_schema=: (
|
|
36
|
+
::Hash[Symbol, top]
|
|
37
|
+
) -> ::Hash[Symbol, top]
|
|
38
|
+
|
|
37
39
|
attr_reader webhook_events_url: String?
|
|
38
40
|
|
|
39
41
|
def webhook_events_url=: (String) -> String
|
|
@@ -43,8 +45,8 @@ module Cadenya
|
|
|
43
45
|
?description: String,
|
|
44
46
|
?enable_episodic_memory: bool,
|
|
45
47
|
?episodic_memory_ttl: Integer,
|
|
46
|
-
?input_data_schema: ::Hash[Symbol, top],
|
|
47
48
|
?output_definition: ::Hash[Symbol, top],
|
|
49
|
+
?system_prompt_data_schema: ::Hash[Symbol, top],
|
|
48
50
|
?webhook_events_url: String
|
|
49
51
|
) -> void
|
|
50
52
|
|
|
@@ -53,8 +55,8 @@ module Cadenya
|
|
|
53
55
|
description: String,
|
|
54
56
|
enable_episodic_memory: bool,
|
|
55
57
|
episodic_memory_ttl: Integer,
|
|
56
|
-
input_data_schema: ::Hash[Symbol, top],
|
|
57
58
|
output_definition: ::Hash[Symbol, top],
|
|
59
|
+
system_prompt_data_schema: ::Hash[Symbol, top],
|
|
58
60
|
webhook_events_url: String
|
|
59
61
|
}
|
|
60
62
|
|
|
@@ -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
|
|
@@ -105,6 +105,7 @@ module Cadenya
|
|
|
105
105
|
| :OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED
|
|
106
106
|
| :OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED
|
|
107
107
|
| :OBJECTIVE_EVENT_TYPE_FINALIZED
|
|
108
|
+
| :OBJECTIVE_EVENT_TYPE_NOTICE
|
|
108
109
|
|
|
109
110
|
module EventType
|
|
110
111
|
extend Cadenya::Internal::Type::Enum
|
|
@@ -125,6 +126,7 @@ module Cadenya
|
|
|
125
126
|
OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED: :OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED
|
|
126
127
|
OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED: :OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED
|
|
127
128
|
OBJECTIVE_EVENT_TYPE_FINALIZED: :OBJECTIVE_EVENT_TYPE_FINALIZED
|
|
129
|
+
OBJECTIVE_EVENT_TYPE_NOTICE: :OBJECTIVE_EVENT_TYPE_NOTICE
|
|
128
130
|
|
|
129
131
|
def self?.values: -> ::Array[Cadenya::Models::Agents::WebhookDeliveryData::event_type]
|
|
130
132
|
end
|
|
@@ -75,6 +75,7 @@ module Cadenya
|
|
|
75
75
|
| :OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED
|
|
76
76
|
| :OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED
|
|
77
77
|
| :OBJECTIVE_EVENT_TYPE_FINALIZED
|
|
78
|
+
| :OBJECTIVE_EVENT_TYPE_NOTICE
|
|
78
79
|
|
|
79
80
|
module EventType
|
|
80
81
|
extend Cadenya::Internal::Type::Enum
|
|
@@ -95,6 +96,7 @@ module Cadenya
|
|
|
95
96
|
OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED: :OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED
|
|
96
97
|
OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED: :OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED
|
|
97
98
|
OBJECTIVE_EVENT_TYPE_FINALIZED: :OBJECTIVE_EVENT_TYPE_FINALIZED
|
|
99
|
+
OBJECTIVE_EVENT_TYPE_NOTICE: :OBJECTIVE_EVENT_TYPE_NOTICE
|
|
98
100
|
|
|
99
101
|
def self?.values: -> ::Array[Cadenya::Models::Agents::WebhookDeliveryListParams::event_type]
|
|
100
102
|
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 =
|
|
@@ -5,8 +5,7 @@ module Cadenya
|
|
|
5
5
|
workspace_id: String,
|
|
6
6
|
objective_id: String,
|
|
7
7
|
enqueue: bool,
|
|
8
|
-
message: String
|
|
9
|
-
secrets: ::Array[Cadenya::ObjectiveContinueParams::Secret]
|
|
8
|
+
message: String
|
|
10
9
|
}
|
|
11
10
|
& Cadenya::Internal::Type::request_parameters
|
|
12
11
|
|
|
@@ -26,18 +25,11 @@ module Cadenya
|
|
|
26
25
|
|
|
27
26
|
def message=: (String) -> String
|
|
28
27
|
|
|
29
|
-
attr_reader secrets: ::Array[Cadenya::ObjectiveContinueParams::Secret]?
|
|
30
|
-
|
|
31
|
-
def secrets=: (
|
|
32
|
-
::Array[Cadenya::ObjectiveContinueParams::Secret]
|
|
33
|
-
) -> ::Array[Cadenya::ObjectiveContinueParams::Secret]
|
|
34
|
-
|
|
35
28
|
def initialize: (
|
|
36
29
|
workspace_id: String,
|
|
37
30
|
objective_id: String,
|
|
38
31
|
?enqueue: bool,
|
|
39
32
|
?message: String,
|
|
40
|
-
?secrets: ::Array[Cadenya::ObjectiveContinueParams::Secret],
|
|
41
33
|
?request_options: Cadenya::request_opts
|
|
42
34
|
) -> void
|
|
43
35
|
|
|
@@ -46,25 +38,8 @@ module Cadenya
|
|
|
46
38
|
objective_id: String,
|
|
47
39
|
enqueue: bool,
|
|
48
40
|
message: String,
|
|
49
|
-
secrets: ::Array[Cadenya::ObjectiveContinueParams::Secret],
|
|
50
41
|
request_options: Cadenya::RequestOptions
|
|
51
42
|
}
|
|
52
|
-
|
|
53
|
-
type secret = { name: String, value: String }
|
|
54
|
-
|
|
55
|
-
class Secret < Cadenya::Internal::Type::BaseModel
|
|
56
|
-
attr_reader name: String?
|
|
57
|
-
|
|
58
|
-
def name=: (String) -> String
|
|
59
|
-
|
|
60
|
-
attr_reader value: String?
|
|
61
|
-
|
|
62
|
-
def value=: (String) -> String
|
|
63
|
-
|
|
64
|
-
def initialize: (?name: String, ?value: String) -> void
|
|
65
|
-
|
|
66
|
-
def to_hash: -> { name: String, value: String }
|
|
67
|
-
end
|
|
68
43
|
end
|
|
69
44
|
end
|
|
70
45
|
end
|
|
@@ -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
|
}
|