cadenya 0.30.0 → 0.31.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5cf6a4a48bd9ffd441f8fb6b4a6ee91fc25a5296c50d52e49ec22892ebec3a87
4
- data.tar.gz: c787c51e169c0eea08e7e61773b06df45a3bde4f5749ed82f2188c488333b2e4
3
+ metadata.gz: dac0e8c6022a63f3c33c62fca0c5bb8ba01434057ed39f8550e2e47069c6e701
4
+ data.tar.gz: 8612305347fd260fc37629022d774ef83a6b8a964f76dcfaca996810f86a4ecc
5
5
  SHA512:
6
- metadata.gz: a3136f051b1bd97d922220532c5daf6d511aea663ec00c9831729c45bcbbda56a3d7e860072448e3ffca1a8a19839da4ec44cec2b3c31ab91d5940aa35ef171b
7
- data.tar.gz: 33f6214ff31c4612cf1024908088b7727e818ef15d14ab740f3d51b4ecd1f33a7c4745d5d0aa2403344c1270fd5ec8b17f20b3e81e661540ed7f3b8144daa118
6
+ metadata.gz: 6805e7d3a55694fbcbcbaba00c56dbfd7eae5b28e5a6b9b7a2e524ac902cfb1f6a79fa03dd282b7dde3d88954b51d7d7c6a3b30ec88e6f71eb83b3a76f220c84
7
+ data.tar.gz: 10847a32205e46f2b42a110d458cb1236dafcbc1d55bce5aabc80dcf334aee9dba326b7a660ee98e05f0bc35fddd60f7a5072f602f1b7936d41ca50c77d694c6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.31.0 (2026-07-07)
4
+
5
+ Full Changelog: [v0.30.0...v0.31.0](https://github.com/cadenya/cadenya-ruby/compare/v0.30.0...v0.31.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([7b43203](https://github.com/cadenya/cadenya-ruby/commit/7b43203524536c3646637effe7f6c0babb3911a7))
10
+
3
11
  ## 0.30.0 (2026-07-06)
4
12
 
5
13
  Full Changelog: [v0.29.0...v0.30.0](https://github.com/cadenya/cadenya-ruby/compare/v0.29.0...v0.30.0)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "cadenya", "~> 0.30.0"
20
+ gem "cadenya", "~> 0.31.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -4,6 +4,15 @@ module Cadenya
4
4
  module Models
5
5
  module Agents
6
6
  class AgentVariationSpecConstraints < Cadenya::Internal::Type::BaseModel
7
+ # @!attribute inactivity_timeout
8
+ # How long an objective may sit with no activity (no user messages, no LLM calls)
9
+ # before it is finalized as timed out. Between 1 minute and 24 hours. When not
10
+ # set, objectives are still swept at the system-wide 24 hour maximum — every
11
+ # objective eventually reaches a terminal state.
12
+ #
13
+ # @return [Integer, nil]
14
+ optional :inactivity_timeout, Integer, api_name: :inactivityTimeout
15
+
7
16
  # @!attribute max_sub_objectives
8
17
  # The maximum number of sub-objectives that can be created. 0 means no limit.
9
18
  #
@@ -16,7 +25,12 @@ module Cadenya
16
25
  # @return [Integer, nil]
17
26
  optional :max_tool_calls, Integer, api_name: :maxToolCalls
18
27
 
19
- # @!method initialize(max_sub_objectives: nil, max_tool_calls: nil)
28
+ # @!method initialize(inactivity_timeout: nil, max_sub_objectives: nil, max_tool_calls: nil)
29
+ # Some parameter documentations has been truncated, see
30
+ # {Cadenya::Models::Agents::AgentVariationSpecConstraints} for more details.
31
+ #
32
+ # @param inactivity_timeout [Integer] How long an objective may sit with no activity (no user messages, no
33
+ #
20
34
  # @param max_sub_objectives [Integer] The maximum number of sub-objectives that can be created. 0 means no limit.
21
35
  #
22
36
  # @param max_tool_calls [Integer] The maximum number of tool calls that can be made. 0 means no limit.
@@ -136,6 +136,7 @@ module Cadenya
136
136
  OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED = :OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED
137
137
  OBJECTIVE_EVENT_TYPE_FINALIZED = :OBJECTIVE_EVENT_TYPE_FINALIZED
138
138
  OBJECTIVE_EVENT_TYPE_NOTICE = :OBJECTIVE_EVENT_TYPE_NOTICE
139
+ OBJECTIVE_EVENT_TYPE_TIMED_OUT = :OBJECTIVE_EVENT_TYPE_TIMED_OUT
139
140
 
140
141
  # @!method self.values
141
142
  # @return [Array<Symbol>]
@@ -78,6 +78,7 @@ module Cadenya
78
78
  OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED = :OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED
79
79
  OBJECTIVE_EVENT_TYPE_FINALIZED = :OBJECTIVE_EVENT_TYPE_FINALIZED
80
80
  OBJECTIVE_EVENT_TYPE_NOTICE = :OBJECTIVE_EVENT_TYPE_NOTICE
81
+ OBJECTIVE_EVENT_TYPE_TIMED_OUT = :OBJECTIVE_EVENT_TYPE_TIMED_OUT
81
82
 
82
83
  # @!method self.values
83
84
  # @return [Array<Symbol>]
@@ -165,6 +165,7 @@ module Cadenya
165
165
  STATE_FAILED = :STATE_FAILED
166
166
  STATE_CANCELLED = :STATE_CANCELLED
167
167
  STATE_FINALIZED = :STATE_FINALIZED
168
+ STATE_TIMED_OUT = :STATE_TIMED_OUT
168
169
 
169
170
  # @!method self.values
170
171
  # @return [Array<Symbol>]
@@ -64,6 +64,17 @@ module Cadenya
64
64
  # @return [Cadenya::Models::SubAgentUpdated, nil]
65
65
  optional :sub_agent_updated, -> { Cadenya::SubAgentUpdated }, api_name: :subAgentUpdated
66
66
 
67
+ # @!attribute timed_out
68
+ # ObjectiveTimedOut is the terminal event written when an objective is finalized
69
+ # by the inactivity sweep because it saw no activity (no user messages, no LLM
70
+ # calls) within its variation's inactivity timeout — or the system-wide 24 hour
71
+ # maximum when no timeout is configured. The objective produces no output. After
72
+ # this event, the objective is super-terminal: no further iterations, compaction,
73
+ # or continuation are permitted.
74
+ #
75
+ # @return [Cadenya::Models::ObjectiveEventData::TimedOut, nil]
76
+ optional :timed_out, -> { Cadenya::ObjectiveEventData::TimedOut }, api_name: :timedOut
77
+
67
78
  # @!attribute tool_approval_requested
68
79
  #
69
80
  # @return [Cadenya::Models::ToolApprovalRequested, nil]
@@ -108,7 +119,7 @@ module Cadenya
108
119
  # @return [Cadenya::Models::UserMessage, nil]
109
120
  optional :user_message, -> { Cadenya::UserMessage }, api_name: :userMessage
110
121
 
111
- # @!method initialize(assistant_message: nil, cancelled: nil, context_window_compacted: nil, error: nil, finalized: nil, memory_read: nil, notice: 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)
122
+ # @!method initialize(assistant_message: nil, cancelled: nil, context_window_compacted: nil, error: nil, finalized: nil, memory_read: nil, notice: nil, sub_agent_spawned: nil, sub_agent_updated: nil, timed_out: 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)
112
123
  # Some parameter documentations has been truncated, see
113
124
  # {Cadenya::Models::ObjectiveEventData} for more details.
114
125
  #
@@ -130,6 +141,8 @@ module Cadenya
130
141
  #
131
142
  # @param sub_agent_updated [Cadenya::Models::SubAgentUpdated]
132
143
  #
144
+ # @param timed_out [Cadenya::Models::ObjectiveEventData::TimedOut] ObjectiveTimedOut is the terminal event written when an objective is
145
+ #
133
146
  # @param tool_approval_requested [Cadenya::Models::ToolApprovalRequested]
134
147
  #
135
148
  # @param tool_approved [Cadenya::Models::ToolApproved]
@@ -237,6 +250,29 @@ module Cadenya
237
250
  # @return [Array<Symbol>]
238
251
  end
239
252
  end
253
+
254
+ # @see Cadenya::Models::ObjectiveEventData#timed_out
255
+ class TimedOut < Cadenya::Internal::Type::BaseModel
256
+ # @!attribute message
257
+ # Human-readable note recorded at timeout time (e.g. "Timed out after 2h of
258
+ # inactivity").
259
+ #
260
+ # @return [String, nil]
261
+ optional :message, String
262
+
263
+ # @!method initialize(message: nil)
264
+ # Some parameter documentations has been truncated, see
265
+ # {Cadenya::Models::ObjectiveEventData::TimedOut} for more details.
266
+ #
267
+ # ObjectiveTimedOut is the terminal event written when an objective is finalized
268
+ # by the inactivity sweep because it saw no activity (no user messages, no LLM
269
+ # calls) within its variation's inactivity timeout — or the system-wide 24 hour
270
+ # maximum when no timeout is configured. The objective produces no output. After
271
+ # this event, the objective is super-terminal: no further iterations, compaction,
272
+ # or continuation are permitted.
273
+ #
274
+ # @param message [String] Human-readable note recorded at timeout time (e.g. "Timed out after 2h
275
+ end
240
276
  end
241
277
  end
242
278
  end
@@ -103,6 +103,7 @@ module Cadenya
103
103
  STATE_FAILED = :STATE_FAILED
104
104
  STATE_CANCELLED = :STATE_CANCELLED
105
105
  STATE_FINALIZED = :STATE_FINALIZED
106
+ STATE_TIMED_OUT = :STATE_TIMED_OUT
106
107
 
107
108
  # @!method self.values
108
109
  # @return [Array<Symbol>]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cadenya
4
- VERSION = "0.30.0"
4
+ VERSION = "0.31.0"
5
5
  end
@@ -14,6 +14,16 @@ module Cadenya
14
14
  )
15
15
  end
16
16
 
17
+ # How long an objective may sit with no activity (no user messages, no LLM calls)
18
+ # before it is finalized as timed out. Between 1 minute and 24 hours. When not
19
+ # set, objectives are still swept at the system-wide 24 hour maximum — every
20
+ # objective eventually reaches a terminal state.
21
+ sig { returns(T.nilable(Integer)) }
22
+ attr_reader :inactivity_timeout
23
+
24
+ sig { params(inactivity_timeout: Integer).void }
25
+ attr_writer :inactivity_timeout
26
+
17
27
  # The maximum number of sub-objectives that can be created. 0 means no limit.
18
28
  sig { returns(T.nilable(Integer)) }
19
29
  attr_reader :max_sub_objectives
@@ -29,11 +39,18 @@ module Cadenya
29
39
  attr_writer :max_tool_calls
30
40
 
31
41
  sig do
32
- params(max_sub_objectives: Integer, max_tool_calls: Integer).returns(
33
- T.attached_class
34
- )
42
+ params(
43
+ inactivity_timeout: Integer,
44
+ max_sub_objectives: Integer,
45
+ max_tool_calls: Integer
46
+ ).returns(T.attached_class)
35
47
  end
36
48
  def self.new(
49
+ # How long an objective may sit with no activity (no user messages, no LLM calls)
50
+ # before it is finalized as timed out. Between 1 minute and 24 hours. When not
51
+ # set, objectives are still swept at the system-wide 24 hour maximum — every
52
+ # objective eventually reaches a terminal state.
53
+ inactivity_timeout: nil,
37
54
  # The maximum number of sub-objectives that can be created. 0 means no limit.
38
55
  max_sub_objectives: nil,
39
56
  # The maximum number of tool calls that can be made. 0 means no limit.
@@ -43,7 +60,11 @@ module Cadenya
43
60
 
44
61
  sig do
45
62
  override.returns(
46
- { max_sub_objectives: Integer, max_tool_calls: Integer }
63
+ {
64
+ inactivity_timeout: Integer,
65
+ max_sub_objectives: Integer,
66
+ max_tool_calls: Integer
67
+ }
47
68
  )
48
69
  end
49
70
  def to_hash
@@ -233,6 +233,11 @@ module Cadenya
233
233
  :OBJECTIVE_EVENT_TYPE_NOTICE,
234
234
  Cadenya::Agents::WebhookDeliveryData::EventType::TaggedSymbol
235
235
  )
236
+ OBJECTIVE_EVENT_TYPE_TIMED_OUT =
237
+ T.let(
238
+ :OBJECTIVE_EVENT_TYPE_TIMED_OUT,
239
+ Cadenya::Agents::WebhookDeliveryData::EventType::TaggedSymbol
240
+ )
236
241
 
237
242
  sig do
238
243
  override.returns(
@@ -202,6 +202,11 @@ module Cadenya
202
202
  :OBJECTIVE_EVENT_TYPE_NOTICE,
203
203
  Cadenya::Agents::WebhookDeliveryListParams::EventType::TaggedSymbol
204
204
  )
205
+ OBJECTIVE_EVENT_TYPE_TIMED_OUT =
206
+ T.let(
207
+ :OBJECTIVE_EVENT_TYPE_TIMED_OUT,
208
+ Cadenya::Agents::WebhookDeliveryListParams::EventType::TaggedSymbol
209
+ )
205
210
 
206
211
  sig do
207
212
  override.returns(
@@ -238,6 +238,8 @@ module Cadenya
238
238
  T.let(:STATE_CANCELLED, Cadenya::Objective::State::TaggedSymbol)
239
239
  STATE_FINALIZED =
240
240
  T.let(:STATE_FINALIZED, Cadenya::Objective::State::TaggedSymbol)
241
+ STATE_TIMED_OUT =
242
+ T.let(:STATE_TIMED_OUT, Cadenya::Objective::State::TaggedSymbol)
241
243
 
242
244
  sig do
243
245
  override.returns(T::Array[Cadenya::Objective::State::TaggedSymbol])
@@ -84,6 +84,20 @@ module Cadenya
84
84
  sig { params(sub_agent_updated: Cadenya::SubAgentUpdated::OrHash).void }
85
85
  attr_writer :sub_agent_updated
86
86
 
87
+ # ObjectiveTimedOut is the terminal event written when an objective is finalized
88
+ # by the inactivity sweep because it saw no activity (no user messages, no LLM
89
+ # calls) within its variation's inactivity timeout — or the system-wide 24 hour
90
+ # maximum when no timeout is configured. The objective produces no output. After
91
+ # this event, the objective is super-terminal: no further iterations, compaction,
92
+ # or continuation are permitted.
93
+ sig { returns(T.nilable(Cadenya::ObjectiveEventData::TimedOut)) }
94
+ attr_reader :timed_out
95
+
96
+ sig do
97
+ params(timed_out: Cadenya::ObjectiveEventData::TimedOut::OrHash).void
98
+ end
99
+ attr_writer :timed_out
100
+
87
101
  sig { returns(T.nilable(Cadenya::ToolApprovalRequested)) }
88
102
  attr_reader :tool_approval_requested
89
103
 
@@ -147,6 +161,7 @@ module Cadenya
147
161
  notice: Cadenya::ObjectiveEventData::Notice::OrHash,
148
162
  sub_agent_spawned: Cadenya::SubAgentSpawned::OrHash,
149
163
  sub_agent_updated: Cadenya::SubAgentUpdated::OrHash,
164
+ timed_out: Cadenya::ObjectiveEventData::TimedOut::OrHash,
150
165
  tool_approval_requested: Cadenya::ToolApprovalRequested::OrHash,
151
166
  tool_approved: Cadenya::ToolApproved::OrHash,
152
167
  tool_called: Cadenya::ToolCalled::OrHash,
@@ -181,6 +196,13 @@ module Cadenya
181
196
  notice: nil,
182
197
  sub_agent_spawned: nil,
183
198
  sub_agent_updated: nil,
199
+ # ObjectiveTimedOut is the terminal event written when an objective is finalized
200
+ # by the inactivity sweep because it saw no activity (no user messages, no LLM
201
+ # calls) within its variation's inactivity timeout — or the system-wide 24 hour
202
+ # maximum when no timeout is configured. The objective produces no output. After
203
+ # this event, the objective is super-terminal: no further iterations, compaction,
204
+ # or continuation are permitted.
205
+ timed_out: nil,
184
206
  tool_approval_requested: nil,
185
207
  tool_approved: nil,
186
208
  tool_called: nil,
@@ -204,6 +226,7 @@ module Cadenya
204
226
  notice: Cadenya::ObjectiveEventData::Notice,
205
227
  sub_agent_spawned: Cadenya::SubAgentSpawned,
206
228
  sub_agent_updated: Cadenya::SubAgentUpdated,
229
+ timed_out: Cadenya::ObjectiveEventData::TimedOut,
207
230
  tool_approval_requested: Cadenya::ToolApprovalRequested,
208
231
  tool_approved: Cadenya::ToolApproved,
209
232
  tool_called: Cadenya::ToolCalled,
@@ -396,6 +419,42 @@ module Cadenya
396
419
  end
397
420
  end
398
421
  end
422
+
423
+ class TimedOut < Cadenya::Internal::Type::BaseModel
424
+ OrHash =
425
+ T.type_alias do
426
+ T.any(
427
+ Cadenya::ObjectiveEventData::TimedOut,
428
+ Cadenya::Internal::AnyHash
429
+ )
430
+ end
431
+
432
+ # Human-readable note recorded at timeout time (e.g. "Timed out after 2h of
433
+ # inactivity").
434
+ sig { returns(T.nilable(String)) }
435
+ attr_reader :message
436
+
437
+ sig { params(message: String).void }
438
+ attr_writer :message
439
+
440
+ # ObjectiveTimedOut is the terminal event written when an objective is finalized
441
+ # by the inactivity sweep because it saw no activity (no user messages, no LLM
442
+ # calls) within its variation's inactivity timeout — or the system-wide 24 hour
443
+ # maximum when no timeout is configured. The objective produces no output. After
444
+ # this event, the objective is super-terminal: no further iterations, compaction,
445
+ # or continuation are permitted.
446
+ sig { params(message: String).returns(T.attached_class) }
447
+ def self.new(
448
+ # Human-readable note recorded at timeout time (e.g. "Timed out after 2h of
449
+ # inactivity").
450
+ message: nil
451
+ )
452
+ end
453
+
454
+ sig { override.returns({ message: String }) }
455
+ def to_hash
456
+ end
457
+ end
399
458
  end
400
459
  end
401
460
  end
@@ -179,6 +179,11 @@ module Cadenya
179
179
  :STATE_FINALIZED,
180
180
  Cadenya::ObjectiveListParams::State::TaggedSymbol
181
181
  )
182
+ STATE_TIMED_OUT =
183
+ T.let(
184
+ :STATE_TIMED_OUT,
185
+ Cadenya::ObjectiveListParams::State::TaggedSymbol
186
+ )
182
187
 
183
188
  sig do
184
189
  override.returns(
@@ -4,9 +4,17 @@ module Cadenya
4
4
 
5
5
  module Agents
6
6
  type agent_variation_spec_constraints =
7
- { max_sub_objectives: Integer, max_tool_calls: Integer }
7
+ {
8
+ inactivity_timeout: Integer,
9
+ max_sub_objectives: Integer,
10
+ max_tool_calls: Integer
11
+ }
8
12
 
9
13
  class AgentVariationSpecConstraints < Cadenya::Internal::Type::BaseModel
14
+ attr_reader inactivity_timeout: Integer?
15
+
16
+ def inactivity_timeout=: (Integer) -> Integer
17
+
10
18
  attr_reader max_sub_objectives: Integer?
11
19
 
12
20
  def max_sub_objectives=: (Integer) -> Integer
@@ -16,11 +24,16 @@ module Cadenya
16
24
  def max_tool_calls=: (Integer) -> Integer
17
25
 
18
26
  def initialize: (
27
+ ?inactivity_timeout: Integer,
19
28
  ?max_sub_objectives: Integer,
20
29
  ?max_tool_calls: Integer
21
30
  ) -> void
22
31
 
23
- def to_hash: -> { max_sub_objectives: Integer, max_tool_calls: Integer }
32
+ def to_hash: -> {
33
+ inactivity_timeout: Integer,
34
+ max_sub_objectives: Integer,
35
+ max_tool_calls: Integer
36
+ }
24
37
  end
25
38
  end
26
39
  end
@@ -106,6 +106,7 @@ module Cadenya
106
106
  | :OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED
107
107
  | :OBJECTIVE_EVENT_TYPE_FINALIZED
108
108
  | :OBJECTIVE_EVENT_TYPE_NOTICE
109
+ | :OBJECTIVE_EVENT_TYPE_TIMED_OUT
109
110
 
110
111
  module EventType
111
112
  extend Cadenya::Internal::Type::Enum
@@ -127,6 +128,7 @@ module Cadenya
127
128
  OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED: :OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED
128
129
  OBJECTIVE_EVENT_TYPE_FINALIZED: :OBJECTIVE_EVENT_TYPE_FINALIZED
129
130
  OBJECTIVE_EVENT_TYPE_NOTICE: :OBJECTIVE_EVENT_TYPE_NOTICE
131
+ OBJECTIVE_EVENT_TYPE_TIMED_OUT: :OBJECTIVE_EVENT_TYPE_TIMED_OUT
130
132
 
131
133
  def self?.values: -> ::Array[Cadenya::Models::Agents::WebhookDeliveryData::event_type]
132
134
  end
@@ -76,6 +76,7 @@ module Cadenya
76
76
  | :OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED
77
77
  | :OBJECTIVE_EVENT_TYPE_FINALIZED
78
78
  | :OBJECTIVE_EVENT_TYPE_NOTICE
79
+ | :OBJECTIVE_EVENT_TYPE_TIMED_OUT
79
80
 
80
81
  module EventType
81
82
  extend Cadenya::Internal::Type::Enum
@@ -97,6 +98,7 @@ module Cadenya
97
98
  OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED: :OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED
98
99
  OBJECTIVE_EVENT_TYPE_FINALIZED: :OBJECTIVE_EVENT_TYPE_FINALIZED
99
100
  OBJECTIVE_EVENT_TYPE_NOTICE: :OBJECTIVE_EVENT_TYPE_NOTICE
101
+ OBJECTIVE_EVENT_TYPE_TIMED_OUT: :OBJECTIVE_EVENT_TYPE_TIMED_OUT
100
102
 
101
103
  def self?.values: -> ::Array[Cadenya::Models::Agents::WebhookDeliveryListParams::event_type]
102
104
  end
@@ -113,6 +113,7 @@ module Cadenya
113
113
  | :STATE_FAILED
114
114
  | :STATE_CANCELLED
115
115
  | :STATE_FINALIZED
116
+ | :STATE_TIMED_OUT
116
117
 
117
118
  module State
118
119
  extend Cadenya::Internal::Type::Enum
@@ -124,6 +125,7 @@ module Cadenya
124
125
  STATE_FAILED: :STATE_FAILED
125
126
  STATE_CANCELLED: :STATE_CANCELLED
126
127
  STATE_FINALIZED: :STATE_FINALIZED
128
+ STATE_TIMED_OUT: :STATE_TIMED_OUT
127
129
 
128
130
  def self?.values: -> ::Array[Cadenya::Models::Objective::state]
129
131
  end
@@ -11,6 +11,7 @@ module Cadenya
11
11
  notice: Cadenya::ObjectiveEventData::Notice,
12
12
  sub_agent_spawned: Cadenya::SubAgentSpawned,
13
13
  sub_agent_updated: Cadenya::SubAgentUpdated,
14
+ timed_out: Cadenya::ObjectiveEventData::TimedOut,
14
15
  tool_approval_requested: Cadenya::ToolApprovalRequested,
15
16
  tool_approved: Cadenya::ToolApproved,
16
17
  tool_called: Cadenya::ToolCalled,
@@ -72,6 +73,12 @@ module Cadenya
72
73
  Cadenya::SubAgentUpdated
73
74
  ) -> Cadenya::SubAgentUpdated
74
75
 
76
+ attr_reader timed_out: Cadenya::ObjectiveEventData::TimedOut?
77
+
78
+ def timed_out=: (
79
+ Cadenya::ObjectiveEventData::TimedOut
80
+ ) -> Cadenya::ObjectiveEventData::TimedOut
81
+
75
82
  attr_reader tool_approval_requested: Cadenya::ToolApprovalRequested?
76
83
 
77
84
  def tool_approval_requested=: (
@@ -116,6 +123,7 @@ module Cadenya
116
123
  ?notice: Cadenya::ObjectiveEventData::Notice,
117
124
  ?sub_agent_spawned: Cadenya::SubAgentSpawned,
118
125
  ?sub_agent_updated: Cadenya::SubAgentUpdated,
126
+ ?timed_out: Cadenya::ObjectiveEventData::TimedOut,
119
127
  ?tool_approval_requested: Cadenya::ToolApprovalRequested,
120
128
  ?tool_approved: Cadenya::ToolApproved,
121
129
  ?tool_called: Cadenya::ToolCalled,
@@ -136,6 +144,7 @@ module Cadenya
136
144
  notice: Cadenya::ObjectiveEventData::Notice,
137
145
  sub_agent_spawned: Cadenya::SubAgentSpawned,
138
146
  sub_agent_updated: Cadenya::SubAgentUpdated,
147
+ timed_out: Cadenya::ObjectiveEventData::TimedOut,
139
148
  tool_approval_requested: Cadenya::ToolApprovalRequested,
140
149
  tool_approved: Cadenya::ToolApproved,
141
150
  tool_called: Cadenya::ToolCalled,
@@ -216,6 +225,18 @@ module Cadenya
216
225
  def self?.values: -> ::Array[Cadenya::Models::ObjectiveEventData::Notice::level]
217
226
  end
218
227
  end
228
+
229
+ type timed_out = { message: String }
230
+
231
+ class TimedOut < Cadenya::Internal::Type::BaseModel
232
+ attr_reader message: String?
233
+
234
+ def message=: (String) -> String
235
+
236
+ def initialize: (?message: String) -> void
237
+
238
+ def to_hash: -> { message: String }
239
+ end
219
240
  end
220
241
  end
221
242
  end
@@ -95,6 +95,7 @@ module Cadenya
95
95
  | :STATE_FAILED
96
96
  | :STATE_CANCELLED
97
97
  | :STATE_FINALIZED
98
+ | :STATE_TIMED_OUT
98
99
 
99
100
  module State
100
101
  extend Cadenya::Internal::Type::Enum
@@ -106,6 +107,7 @@ module Cadenya
106
107
  STATE_FAILED: :STATE_FAILED
107
108
  STATE_CANCELLED: :STATE_CANCELLED
108
109
  STATE_FINALIZED: :STATE_FINALIZED
110
+ STATE_TIMED_OUT: :STATE_TIMED_OUT
109
111
 
110
112
  def self?.values: -> ::Array[Cadenya::Models::ObjectiveListParams::state]
111
113
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cadenya
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.30.0
4
+ version: 0.31.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-06 00:00:00.000000000 Z
11
+ date: 2026-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi