cadenya 0.1.0 → 0.2.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/internal/cursor_pagination.rb +1 -1
- data/lib/cadenya/internal/transport/base_client.rb +2 -0
- data/lib/cadenya/models/agents/webhook_delivery_data.rb +2 -1
- data/lib/cadenya/models/agents/webhook_delivery_list_params.rb +2 -1
- data/lib/cadenya/models/objective_create_params.rb +3 -3
- data/lib/cadenya/models/objective_event_data.rb +12 -5
- data/lib/cadenya/models/objective_list_events_params.rb +9 -1
- data/lib/cadenya/models/sub_agent_spawned.rb +35 -0
- data/lib/cadenya/models/sub_agent_updated.rb +66 -0
- data/lib/cadenya/models.rb +3 -1
- data/lib/cadenya/resources/objectives.rb +5 -2
- data/lib/cadenya/version.rb +1 -1
- data/lib/cadenya.rb +2 -1
- data/rbi/cadenya/models/agents/webhook_delivery_data.rbi +10 -5
- data/rbi/cadenya/models/agents/webhook_delivery_list_params.rbi +10 -5
- data/rbi/cadenya/models/objective_create_params.rbi +2 -2
- data/rbi/cadenya/models/objective_event_data.rbi +16 -9
- data/rbi/cadenya/models/objective_list_events_params.rbi +11 -0
- data/rbi/cadenya/models/sub_agent_spawned.rbi +62 -0
- data/rbi/cadenya/models/sub_agent_updated.rbi +127 -0
- data/rbi/cadenya/models.rbi +3 -1
- data/rbi/cadenya/resources/objectives.rbi +4 -1
- data/sig/cadenya/models/agents/webhook_delivery_data.rbs +4 -2
- data/sig/cadenya/models/agents/webhook_delivery_list_params.rbs +4 -2
- data/sig/cadenya/models/objective_create_params.rbs +6 -2
- data/sig/cadenya/models/objective_event_data.rbs +16 -7
- data/sig/cadenya/models/objective_list_events_params.rbs +7 -0
- data/sig/cadenya/models/sub_agent_spawned.rbs +36 -0
- data/sig/cadenya/models/sub_agent_updated.rbs +66 -0
- data/sig/cadenya/models.rbs +3 -1
- data/sig/cadenya/resources/objectives.rbs +2 -1
- metadata +8 -5
- data/lib/cadenya/models/sub_objective_created.rb +0 -20
- data/rbi/cadenya/models/sub_objective_created.rbi +0 -36
- data/sig/cadenya/models/sub_objective_created.rbs +0 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c3cc49ac49fbdbfff8fb89d30d752845056dc3d02f3c3d85bc0bfda74647948d
|
|
4
|
+
data.tar.gz: fc413c92248c0b5eea54f808545eaf8207caa90cbbd043e38e798a7b3c05e917
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c8efd167e60512e6bab2ea8532382565490fdfe2cd5bfa0a9f489b655c4cca369dc69fad7362cf1ff04981a41d297787936ce6a60133c1919e6bc6a09f3f6fd6
|
|
7
|
+
data.tar.gz: 5626793207092ca923346d462f8a5755e3b297092f9b1ced17379f09ea6be3ad7f4977eb9a798943ef1902989abe722efccf18431ba951ccb5f06ecb79925bfb
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.0 (2026-05-14)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0...v0.2.0](https://github.com/cadenya/cadenya-ruby/compare/v0.1.0...v0.2.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([ef1d2e7](https://github.com/cadenya/cadenya-ruby/commit/ef1d2e785d222bf4b027b628f93f4dc97d52c167))
|
|
10
|
+
* **api:** api update ([d62dad1](https://github.com/cadenya/cadenya-ruby/commit/d62dad1c1f7103e636510cb7afb3a3e0a673c096))
|
|
11
|
+
* **api:** api update ([b22688f](https://github.com/cadenya/cadenya-ruby/commit/b22688f6eaa880efe3c0016aced19fc2b94b43c3))
|
|
12
|
+
* **api:** api update ([7b65d0c](https://github.com/cadenya/cadenya-ruby/commit/7b65d0c4606fac3bfde5d0bbf3b34d6fc2b3047e))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **client:** elide content type header on requests without body ([68e218f](https://github.com/cadenya/cadenya-ruby/commit/68e218f00e026629ee99d1c05bb62fe385de43e7))
|
|
18
|
+
|
|
3
19
|
## 0.1.0 (2026-05-06)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.0.1...v0.1.0](https://github.com/cadenya/cadenya-ruby/compare/v0.0.1...v0.1.0)
|
data/README.md
CHANGED
|
@@ -306,6 +306,8 @@ module Cadenya
|
|
|
306
306
|
Cadenya::Internal::Util.deep_merge(*[req[:body], opts[:extra_body]].compact)
|
|
307
307
|
end
|
|
308
308
|
|
|
309
|
+
headers.delete("content-type") if body.nil?
|
|
310
|
+
|
|
309
311
|
url = Cadenya::Internal::Util.join_parsed_uri(
|
|
310
312
|
@base_url_components,
|
|
311
313
|
{**req, path: path, query: query}
|
|
@@ -125,7 +125,6 @@ module Cadenya
|
|
|
125
125
|
OBJECTIVE_EVENT_TYPE_TOOL_APPROVED = :OBJECTIVE_EVENT_TYPE_TOOL_APPROVED
|
|
126
126
|
OBJECTIVE_EVENT_TYPE_TOOL_DENIED = :OBJECTIVE_EVENT_TYPE_TOOL_DENIED
|
|
127
127
|
OBJECTIVE_EVENT_TYPE_TOOL_CALLED = :OBJECTIVE_EVENT_TYPE_TOOL_CALLED
|
|
128
|
-
OBJECTIVE_EVENT_TYPE_SUB_OBJECTIVE_CREATED = :OBJECTIVE_EVENT_TYPE_SUB_OBJECTIVE_CREATED
|
|
129
128
|
OBJECTIVE_EVENT_TYPE_ERROR = :OBJECTIVE_EVENT_TYPE_ERROR
|
|
130
129
|
OBJECTIVE_EVENT_TYPE_ASSISTANT_MESSAGE = :OBJECTIVE_EVENT_TYPE_ASSISTANT_MESSAGE
|
|
131
130
|
OBJECTIVE_EVENT_TYPE_TOOL_RESULT = :OBJECTIVE_EVENT_TYPE_TOOL_RESULT
|
|
@@ -133,6 +132,8 @@ module Cadenya
|
|
|
133
132
|
OBJECTIVE_EVENT_TYPE_CONTEXT_WINDOW_COMPACTED = :OBJECTIVE_EVENT_TYPE_CONTEXT_WINDOW_COMPACTED
|
|
134
133
|
OBJECTIVE_EVENT_TYPE_MEMORY_READ = :OBJECTIVE_EVENT_TYPE_MEMORY_READ
|
|
135
134
|
OBJECTIVE_EVENT_TYPE_CANCELLED = :OBJECTIVE_EVENT_TYPE_CANCELLED
|
|
135
|
+
OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED = :OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED
|
|
136
|
+
OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED = :OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED
|
|
136
137
|
|
|
137
138
|
# @!method self.values
|
|
138
139
|
# @return [Array<Symbol>]
|
|
@@ -67,7 +67,6 @@ module Cadenya
|
|
|
67
67
|
OBJECTIVE_EVENT_TYPE_TOOL_APPROVED = :OBJECTIVE_EVENT_TYPE_TOOL_APPROVED
|
|
68
68
|
OBJECTIVE_EVENT_TYPE_TOOL_DENIED = :OBJECTIVE_EVENT_TYPE_TOOL_DENIED
|
|
69
69
|
OBJECTIVE_EVENT_TYPE_TOOL_CALLED = :OBJECTIVE_EVENT_TYPE_TOOL_CALLED
|
|
70
|
-
OBJECTIVE_EVENT_TYPE_SUB_OBJECTIVE_CREATED = :OBJECTIVE_EVENT_TYPE_SUB_OBJECTIVE_CREATED
|
|
71
70
|
OBJECTIVE_EVENT_TYPE_ERROR = :OBJECTIVE_EVENT_TYPE_ERROR
|
|
72
71
|
OBJECTIVE_EVENT_TYPE_ASSISTANT_MESSAGE = :OBJECTIVE_EVENT_TYPE_ASSISTANT_MESSAGE
|
|
73
72
|
OBJECTIVE_EVENT_TYPE_TOOL_RESULT = :OBJECTIVE_EVENT_TYPE_TOOL_RESULT
|
|
@@ -75,6 +74,8 @@ module Cadenya
|
|
|
75
74
|
OBJECTIVE_EVENT_TYPE_CONTEXT_WINDOW_COMPACTED = :OBJECTIVE_EVENT_TYPE_CONTEXT_WINDOW_COMPACTED
|
|
76
75
|
OBJECTIVE_EVENT_TYPE_MEMORY_READ = :OBJECTIVE_EVENT_TYPE_MEMORY_READ
|
|
77
76
|
OBJECTIVE_EVENT_TYPE_CANCELLED = :OBJECTIVE_EVENT_TYPE_CANCELLED
|
|
77
|
+
OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED = :OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED
|
|
78
|
+
OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED = :OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED
|
|
78
79
|
|
|
79
80
|
# @!method self.values
|
|
80
81
|
# @return [Array<Symbol>]
|
|
@@ -27,8 +27,8 @@ module Cadenya
|
|
|
27
27
|
# operation. Read-only fields (id, account_id, workspace_id, created_at,
|
|
28
28
|
# profile_id) are excluded since they are set by the server.
|
|
29
29
|
#
|
|
30
|
-
# @return [Cadenya::Models::CreateOperationMetadata]
|
|
31
|
-
|
|
30
|
+
# @return [Cadenya::Models::CreateOperationMetadata, nil]
|
|
31
|
+
optional :metadata, -> { Cadenya::CreateOperationMetadata }
|
|
32
32
|
|
|
33
33
|
# @!attribute variation_id
|
|
34
34
|
# Optional explicit variation selection. Overrides the agent's
|
|
@@ -37,7 +37,7 @@ module Cadenya
|
|
|
37
37
|
# @return [String, nil]
|
|
38
38
|
optional :variation_id, String, api_name: :variationId
|
|
39
39
|
|
|
40
|
-
# @!method initialize(workspace_id:, agent_id:, data:, metadata
|
|
40
|
+
# @!method initialize(workspace_id:, agent_id:, data:, metadata: nil, variation_id: nil, request_options: {})
|
|
41
41
|
# Some parameter documentations has been truncated, see
|
|
42
42
|
# {Cadenya::Models::ObjectiveCreateParams} for more details.
|
|
43
43
|
#
|
|
@@ -36,10 +36,15 @@ module Cadenya
|
|
|
36
36
|
# @return [Cadenya::Models::MemoryRead, nil]
|
|
37
37
|
optional :memory_read, -> { Cadenya::MemoryRead }, api_name: :memoryRead
|
|
38
38
|
|
|
39
|
-
# @!attribute
|
|
39
|
+
# @!attribute sub_agent_spawned
|
|
40
40
|
#
|
|
41
|
-
# @return [Cadenya::Models::
|
|
42
|
-
optional :
|
|
41
|
+
# @return [Cadenya::Models::SubAgentSpawned, nil]
|
|
42
|
+
optional :sub_agent_spawned, -> { Cadenya::SubAgentSpawned }, api_name: :subAgentSpawned
|
|
43
|
+
|
|
44
|
+
# @!attribute sub_agent_updated
|
|
45
|
+
#
|
|
46
|
+
# @return [Cadenya::Models::SubAgentUpdated, nil]
|
|
47
|
+
optional :sub_agent_updated, -> { Cadenya::SubAgentUpdated }, api_name: :subAgentUpdated
|
|
43
48
|
|
|
44
49
|
# @!attribute tool_approval_requested
|
|
45
50
|
#
|
|
@@ -85,7 +90,7 @@ module Cadenya
|
|
|
85
90
|
# @return [Cadenya::Models::UserMessage, nil]
|
|
86
91
|
optional :user_message, -> { Cadenya::UserMessage }, api_name: :userMessage
|
|
87
92
|
|
|
88
|
-
# @!method initialize(assistant_message: nil, cancelled: nil, context_window_compacted: nil, error: nil, memory_read: nil,
|
|
93
|
+
# @!method initialize(assistant_message: nil, cancelled: nil, context_window_compacted: nil, error: nil, memory_read: nil, sub_agent_spawned: nil, sub_agent_updated: nil, tool_approval_requested: nil, tool_approved: nil, tool_called: nil, tool_denied: nil, tool_error: nil, tool_result: nil, type: nil, user_message: nil)
|
|
89
94
|
# Some parameter documentations has been truncated, see
|
|
90
95
|
# {Cadenya::Models::ObjectiveEventData} for more details.
|
|
91
96
|
#
|
|
@@ -99,7 +104,9 @@ module Cadenya
|
|
|
99
104
|
#
|
|
100
105
|
# @param memory_read [Cadenya::Models::MemoryRead] MemoryRead is emitted each time the agent resolves a key against the
|
|
101
106
|
#
|
|
102
|
-
# @param
|
|
107
|
+
# @param sub_agent_spawned [Cadenya::Models::SubAgentSpawned]
|
|
108
|
+
#
|
|
109
|
+
# @param sub_agent_updated [Cadenya::Models::SubAgentUpdated]
|
|
103
110
|
#
|
|
104
111
|
# @param tool_approval_requested [Cadenya::Models::ToolApprovalRequested]
|
|
105
112
|
#
|
|
@@ -35,6 +35,12 @@ module Cadenya
|
|
|
35
35
|
# @return [Integer, nil]
|
|
36
36
|
optional :limit, Integer
|
|
37
37
|
|
|
38
|
+
# @!attribute since_event_id
|
|
39
|
+
# Optional string to fetch events since an ID
|
|
40
|
+
#
|
|
41
|
+
# @return [String, nil]
|
|
42
|
+
optional :since_event_id, String
|
|
43
|
+
|
|
38
44
|
# @!attribute sort_order
|
|
39
45
|
# Sort order for results (asc or desc by creation time)
|
|
40
46
|
#
|
|
@@ -47,7 +53,7 @@ module Cadenya
|
|
|
47
53
|
# @return [String, nil]
|
|
48
54
|
optional :window_id, String
|
|
49
55
|
|
|
50
|
-
# @!method initialize(workspace_id:, objective_id:, cursor: nil, include_info: nil, limit: nil, sort_order: nil, window_id: nil, request_options: {})
|
|
56
|
+
# @!method initialize(workspace_id:, objective_id:, cursor: nil, include_info: nil, limit: nil, since_event_id: nil, sort_order: nil, window_id: nil, request_options: {})
|
|
51
57
|
# @param workspace_id [String]
|
|
52
58
|
#
|
|
53
59
|
# @param objective_id [String]
|
|
@@ -58,6 +64,8 @@ module Cadenya
|
|
|
58
64
|
#
|
|
59
65
|
# @param limit [Integer] Maximum number of results to return
|
|
60
66
|
#
|
|
67
|
+
# @param since_event_id [String] Optional string to fetch events since an ID
|
|
68
|
+
#
|
|
61
69
|
# @param sort_order [String] Sort order for results (asc or desc by creation time)
|
|
62
70
|
#
|
|
63
71
|
# @param window_id [String] Optional context window ID to filter events by
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Cadenya
|
|
4
|
+
module Models
|
|
5
|
+
class SubAgentSpawned < Cadenya::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute agent
|
|
7
|
+
# Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
8
|
+
#
|
|
9
|
+
# @return [Cadenya::Models::ResourceMetadata, nil]
|
|
10
|
+
optional :agent, -> { Cadenya::ResourceMetadata }
|
|
11
|
+
|
|
12
|
+
# @!attribute objective
|
|
13
|
+
# Metadata for ephemeral operations and activities (e.g., objectives, executions,
|
|
14
|
+
# runs)
|
|
15
|
+
#
|
|
16
|
+
# @return [Cadenya::Models::OperationMetadata, nil]
|
|
17
|
+
optional :objective, -> { Cadenya::OperationMetadata }
|
|
18
|
+
|
|
19
|
+
# @!attribute task
|
|
20
|
+
#
|
|
21
|
+
# @return [String, nil]
|
|
22
|
+
optional :task, String
|
|
23
|
+
|
|
24
|
+
# @!method initialize(agent: nil, objective: nil, task: nil)
|
|
25
|
+
# Some parameter documentations has been truncated, see
|
|
26
|
+
# {Cadenya::Models::SubAgentSpawned} for more details.
|
|
27
|
+
#
|
|
28
|
+
# @param agent [Cadenya::Models::ResourceMetadata] Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
29
|
+
#
|
|
30
|
+
# @param objective [Cadenya::Models::OperationMetadata] Metadata for ephemeral operations and activities (e.g., objectives, executions,
|
|
31
|
+
#
|
|
32
|
+
# @param task [String]
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Cadenya
|
|
4
|
+
module Models
|
|
5
|
+
class SubAgentUpdated < Cadenya::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute agent
|
|
7
|
+
# BareMetadata contains the minimal metadata for a resource: the ID and an
|
|
8
|
+
# optional human-readable name. These are used for reference fields where the full
|
|
9
|
+
# metadata (account scoping, timestamps, labels, external IDs) is not needed —
|
|
10
|
+
# e.g., the tool references inside an agent variation spec or the tools assigned
|
|
11
|
+
# to an objective. Both fields are server-populated; clients provide IDs through
|
|
12
|
+
# sibling fields rather than by constructing a BareMetadata themselves.
|
|
13
|
+
#
|
|
14
|
+
# @return [Cadenya::Models::BareMetadata, nil]
|
|
15
|
+
optional :agent, -> { Cadenya::BareMetadata }
|
|
16
|
+
|
|
17
|
+
# @!attribute message
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :message, String
|
|
21
|
+
|
|
22
|
+
# @!attribute objective
|
|
23
|
+
# BareMetadata contains the minimal metadata for a resource: the ID and an
|
|
24
|
+
# optional human-readable name. These are used for reference fields where the full
|
|
25
|
+
# metadata (account scoping, timestamps, labels, external IDs) is not needed —
|
|
26
|
+
# e.g., the tool references inside an agent variation spec or the tools assigned
|
|
27
|
+
# to an objective. Both fields are server-populated; clients provide IDs through
|
|
28
|
+
# sibling fields rather than by constructing a BareMetadata themselves.
|
|
29
|
+
#
|
|
30
|
+
# @return [Cadenya::Models::BareMetadata, nil]
|
|
31
|
+
optional :objective, -> { Cadenya::BareMetadata }
|
|
32
|
+
|
|
33
|
+
# @!attribute status
|
|
34
|
+
#
|
|
35
|
+
# @return [Symbol, Cadenya::Models::SubAgentUpdated::Status, nil]
|
|
36
|
+
optional :status, enum: -> { Cadenya::SubAgentUpdated::Status }
|
|
37
|
+
|
|
38
|
+
# @!method initialize(agent: nil, message: nil, objective: nil, status: nil)
|
|
39
|
+
# Some parameter documentations has been truncated, see
|
|
40
|
+
# {Cadenya::Models::SubAgentUpdated} for more details.
|
|
41
|
+
#
|
|
42
|
+
# @param agent [Cadenya::Models::BareMetadata] BareMetadata contains the minimal metadata for a resource: the ID and an
|
|
43
|
+
#
|
|
44
|
+
# @param message [String]
|
|
45
|
+
#
|
|
46
|
+
# @param objective [Cadenya::Models::BareMetadata] BareMetadata contains the minimal metadata for a resource: the ID and an
|
|
47
|
+
#
|
|
48
|
+
# @param status [Symbol, Cadenya::Models::SubAgentUpdated::Status]
|
|
49
|
+
|
|
50
|
+
# @see Cadenya::Models::SubAgentUpdated#status
|
|
51
|
+
module Status
|
|
52
|
+
extend Cadenya::Internal::Type::Enum
|
|
53
|
+
|
|
54
|
+
STATUS_UNSPECIFIED = :STATUS_UNSPECIFIED
|
|
55
|
+
STATUS_PENDING = :STATUS_PENDING
|
|
56
|
+
STATUS_RUNNING = :STATUS_RUNNING
|
|
57
|
+
STATUS_COMPLETED = :STATUS_COMPLETED
|
|
58
|
+
STATUS_FAILED = :STATUS_FAILED
|
|
59
|
+
STATUS_CANCELLED = :STATUS_CANCELLED
|
|
60
|
+
|
|
61
|
+
# @!method self.values
|
|
62
|
+
# @return [Array<Symbol>]
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
data/lib/cadenya/models.rb
CHANGED
|
@@ -217,7 +217,9 @@ module Cadenya
|
|
|
217
217
|
|
|
218
218
|
SearchSearchToolsOrToolSetsParams = Cadenya::Models::SearchSearchToolsOrToolSetsParams
|
|
219
219
|
|
|
220
|
-
|
|
220
|
+
SubAgentSpawned = Cadenya::Models::SubAgentSpawned
|
|
221
|
+
|
|
222
|
+
SubAgentUpdated = Cadenya::Models::SubAgentUpdated
|
|
221
223
|
|
|
222
224
|
SyncCompleted = Cadenya::Models::SyncCompleted
|
|
223
225
|
|
|
@@ -20,7 +20,7 @@ module Cadenya
|
|
|
20
20
|
#
|
|
21
21
|
# Creates a new objective in the workspace
|
|
22
22
|
#
|
|
23
|
-
# @overload create(workspace_id, agent_id:, data:, metadata
|
|
23
|
+
# @overload create(workspace_id, agent_id:, data:, metadata: nil, variation_id: nil, request_options: {})
|
|
24
24
|
#
|
|
25
25
|
# @param workspace_id [String]
|
|
26
26
|
#
|
|
@@ -269,7 +269,7 @@ module Cadenya
|
|
|
269
269
|
|
|
270
270
|
# Lists all events for an objective
|
|
271
271
|
#
|
|
272
|
-
# @overload list_events(objective_id, workspace_id:, cursor: nil, include_info: nil, limit: nil, sort_order: nil, window_id: nil, request_options: {})
|
|
272
|
+
# @overload list_events(objective_id, workspace_id:, cursor: nil, include_info: nil, limit: nil, since_event_id: nil, sort_order: nil, window_id: nil, request_options: {})
|
|
273
273
|
#
|
|
274
274
|
# @param objective_id [String] Path param: Objective ID for filtering
|
|
275
275
|
#
|
|
@@ -281,6 +281,8 @@ module Cadenya
|
|
|
281
281
|
#
|
|
282
282
|
# @param limit [Integer] Query param: Maximum number of results to return
|
|
283
283
|
#
|
|
284
|
+
# @param since_event_id [String] Query param: Optional string to fetch events since an ID
|
|
285
|
+
#
|
|
284
286
|
# @param sort_order [String] Query param: Sort order for results (asc or desc by creation time)
|
|
285
287
|
#
|
|
286
288
|
# @param window_id [String] Query param: Optional context window ID to filter events by
|
|
@@ -302,6 +304,7 @@ module Cadenya
|
|
|
302
304
|
path: ["v1/workspaces/%1$s/objectives/%2$s/events", workspace_id, objective_id],
|
|
303
305
|
query: query.transform_keys(
|
|
304
306
|
include_info: "includeInfo",
|
|
307
|
+
since_event_id: "sinceEventId",
|
|
305
308
|
sort_order: "sortOrder",
|
|
306
309
|
window_id: "windowId"
|
|
307
310
|
),
|
data/lib/cadenya/version.rb
CHANGED
data/lib/cadenya.rb
CHANGED
|
@@ -222,7 +222,8 @@ require_relative "cadenya/models/resource_metadata"
|
|
|
222
222
|
require_relative "cadenya/models/rotate_webhook_signing_key_response"
|
|
223
223
|
require_relative "cadenya/models/search_search_tools_or_tool_sets_params"
|
|
224
224
|
require_relative "cadenya/models/search_search_tools_or_tool_sets_response"
|
|
225
|
-
require_relative "cadenya/models/
|
|
225
|
+
require_relative "cadenya/models/sub_agent_spawned"
|
|
226
|
+
require_relative "cadenya/models/sub_agent_updated"
|
|
226
227
|
require_relative "cadenya/models/sync_completed"
|
|
227
228
|
require_relative "cadenya/models/sync_failed"
|
|
228
229
|
require_relative "cadenya/models/sync_started"
|
|
@@ -178,11 +178,6 @@ module Cadenya
|
|
|
178
178
|
:OBJECTIVE_EVENT_TYPE_TOOL_CALLED,
|
|
179
179
|
Cadenya::Agents::WebhookDeliveryData::EventType::TaggedSymbol
|
|
180
180
|
)
|
|
181
|
-
OBJECTIVE_EVENT_TYPE_SUB_OBJECTIVE_CREATED =
|
|
182
|
-
T.let(
|
|
183
|
-
:OBJECTIVE_EVENT_TYPE_SUB_OBJECTIVE_CREATED,
|
|
184
|
-
Cadenya::Agents::WebhookDeliveryData::EventType::TaggedSymbol
|
|
185
|
-
)
|
|
186
181
|
OBJECTIVE_EVENT_TYPE_ERROR =
|
|
187
182
|
T.let(
|
|
188
183
|
:OBJECTIVE_EVENT_TYPE_ERROR,
|
|
@@ -218,6 +213,16 @@ module Cadenya
|
|
|
218
213
|
:OBJECTIVE_EVENT_TYPE_CANCELLED,
|
|
219
214
|
Cadenya::Agents::WebhookDeliveryData::EventType::TaggedSymbol
|
|
220
215
|
)
|
|
216
|
+
OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED =
|
|
217
|
+
T.let(
|
|
218
|
+
:OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED,
|
|
219
|
+
Cadenya::Agents::WebhookDeliveryData::EventType::TaggedSymbol
|
|
220
|
+
)
|
|
221
|
+
OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED =
|
|
222
|
+
T.let(
|
|
223
|
+
:OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED,
|
|
224
|
+
Cadenya::Agents::WebhookDeliveryData::EventType::TaggedSymbol
|
|
225
|
+
)
|
|
221
226
|
|
|
222
227
|
sig do
|
|
223
228
|
override.returns(
|
|
@@ -147,11 +147,6 @@ module Cadenya
|
|
|
147
147
|
:OBJECTIVE_EVENT_TYPE_TOOL_CALLED,
|
|
148
148
|
Cadenya::Agents::WebhookDeliveryListParams::EventType::TaggedSymbol
|
|
149
149
|
)
|
|
150
|
-
OBJECTIVE_EVENT_TYPE_SUB_OBJECTIVE_CREATED =
|
|
151
|
-
T.let(
|
|
152
|
-
:OBJECTIVE_EVENT_TYPE_SUB_OBJECTIVE_CREATED,
|
|
153
|
-
Cadenya::Agents::WebhookDeliveryListParams::EventType::TaggedSymbol
|
|
154
|
-
)
|
|
155
150
|
OBJECTIVE_EVENT_TYPE_ERROR =
|
|
156
151
|
T.let(
|
|
157
152
|
:OBJECTIVE_EVENT_TYPE_ERROR,
|
|
@@ -187,6 +182,16 @@ module Cadenya
|
|
|
187
182
|
:OBJECTIVE_EVENT_TYPE_CANCELLED,
|
|
188
183
|
Cadenya::Agents::WebhookDeliveryListParams::EventType::TaggedSymbol
|
|
189
184
|
)
|
|
185
|
+
OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED =
|
|
186
|
+
T.let(
|
|
187
|
+
:OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED,
|
|
188
|
+
Cadenya::Agents::WebhookDeliveryListParams::EventType::TaggedSymbol
|
|
189
|
+
)
|
|
190
|
+
OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED =
|
|
191
|
+
T.let(
|
|
192
|
+
:OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED,
|
|
193
|
+
Cadenya::Agents::WebhookDeliveryListParams::EventType::TaggedSymbol
|
|
194
|
+
)
|
|
190
195
|
|
|
191
196
|
sig do
|
|
192
197
|
override.returns(
|
|
@@ -26,7 +26,7 @@ module Cadenya
|
|
|
26
26
|
# CreateOperationMetadata contains the user-provided fields for creating an
|
|
27
27
|
# operation. Read-only fields (id, account_id, workspace_id, created_at,
|
|
28
28
|
# profile_id) are excluded since they are set by the server.
|
|
29
|
-
sig { returns(Cadenya::CreateOperationMetadata) }
|
|
29
|
+
sig { returns(T.nilable(Cadenya::CreateOperationMetadata)) }
|
|
30
30
|
attr_reader :metadata
|
|
31
31
|
|
|
32
32
|
sig { params(metadata: Cadenya::CreateOperationMetadata::OrHash).void }
|
|
@@ -57,7 +57,7 @@ module Cadenya
|
|
|
57
57
|
# CreateOperationMetadata contains the user-provided fields for creating an
|
|
58
58
|
# operation. Read-only fields (id, account_id, workspace_id, created_at,
|
|
59
59
|
# profile_id) are excluded since they are set by the server.
|
|
60
|
-
metadata
|
|
60
|
+
metadata: nil,
|
|
61
61
|
# Optional explicit variation selection. Overrides the agent's
|
|
62
62
|
# variation_selection_mode.
|
|
63
63
|
variation_id: nil,
|
|
@@ -50,13 +50,17 @@ module Cadenya
|
|
|
50
50
|
sig { params(memory_read: Cadenya::MemoryRead::OrHash).void }
|
|
51
51
|
attr_writer :memory_read
|
|
52
52
|
|
|
53
|
-
sig { returns(T.nilable(Cadenya::
|
|
54
|
-
attr_reader :
|
|
53
|
+
sig { returns(T.nilable(Cadenya::SubAgentSpawned)) }
|
|
54
|
+
attr_reader :sub_agent_spawned
|
|
55
55
|
|
|
56
|
-
sig
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
sig { params(sub_agent_spawned: Cadenya::SubAgentSpawned::OrHash).void }
|
|
57
|
+
attr_writer :sub_agent_spawned
|
|
58
|
+
|
|
59
|
+
sig { returns(T.nilable(Cadenya::SubAgentUpdated)) }
|
|
60
|
+
attr_reader :sub_agent_updated
|
|
61
|
+
|
|
62
|
+
sig { params(sub_agent_updated: Cadenya::SubAgentUpdated::OrHash).void }
|
|
63
|
+
attr_writer :sub_agent_updated
|
|
60
64
|
|
|
61
65
|
sig { returns(T.nilable(Cadenya::ToolApprovalRequested)) }
|
|
62
66
|
attr_reader :tool_approval_requested
|
|
@@ -117,7 +121,8 @@ module Cadenya
|
|
|
117
121
|
context_window_compacted: Cadenya::ContextWindowCompacted::OrHash,
|
|
118
122
|
error: Cadenya::ObjectiveError::OrHash,
|
|
119
123
|
memory_read: Cadenya::MemoryRead::OrHash,
|
|
120
|
-
|
|
124
|
+
sub_agent_spawned: Cadenya::SubAgentSpawned::OrHash,
|
|
125
|
+
sub_agent_updated: Cadenya::SubAgentUpdated::OrHash,
|
|
121
126
|
tool_approval_requested: Cadenya::ToolApprovalRequested::OrHash,
|
|
122
127
|
tool_approved: Cadenya::ToolApproved::OrHash,
|
|
123
128
|
tool_called: Cadenya::ToolCalled::OrHash,
|
|
@@ -140,7 +145,8 @@ module Cadenya
|
|
|
140
145
|
# stack and loads an entry. Lookups that miss (key not found in any layer) do not
|
|
141
146
|
# emit this event.
|
|
142
147
|
memory_read: nil,
|
|
143
|
-
|
|
148
|
+
sub_agent_spawned: nil,
|
|
149
|
+
sub_agent_updated: nil,
|
|
144
150
|
tool_approval_requested: nil,
|
|
145
151
|
tool_approved: nil,
|
|
146
152
|
tool_called: nil,
|
|
@@ -160,7 +166,8 @@ module Cadenya
|
|
|
160
166
|
context_window_compacted: Cadenya::ContextWindowCompacted,
|
|
161
167
|
error: Cadenya::ObjectiveError,
|
|
162
168
|
memory_read: Cadenya::MemoryRead,
|
|
163
|
-
|
|
169
|
+
sub_agent_spawned: Cadenya::SubAgentSpawned,
|
|
170
|
+
sub_agent_updated: Cadenya::SubAgentUpdated,
|
|
164
171
|
tool_approval_requested: Cadenya::ToolApprovalRequested,
|
|
165
172
|
tool_approved: Cadenya::ToolApproved,
|
|
166
173
|
tool_called: Cadenya::ToolCalled,
|
|
@@ -38,6 +38,13 @@ module Cadenya
|
|
|
38
38
|
sig { params(limit: Integer).void }
|
|
39
39
|
attr_writer :limit
|
|
40
40
|
|
|
41
|
+
# Optional string to fetch events since an ID
|
|
42
|
+
sig { returns(T.nilable(String)) }
|
|
43
|
+
attr_reader :since_event_id
|
|
44
|
+
|
|
45
|
+
sig { params(since_event_id: String).void }
|
|
46
|
+
attr_writer :since_event_id
|
|
47
|
+
|
|
41
48
|
# Sort order for results (asc or desc by creation time)
|
|
42
49
|
sig { returns(T.nilable(String)) }
|
|
43
50
|
attr_reader :sort_order
|
|
@@ -59,6 +66,7 @@ module Cadenya
|
|
|
59
66
|
cursor: String,
|
|
60
67
|
include_info: T::Boolean,
|
|
61
68
|
limit: Integer,
|
|
69
|
+
since_event_id: String,
|
|
62
70
|
sort_order: String,
|
|
63
71
|
window_id: String,
|
|
64
72
|
request_options: Cadenya::RequestOptions::OrHash
|
|
@@ -73,6 +81,8 @@ module Cadenya
|
|
|
73
81
|
include_info: nil,
|
|
74
82
|
# Maximum number of results to return
|
|
75
83
|
limit: nil,
|
|
84
|
+
# Optional string to fetch events since an ID
|
|
85
|
+
since_event_id: nil,
|
|
76
86
|
# Sort order for results (asc or desc by creation time)
|
|
77
87
|
sort_order: nil,
|
|
78
88
|
# Optional context window ID to filter events by
|
|
@@ -89,6 +99,7 @@ module Cadenya
|
|
|
89
99
|
cursor: String,
|
|
90
100
|
include_info: T::Boolean,
|
|
91
101
|
limit: Integer,
|
|
102
|
+
since_event_id: String,
|
|
92
103
|
sort_order: String,
|
|
93
104
|
window_id: String,
|
|
94
105
|
request_options: Cadenya::RequestOptions
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Cadenya
|
|
4
|
+
module Models
|
|
5
|
+
class SubAgentSpawned < Cadenya::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Cadenya::SubAgentSpawned, Cadenya::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
12
|
+
sig { returns(T.nilable(Cadenya::ResourceMetadata)) }
|
|
13
|
+
attr_reader :agent
|
|
14
|
+
|
|
15
|
+
sig { params(agent: Cadenya::ResourceMetadata::OrHash).void }
|
|
16
|
+
attr_writer :agent
|
|
17
|
+
|
|
18
|
+
# Metadata for ephemeral operations and activities (e.g., objectives, executions,
|
|
19
|
+
# runs)
|
|
20
|
+
sig { returns(T.nilable(Cadenya::OperationMetadata)) }
|
|
21
|
+
attr_reader :objective
|
|
22
|
+
|
|
23
|
+
sig { params(objective: Cadenya::OperationMetadata::OrHash).void }
|
|
24
|
+
attr_writer :objective
|
|
25
|
+
|
|
26
|
+
sig { returns(T.nilable(String)) }
|
|
27
|
+
attr_reader :task
|
|
28
|
+
|
|
29
|
+
sig { params(task: String).void }
|
|
30
|
+
attr_writer :task
|
|
31
|
+
|
|
32
|
+
sig do
|
|
33
|
+
params(
|
|
34
|
+
agent: Cadenya::ResourceMetadata::OrHash,
|
|
35
|
+
objective: Cadenya::OperationMetadata::OrHash,
|
|
36
|
+
task: String
|
|
37
|
+
).returns(T.attached_class)
|
|
38
|
+
end
|
|
39
|
+
def self.new(
|
|
40
|
+
# Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
41
|
+
agent: nil,
|
|
42
|
+
# Metadata for ephemeral operations and activities (e.g., objectives, executions,
|
|
43
|
+
# runs)
|
|
44
|
+
objective: nil,
|
|
45
|
+
task: nil
|
|
46
|
+
)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
sig do
|
|
50
|
+
override.returns(
|
|
51
|
+
{
|
|
52
|
+
agent: Cadenya::ResourceMetadata,
|
|
53
|
+
objective: Cadenya::OperationMetadata,
|
|
54
|
+
task: String
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
end
|
|
58
|
+
def to_hash
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Cadenya
|
|
4
|
+
module Models
|
|
5
|
+
class SubAgentUpdated < Cadenya::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Cadenya::SubAgentUpdated, Cadenya::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# BareMetadata contains the minimal metadata for a resource: the ID and an
|
|
12
|
+
# optional human-readable name. These are used for reference fields where the full
|
|
13
|
+
# metadata (account scoping, timestamps, labels, external IDs) is not needed —
|
|
14
|
+
# e.g., the tool references inside an agent variation spec or the tools assigned
|
|
15
|
+
# to an objective. Both fields are server-populated; clients provide IDs through
|
|
16
|
+
# sibling fields rather than by constructing a BareMetadata themselves.
|
|
17
|
+
sig { returns(T.nilable(Cadenya::BareMetadata)) }
|
|
18
|
+
attr_reader :agent
|
|
19
|
+
|
|
20
|
+
sig { params(agent: Cadenya::BareMetadata::OrHash).void }
|
|
21
|
+
attr_writer :agent
|
|
22
|
+
|
|
23
|
+
sig { returns(T.nilable(String)) }
|
|
24
|
+
attr_reader :message
|
|
25
|
+
|
|
26
|
+
sig { params(message: String).void }
|
|
27
|
+
attr_writer :message
|
|
28
|
+
|
|
29
|
+
# BareMetadata contains the minimal metadata for a resource: the ID and an
|
|
30
|
+
# optional human-readable name. These are used for reference fields where the full
|
|
31
|
+
# metadata (account scoping, timestamps, labels, external IDs) is not needed —
|
|
32
|
+
# e.g., the tool references inside an agent variation spec or the tools assigned
|
|
33
|
+
# to an objective. Both fields are server-populated; clients provide IDs through
|
|
34
|
+
# sibling fields rather than by constructing a BareMetadata themselves.
|
|
35
|
+
sig { returns(T.nilable(Cadenya::BareMetadata)) }
|
|
36
|
+
attr_reader :objective
|
|
37
|
+
|
|
38
|
+
sig { params(objective: Cadenya::BareMetadata::OrHash).void }
|
|
39
|
+
attr_writer :objective
|
|
40
|
+
|
|
41
|
+
sig { returns(T.nilable(Cadenya::SubAgentUpdated::Status::TaggedSymbol)) }
|
|
42
|
+
attr_reader :status
|
|
43
|
+
|
|
44
|
+
sig { params(status: Cadenya::SubAgentUpdated::Status::OrSymbol).void }
|
|
45
|
+
attr_writer :status
|
|
46
|
+
|
|
47
|
+
sig do
|
|
48
|
+
params(
|
|
49
|
+
agent: Cadenya::BareMetadata::OrHash,
|
|
50
|
+
message: String,
|
|
51
|
+
objective: Cadenya::BareMetadata::OrHash,
|
|
52
|
+
status: Cadenya::SubAgentUpdated::Status::OrSymbol
|
|
53
|
+
).returns(T.attached_class)
|
|
54
|
+
end
|
|
55
|
+
def self.new(
|
|
56
|
+
# BareMetadata contains the minimal metadata for a resource: the ID and an
|
|
57
|
+
# optional human-readable name. These are used for reference fields where the full
|
|
58
|
+
# metadata (account scoping, timestamps, labels, external IDs) is not needed —
|
|
59
|
+
# e.g., the tool references inside an agent variation spec or the tools assigned
|
|
60
|
+
# to an objective. Both fields are server-populated; clients provide IDs through
|
|
61
|
+
# sibling fields rather than by constructing a BareMetadata themselves.
|
|
62
|
+
agent: nil,
|
|
63
|
+
message: nil,
|
|
64
|
+
# BareMetadata contains the minimal metadata for a resource: the ID and an
|
|
65
|
+
# optional human-readable name. These are used for reference fields where the full
|
|
66
|
+
# metadata (account scoping, timestamps, labels, external IDs) is not needed —
|
|
67
|
+
# e.g., the tool references inside an agent variation spec or the tools assigned
|
|
68
|
+
# to an objective. Both fields are server-populated; clients provide IDs through
|
|
69
|
+
# sibling fields rather than by constructing a BareMetadata themselves.
|
|
70
|
+
objective: nil,
|
|
71
|
+
status: nil
|
|
72
|
+
)
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
sig do
|
|
76
|
+
override.returns(
|
|
77
|
+
{
|
|
78
|
+
agent: Cadenya::BareMetadata,
|
|
79
|
+
message: String,
|
|
80
|
+
objective: Cadenya::BareMetadata,
|
|
81
|
+
status: Cadenya::SubAgentUpdated::Status::TaggedSymbol
|
|
82
|
+
}
|
|
83
|
+
)
|
|
84
|
+
end
|
|
85
|
+
def to_hash
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
module Status
|
|
89
|
+
extend Cadenya::Internal::Type::Enum
|
|
90
|
+
|
|
91
|
+
TaggedSymbol =
|
|
92
|
+
T.type_alias { T.all(Symbol, Cadenya::SubAgentUpdated::Status) }
|
|
93
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
94
|
+
|
|
95
|
+
STATUS_UNSPECIFIED =
|
|
96
|
+
T.let(
|
|
97
|
+
:STATUS_UNSPECIFIED,
|
|
98
|
+
Cadenya::SubAgentUpdated::Status::TaggedSymbol
|
|
99
|
+
)
|
|
100
|
+
STATUS_PENDING =
|
|
101
|
+
T.let(:STATUS_PENDING, Cadenya::SubAgentUpdated::Status::TaggedSymbol)
|
|
102
|
+
STATUS_RUNNING =
|
|
103
|
+
T.let(:STATUS_RUNNING, Cadenya::SubAgentUpdated::Status::TaggedSymbol)
|
|
104
|
+
STATUS_COMPLETED =
|
|
105
|
+
T.let(
|
|
106
|
+
:STATUS_COMPLETED,
|
|
107
|
+
Cadenya::SubAgentUpdated::Status::TaggedSymbol
|
|
108
|
+
)
|
|
109
|
+
STATUS_FAILED =
|
|
110
|
+
T.let(:STATUS_FAILED, Cadenya::SubAgentUpdated::Status::TaggedSymbol)
|
|
111
|
+
STATUS_CANCELLED =
|
|
112
|
+
T.let(
|
|
113
|
+
:STATUS_CANCELLED,
|
|
114
|
+
Cadenya::SubAgentUpdated::Status::TaggedSymbol
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
sig do
|
|
118
|
+
override.returns(
|
|
119
|
+
T::Array[Cadenya::SubAgentUpdated::Status::TaggedSymbol]
|
|
120
|
+
)
|
|
121
|
+
end
|
|
122
|
+
def self.values
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
end
|
data/rbi/cadenya/models.rbi
CHANGED
|
@@ -186,7 +186,9 @@ module Cadenya
|
|
|
186
186
|
SearchSearchToolsOrToolSetsParams =
|
|
187
187
|
Cadenya::Models::SearchSearchToolsOrToolSetsParams
|
|
188
188
|
|
|
189
|
-
|
|
189
|
+
SubAgentSpawned = Cadenya::Models::SubAgentSpawned
|
|
190
|
+
|
|
191
|
+
SubAgentUpdated = Cadenya::Models::SubAgentUpdated
|
|
190
192
|
|
|
191
193
|
SyncCompleted = Cadenya::Models::SyncCompleted
|
|
192
194
|
|
|
@@ -33,7 +33,7 @@ module Cadenya
|
|
|
33
33
|
# CreateOperationMetadata contains the user-provided fields for creating an
|
|
34
34
|
# operation. Read-only fields (id, account_id, workspace_id, created_at,
|
|
35
35
|
# profile_id) are excluded since they are set by the server.
|
|
36
|
-
metadata
|
|
36
|
+
metadata: nil,
|
|
37
37
|
# Optional explicit variation selection. Overrides the agent's
|
|
38
38
|
# variation_selection_mode.
|
|
39
39
|
variation_id: nil,
|
|
@@ -207,6 +207,7 @@ module Cadenya
|
|
|
207
207
|
cursor: String,
|
|
208
208
|
include_info: T::Boolean,
|
|
209
209
|
limit: Integer,
|
|
210
|
+
since_event_id: String,
|
|
210
211
|
sort_order: String,
|
|
211
212
|
window_id: String,
|
|
212
213
|
request_options: Cadenya::RequestOptions::OrHash
|
|
@@ -227,6 +228,8 @@ module Cadenya
|
|
|
227
228
|
include_info: nil,
|
|
228
229
|
# Query param: Maximum number of results to return
|
|
229
230
|
limit: nil,
|
|
231
|
+
# Query param: Optional string to fetch events since an ID
|
|
232
|
+
since_event_id: nil,
|
|
230
233
|
# Query param: Sort order for results (asc or desc by creation time)
|
|
231
234
|
sort_order: nil,
|
|
232
235
|
# Query param: Optional context window ID to filter events by
|
|
@@ -95,7 +95,6 @@ module Cadenya
|
|
|
95
95
|
| :OBJECTIVE_EVENT_TYPE_TOOL_APPROVED
|
|
96
96
|
| :OBJECTIVE_EVENT_TYPE_TOOL_DENIED
|
|
97
97
|
| :OBJECTIVE_EVENT_TYPE_TOOL_CALLED
|
|
98
|
-
| :OBJECTIVE_EVENT_TYPE_SUB_OBJECTIVE_CREATED
|
|
99
98
|
| :OBJECTIVE_EVENT_TYPE_ERROR
|
|
100
99
|
| :OBJECTIVE_EVENT_TYPE_ASSISTANT_MESSAGE
|
|
101
100
|
| :OBJECTIVE_EVENT_TYPE_TOOL_RESULT
|
|
@@ -103,6 +102,8 @@ module Cadenya
|
|
|
103
102
|
| :OBJECTIVE_EVENT_TYPE_CONTEXT_WINDOW_COMPACTED
|
|
104
103
|
| :OBJECTIVE_EVENT_TYPE_MEMORY_READ
|
|
105
104
|
| :OBJECTIVE_EVENT_TYPE_CANCELLED
|
|
105
|
+
| :OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED
|
|
106
|
+
| :OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED
|
|
106
107
|
|
|
107
108
|
module EventType
|
|
108
109
|
extend Cadenya::Internal::Type::Enum
|
|
@@ -113,7 +114,6 @@ module Cadenya
|
|
|
113
114
|
OBJECTIVE_EVENT_TYPE_TOOL_APPROVED: :OBJECTIVE_EVENT_TYPE_TOOL_APPROVED
|
|
114
115
|
OBJECTIVE_EVENT_TYPE_TOOL_DENIED: :OBJECTIVE_EVENT_TYPE_TOOL_DENIED
|
|
115
116
|
OBJECTIVE_EVENT_TYPE_TOOL_CALLED: :OBJECTIVE_EVENT_TYPE_TOOL_CALLED
|
|
116
|
-
OBJECTIVE_EVENT_TYPE_SUB_OBJECTIVE_CREATED: :OBJECTIVE_EVENT_TYPE_SUB_OBJECTIVE_CREATED
|
|
117
117
|
OBJECTIVE_EVENT_TYPE_ERROR: :OBJECTIVE_EVENT_TYPE_ERROR
|
|
118
118
|
OBJECTIVE_EVENT_TYPE_ASSISTANT_MESSAGE: :OBJECTIVE_EVENT_TYPE_ASSISTANT_MESSAGE
|
|
119
119
|
OBJECTIVE_EVENT_TYPE_TOOL_RESULT: :OBJECTIVE_EVENT_TYPE_TOOL_RESULT
|
|
@@ -121,6 +121,8 @@ module Cadenya
|
|
|
121
121
|
OBJECTIVE_EVENT_TYPE_CONTEXT_WINDOW_COMPACTED: :OBJECTIVE_EVENT_TYPE_CONTEXT_WINDOW_COMPACTED
|
|
122
122
|
OBJECTIVE_EVENT_TYPE_MEMORY_READ: :OBJECTIVE_EVENT_TYPE_MEMORY_READ
|
|
123
123
|
OBJECTIVE_EVENT_TYPE_CANCELLED: :OBJECTIVE_EVENT_TYPE_CANCELLED
|
|
124
|
+
OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED: :OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED
|
|
125
|
+
OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED: :OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED
|
|
124
126
|
|
|
125
127
|
def self?.values: -> ::Array[Cadenya::Models::Agents::WebhookDeliveryData::event_type]
|
|
126
128
|
end
|
|
@@ -65,7 +65,6 @@ module Cadenya
|
|
|
65
65
|
| :OBJECTIVE_EVENT_TYPE_TOOL_APPROVED
|
|
66
66
|
| :OBJECTIVE_EVENT_TYPE_TOOL_DENIED
|
|
67
67
|
| :OBJECTIVE_EVENT_TYPE_TOOL_CALLED
|
|
68
|
-
| :OBJECTIVE_EVENT_TYPE_SUB_OBJECTIVE_CREATED
|
|
69
68
|
| :OBJECTIVE_EVENT_TYPE_ERROR
|
|
70
69
|
| :OBJECTIVE_EVENT_TYPE_ASSISTANT_MESSAGE
|
|
71
70
|
| :OBJECTIVE_EVENT_TYPE_TOOL_RESULT
|
|
@@ -73,6 +72,8 @@ module Cadenya
|
|
|
73
72
|
| :OBJECTIVE_EVENT_TYPE_CONTEXT_WINDOW_COMPACTED
|
|
74
73
|
| :OBJECTIVE_EVENT_TYPE_MEMORY_READ
|
|
75
74
|
| :OBJECTIVE_EVENT_TYPE_CANCELLED
|
|
75
|
+
| :OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED
|
|
76
|
+
| :OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED
|
|
76
77
|
|
|
77
78
|
module EventType
|
|
78
79
|
extend Cadenya::Internal::Type::Enum
|
|
@@ -83,7 +84,6 @@ module Cadenya
|
|
|
83
84
|
OBJECTIVE_EVENT_TYPE_TOOL_APPROVED: :OBJECTIVE_EVENT_TYPE_TOOL_APPROVED
|
|
84
85
|
OBJECTIVE_EVENT_TYPE_TOOL_DENIED: :OBJECTIVE_EVENT_TYPE_TOOL_DENIED
|
|
85
86
|
OBJECTIVE_EVENT_TYPE_TOOL_CALLED: :OBJECTIVE_EVENT_TYPE_TOOL_CALLED
|
|
86
|
-
OBJECTIVE_EVENT_TYPE_SUB_OBJECTIVE_CREATED: :OBJECTIVE_EVENT_TYPE_SUB_OBJECTIVE_CREATED
|
|
87
87
|
OBJECTIVE_EVENT_TYPE_ERROR: :OBJECTIVE_EVENT_TYPE_ERROR
|
|
88
88
|
OBJECTIVE_EVENT_TYPE_ASSISTANT_MESSAGE: :OBJECTIVE_EVENT_TYPE_ASSISTANT_MESSAGE
|
|
89
89
|
OBJECTIVE_EVENT_TYPE_TOOL_RESULT: :OBJECTIVE_EVENT_TYPE_TOOL_RESULT
|
|
@@ -91,6 +91,8 @@ module Cadenya
|
|
|
91
91
|
OBJECTIVE_EVENT_TYPE_CONTEXT_WINDOW_COMPACTED: :OBJECTIVE_EVENT_TYPE_CONTEXT_WINDOW_COMPACTED
|
|
92
92
|
OBJECTIVE_EVENT_TYPE_MEMORY_READ: :OBJECTIVE_EVENT_TYPE_MEMORY_READ
|
|
93
93
|
OBJECTIVE_EVENT_TYPE_CANCELLED: :OBJECTIVE_EVENT_TYPE_CANCELLED
|
|
94
|
+
OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED: :OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED
|
|
95
|
+
OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED: :OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED
|
|
94
96
|
|
|
95
97
|
def self?.values: -> ::Array[Cadenya::Models::Agents::WebhookDeliveryListParams::event_type]
|
|
96
98
|
end
|
|
@@ -20,7 +20,11 @@ module Cadenya
|
|
|
20
20
|
|
|
21
21
|
attr_accessor data: Cadenya::ObjectiveData
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
attr_reader metadata: Cadenya::CreateOperationMetadata?
|
|
24
|
+
|
|
25
|
+
def metadata=: (
|
|
26
|
+
Cadenya::CreateOperationMetadata
|
|
27
|
+
) -> Cadenya::CreateOperationMetadata
|
|
24
28
|
|
|
25
29
|
attr_reader variation_id: String?
|
|
26
30
|
|
|
@@ -30,7 +34,7 @@ module Cadenya
|
|
|
30
34
|
workspace_id: String,
|
|
31
35
|
agent_id: String,
|
|
32
36
|
data: Cadenya::ObjectiveData,
|
|
33
|
-
metadata: Cadenya::CreateOperationMetadata,
|
|
37
|
+
?metadata: Cadenya::CreateOperationMetadata,
|
|
34
38
|
?variation_id: String,
|
|
35
39
|
?request_options: Cadenya::request_opts
|
|
36
40
|
) -> void
|
|
@@ -7,7 +7,8 @@ module Cadenya
|
|
|
7
7
|
context_window_compacted: Cadenya::ContextWindowCompacted,
|
|
8
8
|
error: Cadenya::ObjectiveError,
|
|
9
9
|
memory_read: Cadenya::MemoryRead,
|
|
10
|
-
|
|
10
|
+
sub_agent_spawned: Cadenya::SubAgentSpawned,
|
|
11
|
+
sub_agent_updated: Cadenya::SubAgentUpdated,
|
|
11
12
|
tool_approval_requested: Cadenya::ToolApprovalRequested,
|
|
12
13
|
tool_approved: Cadenya::ToolApproved,
|
|
13
14
|
tool_called: Cadenya::ToolCalled,
|
|
@@ -45,11 +46,17 @@ module Cadenya
|
|
|
45
46
|
|
|
46
47
|
def memory_read=: (Cadenya::MemoryRead) -> Cadenya::MemoryRead
|
|
47
48
|
|
|
48
|
-
attr_reader
|
|
49
|
+
attr_reader sub_agent_spawned: Cadenya::SubAgentSpawned?
|
|
49
50
|
|
|
50
|
-
def
|
|
51
|
-
Cadenya::
|
|
52
|
-
) -> Cadenya::
|
|
51
|
+
def sub_agent_spawned=: (
|
|
52
|
+
Cadenya::SubAgentSpawned
|
|
53
|
+
) -> Cadenya::SubAgentSpawned
|
|
54
|
+
|
|
55
|
+
attr_reader sub_agent_updated: Cadenya::SubAgentUpdated?
|
|
56
|
+
|
|
57
|
+
def sub_agent_updated=: (
|
|
58
|
+
Cadenya::SubAgentUpdated
|
|
59
|
+
) -> Cadenya::SubAgentUpdated
|
|
53
60
|
|
|
54
61
|
attr_reader tool_approval_requested: Cadenya::ToolApprovalRequested?
|
|
55
62
|
|
|
@@ -91,7 +98,8 @@ module Cadenya
|
|
|
91
98
|
?context_window_compacted: Cadenya::ContextWindowCompacted,
|
|
92
99
|
?error: Cadenya::ObjectiveError,
|
|
93
100
|
?memory_read: Cadenya::MemoryRead,
|
|
94
|
-
?
|
|
101
|
+
?sub_agent_spawned: Cadenya::SubAgentSpawned,
|
|
102
|
+
?sub_agent_updated: Cadenya::SubAgentUpdated,
|
|
95
103
|
?tool_approval_requested: Cadenya::ToolApprovalRequested,
|
|
96
104
|
?tool_approved: Cadenya::ToolApproved,
|
|
97
105
|
?tool_called: Cadenya::ToolCalled,
|
|
@@ -108,7 +116,8 @@ module Cadenya
|
|
|
108
116
|
context_window_compacted: Cadenya::ContextWindowCompacted,
|
|
109
117
|
error: Cadenya::ObjectiveError,
|
|
110
118
|
memory_read: Cadenya::MemoryRead,
|
|
111
|
-
|
|
119
|
+
sub_agent_spawned: Cadenya::SubAgentSpawned,
|
|
120
|
+
sub_agent_updated: Cadenya::SubAgentUpdated,
|
|
112
121
|
tool_approval_requested: Cadenya::ToolApprovalRequested,
|
|
113
122
|
tool_approved: Cadenya::ToolApproved,
|
|
114
123
|
tool_called: Cadenya::ToolCalled,
|
|
@@ -7,6 +7,7 @@ module Cadenya
|
|
|
7
7
|
cursor: String,
|
|
8
8
|
include_info: bool,
|
|
9
9
|
limit: Integer,
|
|
10
|
+
since_event_id: String,
|
|
10
11
|
sort_order: String,
|
|
11
12
|
window_id: String
|
|
12
13
|
}
|
|
@@ -32,6 +33,10 @@ module Cadenya
|
|
|
32
33
|
|
|
33
34
|
def limit=: (Integer) -> Integer
|
|
34
35
|
|
|
36
|
+
attr_reader since_event_id: String?
|
|
37
|
+
|
|
38
|
+
def since_event_id=: (String) -> String
|
|
39
|
+
|
|
35
40
|
attr_reader sort_order: String?
|
|
36
41
|
|
|
37
42
|
def sort_order=: (String) -> String
|
|
@@ -46,6 +51,7 @@ module Cadenya
|
|
|
46
51
|
?cursor: String,
|
|
47
52
|
?include_info: bool,
|
|
48
53
|
?limit: Integer,
|
|
54
|
+
?since_event_id: String,
|
|
49
55
|
?sort_order: String,
|
|
50
56
|
?window_id: String,
|
|
51
57
|
?request_options: Cadenya::request_opts
|
|
@@ -57,6 +63,7 @@ module Cadenya
|
|
|
57
63
|
cursor: String,
|
|
58
64
|
include_info: bool,
|
|
59
65
|
limit: Integer,
|
|
66
|
+
since_event_id: String,
|
|
60
67
|
sort_order: String,
|
|
61
68
|
window_id: String,
|
|
62
69
|
request_options: Cadenya::RequestOptions
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module Cadenya
|
|
2
|
+
module Models
|
|
3
|
+
type sub_agent_spawned =
|
|
4
|
+
{
|
|
5
|
+
agent: Cadenya::ResourceMetadata,
|
|
6
|
+
objective: Cadenya::OperationMetadata,
|
|
7
|
+
task: String
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class SubAgentSpawned < Cadenya::Internal::Type::BaseModel
|
|
11
|
+
attr_reader agent: Cadenya::ResourceMetadata?
|
|
12
|
+
|
|
13
|
+
def agent=: (Cadenya::ResourceMetadata) -> Cadenya::ResourceMetadata
|
|
14
|
+
|
|
15
|
+
attr_reader objective: Cadenya::OperationMetadata?
|
|
16
|
+
|
|
17
|
+
def objective=: (Cadenya::OperationMetadata) -> Cadenya::OperationMetadata
|
|
18
|
+
|
|
19
|
+
attr_reader task: String?
|
|
20
|
+
|
|
21
|
+
def task=: (String) -> String
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
?agent: Cadenya::ResourceMetadata,
|
|
25
|
+
?objective: Cadenya::OperationMetadata,
|
|
26
|
+
?task: String
|
|
27
|
+
) -> void
|
|
28
|
+
|
|
29
|
+
def to_hash: -> {
|
|
30
|
+
agent: Cadenya::ResourceMetadata,
|
|
31
|
+
objective: Cadenya::OperationMetadata,
|
|
32
|
+
task: String
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
module Cadenya
|
|
2
|
+
module Models
|
|
3
|
+
type sub_agent_updated =
|
|
4
|
+
{
|
|
5
|
+
agent: Cadenya::BareMetadata,
|
|
6
|
+
message: String,
|
|
7
|
+
objective: Cadenya::BareMetadata,
|
|
8
|
+
status: Cadenya::Models::SubAgentUpdated::status
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class SubAgentUpdated < Cadenya::Internal::Type::BaseModel
|
|
12
|
+
attr_reader agent: Cadenya::BareMetadata?
|
|
13
|
+
|
|
14
|
+
def agent=: (Cadenya::BareMetadata) -> Cadenya::BareMetadata
|
|
15
|
+
|
|
16
|
+
attr_reader message: String?
|
|
17
|
+
|
|
18
|
+
def message=: (String) -> String
|
|
19
|
+
|
|
20
|
+
attr_reader objective: Cadenya::BareMetadata?
|
|
21
|
+
|
|
22
|
+
def objective=: (Cadenya::BareMetadata) -> Cadenya::BareMetadata
|
|
23
|
+
|
|
24
|
+
attr_reader status: Cadenya::Models::SubAgentUpdated::status?
|
|
25
|
+
|
|
26
|
+
def status=: (
|
|
27
|
+
Cadenya::Models::SubAgentUpdated::status
|
|
28
|
+
) -> Cadenya::Models::SubAgentUpdated::status
|
|
29
|
+
|
|
30
|
+
def initialize: (
|
|
31
|
+
?agent: Cadenya::BareMetadata,
|
|
32
|
+
?message: String,
|
|
33
|
+
?objective: Cadenya::BareMetadata,
|
|
34
|
+
?status: Cadenya::Models::SubAgentUpdated::status
|
|
35
|
+
) -> void
|
|
36
|
+
|
|
37
|
+
def to_hash: -> {
|
|
38
|
+
agent: Cadenya::BareMetadata,
|
|
39
|
+
message: String,
|
|
40
|
+
objective: Cadenya::BareMetadata,
|
|
41
|
+
status: Cadenya::Models::SubAgentUpdated::status
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
type status =
|
|
45
|
+
:STATUS_UNSPECIFIED
|
|
46
|
+
| :STATUS_PENDING
|
|
47
|
+
| :STATUS_RUNNING
|
|
48
|
+
| :STATUS_COMPLETED
|
|
49
|
+
| :STATUS_FAILED
|
|
50
|
+
| :STATUS_CANCELLED
|
|
51
|
+
|
|
52
|
+
module Status
|
|
53
|
+
extend Cadenya::Internal::Type::Enum
|
|
54
|
+
|
|
55
|
+
STATUS_UNSPECIFIED: :STATUS_UNSPECIFIED
|
|
56
|
+
STATUS_PENDING: :STATUS_PENDING
|
|
57
|
+
STATUS_RUNNING: :STATUS_RUNNING
|
|
58
|
+
STATUS_COMPLETED: :STATUS_COMPLETED
|
|
59
|
+
STATUS_FAILED: :STATUS_FAILED
|
|
60
|
+
STATUS_CANCELLED: :STATUS_CANCELLED
|
|
61
|
+
|
|
62
|
+
def self?.values: -> ::Array[Cadenya::Models::SubAgentUpdated::status]
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
data/sig/cadenya/models.rbs
CHANGED
|
@@ -177,7 +177,9 @@ module Cadenya
|
|
|
177
177
|
|
|
178
178
|
class SearchSearchToolsOrToolSetsParams = Cadenya::Models::SearchSearchToolsOrToolSetsParams
|
|
179
179
|
|
|
180
|
-
class
|
|
180
|
+
class SubAgentSpawned = Cadenya::Models::SubAgentSpawned
|
|
181
|
+
|
|
182
|
+
class SubAgentUpdated = Cadenya::Models::SubAgentUpdated
|
|
181
183
|
|
|
182
184
|
class SyncCompleted = Cadenya::Models::SyncCompleted
|
|
183
185
|
|
|
@@ -13,7 +13,7 @@ module Cadenya
|
|
|
13
13
|
String workspace_id,
|
|
14
14
|
agent_id: String,
|
|
15
15
|
data: Cadenya::ObjectiveData,
|
|
16
|
-
metadata: Cadenya::CreateOperationMetadata,
|
|
16
|
+
?metadata: Cadenya::CreateOperationMetadata,
|
|
17
17
|
?variation_id: String,
|
|
18
18
|
?request_options: Cadenya::request_opts
|
|
19
19
|
) -> Cadenya::Objective
|
|
@@ -76,6 +76,7 @@ module Cadenya
|
|
|
76
76
|
?cursor: String,
|
|
77
77
|
?include_info: bool,
|
|
78
78
|
?limit: Integer,
|
|
79
|
+
?since_event_id: String,
|
|
79
80
|
?sort_order: String,
|
|
80
81
|
?window_id: String,
|
|
81
82
|
?request_options: Cadenya::request_opts
|
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.2.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-05-
|
|
11
|
+
date: 2026-05-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -252,7 +252,8 @@ files:
|
|
|
252
252
|
- lib/cadenya/models/rotate_webhook_signing_key_response.rb
|
|
253
253
|
- lib/cadenya/models/search_search_tools_or_tool_sets_params.rb
|
|
254
254
|
- lib/cadenya/models/search_search_tools_or_tool_sets_response.rb
|
|
255
|
-
- lib/cadenya/models/
|
|
255
|
+
- lib/cadenya/models/sub_agent_spawned.rb
|
|
256
|
+
- lib/cadenya/models/sub_agent_updated.rb
|
|
256
257
|
- lib/cadenya/models/sync_completed.rb
|
|
257
258
|
- lib/cadenya/models/sync_failed.rb
|
|
258
259
|
- lib/cadenya/models/sync_started.rb
|
|
@@ -530,7 +531,8 @@ files:
|
|
|
530
531
|
- rbi/cadenya/models/rotate_webhook_signing_key_response.rbi
|
|
531
532
|
- rbi/cadenya/models/search_search_tools_or_tool_sets_params.rbi
|
|
532
533
|
- rbi/cadenya/models/search_search_tools_or_tool_sets_response.rbi
|
|
533
|
-
- rbi/cadenya/models/
|
|
534
|
+
- rbi/cadenya/models/sub_agent_spawned.rbi
|
|
535
|
+
- rbi/cadenya/models/sub_agent_updated.rbi
|
|
534
536
|
- rbi/cadenya/models/sync_completed.rbi
|
|
535
537
|
- rbi/cadenya/models/sync_failed.rbi
|
|
536
538
|
- rbi/cadenya/models/sync_started.rbi
|
|
@@ -807,7 +809,8 @@ files:
|
|
|
807
809
|
- sig/cadenya/models/rotate_webhook_signing_key_response.rbs
|
|
808
810
|
- sig/cadenya/models/search_search_tools_or_tool_sets_params.rbs
|
|
809
811
|
- sig/cadenya/models/search_search_tools_or_tool_sets_response.rbs
|
|
810
|
-
- sig/cadenya/models/
|
|
812
|
+
- sig/cadenya/models/sub_agent_spawned.rbs
|
|
813
|
+
- sig/cadenya/models/sub_agent_updated.rbs
|
|
811
814
|
- sig/cadenya/models/sync_completed.rbs
|
|
812
815
|
- sig/cadenya/models/sync_failed.rbs
|
|
813
816
|
- sig/cadenya/models/sync_started.rbs
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Cadenya
|
|
4
|
-
module Models
|
|
5
|
-
class SubObjectiveCreated < Cadenya::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute metadata
|
|
7
|
-
# Metadata for ephemeral operations and activities (e.g., objectives, executions,
|
|
8
|
-
# runs)
|
|
9
|
-
#
|
|
10
|
-
# @return [Cadenya::Models::OperationMetadata, nil]
|
|
11
|
-
optional :metadata, -> { Cadenya::OperationMetadata }
|
|
12
|
-
|
|
13
|
-
# @!method initialize(metadata: nil)
|
|
14
|
-
# Some parameter documentations has been truncated, see
|
|
15
|
-
# {Cadenya::Models::SubObjectiveCreated} for more details.
|
|
16
|
-
#
|
|
17
|
-
# @param metadata [Cadenya::Models::OperationMetadata] Metadata for ephemeral operations and activities (e.g., objectives, executions,
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Cadenya
|
|
4
|
-
module Models
|
|
5
|
-
class SubObjectiveCreated < Cadenya::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(Cadenya::SubObjectiveCreated, Cadenya::Internal::AnyHash)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
# Metadata for ephemeral operations and activities (e.g., objectives, executions,
|
|
12
|
-
# runs)
|
|
13
|
-
sig { returns(T.nilable(Cadenya::OperationMetadata)) }
|
|
14
|
-
attr_reader :metadata
|
|
15
|
-
|
|
16
|
-
sig { params(metadata: Cadenya::OperationMetadata::OrHash).void }
|
|
17
|
-
attr_writer :metadata
|
|
18
|
-
|
|
19
|
-
sig do
|
|
20
|
-
params(metadata: Cadenya::OperationMetadata::OrHash).returns(
|
|
21
|
-
T.attached_class
|
|
22
|
-
)
|
|
23
|
-
end
|
|
24
|
-
def self.new(
|
|
25
|
-
# Metadata for ephemeral operations and activities (e.g., objectives, executions,
|
|
26
|
-
# runs)
|
|
27
|
-
metadata: nil
|
|
28
|
-
)
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
sig { override.returns({ metadata: Cadenya::OperationMetadata }) }
|
|
32
|
-
def to_hash
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
end
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
module Cadenya
|
|
2
|
-
module Models
|
|
3
|
-
type sub_objective_created = { metadata: Cadenya::OperationMetadata }
|
|
4
|
-
|
|
5
|
-
class SubObjectiveCreated < Cadenya::Internal::Type::BaseModel
|
|
6
|
-
attr_reader metadata: Cadenya::OperationMetadata?
|
|
7
|
-
|
|
8
|
-
def metadata=: (Cadenya::OperationMetadata) -> Cadenya::OperationMetadata
|
|
9
|
-
|
|
10
|
-
def initialize: (?metadata: Cadenya::OperationMetadata) -> void
|
|
11
|
-
|
|
12
|
-
def to_hash: -> { metadata: Cadenya::OperationMetadata }
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|