deeprails 0.12.0 → 0.13.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.
@@ -2,8 +2,6 @@ module Deeprails
2
2
  module Models
3
3
  type defend_response =
4
4
  {
5
- name: String,
6
- workflow_id: String,
7
5
  automatic_hallucination_tolerance_levels: ::Hash[Symbol, Deeprails::Models::DefendResponse::automatic_hallucination_tolerance_level],
8
6
  capabilities: ::Array[Deeprails::DefendResponse::Capability],
9
7
  created_at: Time,
@@ -11,54 +9,38 @@ module Deeprails
11
9
  description: String,
12
10
  events: ::Array[Deeprails::DefendResponse::Event],
13
11
  files: ::Array[Deeprails::DefendResponse::File],
14
- stats: Deeprails::DefendResponse::Stats,
12
+ name: String,
15
13
  status: Deeprails::Models::DefendResponse::status,
16
14
  threshold_type: Deeprails::Models::DefendResponse::threshold_type,
17
- updated_at: Time
15
+ updated_at: Time,
16
+ workflow_id: String,
17
+ stats: Deeprails::DefendResponse::Stats
18
18
  }
19
19
 
20
20
  class DefendResponse < Deeprails::Internal::Type::BaseModel
21
- attr_accessor name: String
22
-
23
- attr_accessor workflow_id: String
24
-
25
- attr_reader automatic_hallucination_tolerance_levels: ::Hash[Symbol, Deeprails::Models::DefendResponse::automatic_hallucination_tolerance_level]?
26
-
27
- def automatic_hallucination_tolerance_levels=: (
28
- ::Hash[Symbol, Deeprails::Models::DefendResponse::automatic_hallucination_tolerance_level]
29
- ) -> ::Hash[Symbol, Deeprails::Models::DefendResponse::automatic_hallucination_tolerance_level]
30
-
31
- attr_reader capabilities: ::Array[Deeprails::DefendResponse::Capability]?
21
+ attr_accessor automatic_hallucination_tolerance_levels: ::Hash[Symbol, Deeprails::Models::DefendResponse::automatic_hallucination_tolerance_level]
32
22
 
33
- def capabilities=: (
34
- ::Array[Deeprails::DefendResponse::Capability]
35
- ) -> ::Array[Deeprails::DefendResponse::Capability]
23
+ attr_accessor capabilities: ::Array[Deeprails::DefendResponse::Capability]
36
24
 
37
- attr_reader created_at: Time?
25
+ attr_accessor created_at: Time
38
26
 
39
- def created_at=: (Time) -> Time
27
+ attr_accessor custom_hallucination_threshold_values: ::Hash[Symbol, Float]
40
28
 
41
- attr_reader custom_hallucination_threshold_values: ::Hash[Symbol, Float]?
29
+ attr_accessor description: String
42
30
 
43
- def custom_hallucination_threshold_values=: (
44
- ::Hash[Symbol, Float]
45
- ) -> ::Hash[Symbol, Float]
31
+ attr_accessor events: ::Array[Deeprails::DefendResponse::Event]
46
32
 
47
- attr_reader description: String?
33
+ attr_accessor files: ::Array[Deeprails::DefendResponse::File]
48
34
 
49
- def description=: (String) -> String
35
+ attr_accessor name: String
50
36
 
51
- attr_reader events: ::Array[Deeprails::DefendResponse::Event]?
37
+ attr_accessor status: Deeprails::Models::DefendResponse::status
52
38
 
53
- def events=: (
54
- ::Array[Deeprails::DefendResponse::Event]
55
- ) -> ::Array[Deeprails::DefendResponse::Event]
39
+ attr_accessor threshold_type: Deeprails::Models::DefendResponse::threshold_type
56
40
 
57
- attr_reader files: ::Array[Deeprails::DefendResponse::File]?
41
+ attr_accessor updated_at: Time
58
42
 
59
- def files=: (
60
- ::Array[Deeprails::DefendResponse::File]
61
- ) -> ::Array[Deeprails::DefendResponse::File]
43
+ attr_accessor workflow_id: String
62
44
 
63
45
  attr_reader stats: Deeprails::DefendResponse::Stats?
64
46
 
@@ -66,41 +48,23 @@ module Deeprails
66
48
  Deeprails::DefendResponse::Stats
67
49
  ) -> Deeprails::DefendResponse::Stats
68
50
 
69
- attr_reader status: Deeprails::Models::DefendResponse::status?
70
-
71
- def status=: (
72
- Deeprails::Models::DefendResponse::status
73
- ) -> Deeprails::Models::DefendResponse::status
74
-
75
- attr_reader threshold_type: Deeprails::Models::DefendResponse::threshold_type?
76
-
77
- def threshold_type=: (
78
- Deeprails::Models::DefendResponse::threshold_type
79
- ) -> Deeprails::Models::DefendResponse::threshold_type
80
-
81
- attr_reader updated_at: Time?
82
-
83
- def updated_at=: (Time) -> Time
84
-
85
51
  def initialize: (
52
+ automatic_hallucination_tolerance_levels: ::Hash[Symbol, Deeprails::Models::DefendResponse::automatic_hallucination_tolerance_level],
53
+ capabilities: ::Array[Deeprails::DefendResponse::Capability],
54
+ created_at: Time,
55
+ custom_hallucination_threshold_values: ::Hash[Symbol, Float],
56
+ description: String,
57
+ events: ::Array[Deeprails::DefendResponse::Event],
58
+ files: ::Array[Deeprails::DefendResponse::File],
86
59
  name: String,
60
+ status: Deeprails::Models::DefendResponse::status,
61
+ threshold_type: Deeprails::Models::DefendResponse::threshold_type,
62
+ updated_at: Time,
87
63
  workflow_id: String,
88
- ?automatic_hallucination_tolerance_levels: ::Hash[Symbol, Deeprails::Models::DefendResponse::automatic_hallucination_tolerance_level],
89
- ?capabilities: ::Array[Deeprails::DefendResponse::Capability],
90
- ?created_at: Time,
91
- ?custom_hallucination_threshold_values: ::Hash[Symbol, Float],
92
- ?description: String,
93
- ?events: ::Array[Deeprails::DefendResponse::Event],
94
- ?files: ::Array[Deeprails::DefendResponse::File],
95
- ?stats: Deeprails::DefendResponse::Stats,
96
- ?status: Deeprails::Models::DefendResponse::status,
97
- ?threshold_type: Deeprails::Models::DefendResponse::threshold_type,
98
- ?updated_at: Time
64
+ ?stats: Deeprails::DefendResponse::Stats
99
65
  ) -> void
100
66
 
101
67
  def to_hash: -> {
102
- name: String,
103
- workflow_id: String,
104
68
  automatic_hallucination_tolerance_levels: ::Hash[Symbol, Deeprails::Models::DefendResponse::automatic_hallucination_tolerance_level],
105
69
  capabilities: ::Array[Deeprails::DefendResponse::Capability],
106
70
  created_at: Time,
@@ -108,10 +72,12 @@ module Deeprails
108
72
  description: String,
109
73
  events: ::Array[Deeprails::DefendResponse::Event],
110
74
  files: ::Array[Deeprails::DefendResponse::File],
111
- stats: Deeprails::DefendResponse::Stats,
75
+ name: String,
112
76
  status: Deeprails::Models::DefendResponse::status,
113
77
  threshold_type: Deeprails::Models::DefendResponse::threshold_type,
114
- updated_at: Time
78
+ updated_at: Time,
79
+ workflow_id: String,
80
+ stats: Deeprails::DefendResponse::Stats
115
81
  }
116
82
 
117
83
  type automatic_hallucination_tolerance_level = :low | :medium | :high
@@ -311,6 +277,28 @@ module Deeprails
311
277
  }
312
278
  end
313
279
 
280
+ type status = :inactive | :active
281
+
282
+ module Status
283
+ extend Deeprails::Internal::Type::Enum
284
+
285
+ INACTIVE: :inactive
286
+ ACTIVE: :active
287
+
288
+ def self?.values: -> ::Array[Deeprails::Models::DefendResponse::status]
289
+ end
290
+
291
+ type threshold_type = :custom | :automatic
292
+
293
+ module ThresholdType
294
+ extend Deeprails::Internal::Type::Enum
295
+
296
+ CUSTOM: :custom
297
+ AUTOMATIC: :automatic
298
+
299
+ def self?.values: -> ::Array[Deeprails::Models::DefendResponse::threshold_type]
300
+ end
301
+
314
302
  type stats =
315
303
  {
316
304
  outputs_below_threshold: Integer,
@@ -343,28 +331,6 @@ module Deeprails
343
331
  outputs_processed: Integer
344
332
  }
345
333
  end
346
-
347
- type status = :inactive | :active
348
-
349
- module Status
350
- extend Deeprails::Internal::Type::Enum
351
-
352
- INACTIVE: :inactive
353
- ACTIVE: :active
354
-
355
- def self?.values: -> ::Array[Deeprails::Models::DefendResponse::status]
356
- end
357
-
358
- type threshold_type = :custom | :automatic
359
-
360
- module ThresholdType
361
- extend Deeprails::Internal::Type::Enum
362
-
363
- CUSTOM: :custom
364
- AUTOMATIC: :automatic
365
-
366
- def self?.values: -> ::Array[Deeprails::Models::DefendResponse::threshold_type]
367
- end
368
334
  end
369
335
  end
370
336
  end
@@ -2,98 +2,67 @@ module Deeprails
2
2
  module Models
3
3
  type monitor_detail_response =
4
4
  {
5
- monitor_id: String,
6
- name: String,
7
- status: Deeprails::Models::MonitorDetailResponse::status,
8
5
  capabilities: ::Array[Deeprails::MonitorDetailResponse::Capability],
9
6
  created_at: Time,
10
- description: String,
11
7
  evaluations: ::Array[Deeprails::MonitorDetailResponse::Evaluation],
12
8
  files: ::Array[Deeprails::MonitorDetailResponse::File],
9
+ monitor_id: String,
10
+ name: String,
13
11
  stats: Deeprails::MonitorDetailResponse::Stats,
14
- updated_at: Time
12
+ status: Deeprails::Models::MonitorDetailResponse::status,
13
+ updated_at: Time,
14
+ description: String
15
15
  }
16
16
 
17
17
  class MonitorDetailResponse < Deeprails::Internal::Type::BaseModel
18
- attr_accessor monitor_id: String
19
-
20
- attr_accessor name: String
21
-
22
- attr_accessor status: Deeprails::Models::MonitorDetailResponse::status
23
-
24
- attr_reader capabilities: ::Array[Deeprails::MonitorDetailResponse::Capability]?
25
-
26
- def capabilities=: (
27
- ::Array[Deeprails::MonitorDetailResponse::Capability]
28
- ) -> ::Array[Deeprails::MonitorDetailResponse::Capability]
29
-
30
- attr_reader created_at: Time?
18
+ attr_accessor capabilities: ::Array[Deeprails::MonitorDetailResponse::Capability]
31
19
 
32
- def created_at=: (Time) -> Time
20
+ attr_accessor created_at: Time
33
21
 
34
- attr_reader description: String?
35
-
36
- def description=: (String) -> String
22
+ attr_accessor evaluations: ::Array[Deeprails::MonitorDetailResponse::Evaluation]
37
23
 
38
- attr_reader evaluations: ::Array[Deeprails::MonitorDetailResponse::Evaluation]?
24
+ attr_accessor files: ::Array[Deeprails::MonitorDetailResponse::File]
39
25
 
40
- def evaluations=: (
41
- ::Array[Deeprails::MonitorDetailResponse::Evaluation]
42
- ) -> ::Array[Deeprails::MonitorDetailResponse::Evaluation]
26
+ attr_accessor monitor_id: String
43
27
 
44
- attr_reader files: ::Array[Deeprails::MonitorDetailResponse::File]?
28
+ attr_accessor name: String
45
29
 
46
- def files=: (
47
- ::Array[Deeprails::MonitorDetailResponse::File]
48
- ) -> ::Array[Deeprails::MonitorDetailResponse::File]
30
+ attr_accessor stats: Deeprails::MonitorDetailResponse::Stats
49
31
 
50
- attr_reader stats: Deeprails::MonitorDetailResponse::Stats?
32
+ attr_accessor status: Deeprails::Models::MonitorDetailResponse::status
51
33
 
52
- def stats=: (
53
- Deeprails::MonitorDetailResponse::Stats
54
- ) -> Deeprails::MonitorDetailResponse::Stats
34
+ attr_accessor updated_at: Time
55
35
 
56
- attr_reader updated_at: Time?
36
+ attr_reader description: String?
57
37
 
58
- def updated_at=: (Time) -> Time
38
+ def description=: (String) -> String
59
39
 
60
40
  def initialize: (
41
+ capabilities: ::Array[Deeprails::MonitorDetailResponse::Capability],
42
+ created_at: Time,
43
+ evaluations: ::Array[Deeprails::MonitorDetailResponse::Evaluation],
44
+ files: ::Array[Deeprails::MonitorDetailResponse::File],
61
45
  monitor_id: String,
62
46
  name: String,
47
+ stats: Deeprails::MonitorDetailResponse::Stats,
63
48
  status: Deeprails::Models::MonitorDetailResponse::status,
64
- ?capabilities: ::Array[Deeprails::MonitorDetailResponse::Capability],
65
- ?created_at: Time,
66
- ?description: String,
67
- ?evaluations: ::Array[Deeprails::MonitorDetailResponse::Evaluation],
68
- ?files: ::Array[Deeprails::MonitorDetailResponse::File],
69
- ?stats: Deeprails::MonitorDetailResponse::Stats,
70
- ?updated_at: Time
49
+ updated_at: Time,
50
+ ?description: String
71
51
  ) -> void
72
52
 
73
53
  def to_hash: -> {
74
- monitor_id: String,
75
- name: String,
76
- status: Deeprails::Models::MonitorDetailResponse::status,
77
54
  capabilities: ::Array[Deeprails::MonitorDetailResponse::Capability],
78
55
  created_at: Time,
79
- description: String,
80
56
  evaluations: ::Array[Deeprails::MonitorDetailResponse::Evaluation],
81
57
  files: ::Array[Deeprails::MonitorDetailResponse::File],
58
+ monitor_id: String,
59
+ name: String,
82
60
  stats: Deeprails::MonitorDetailResponse::Stats,
83
- updated_at: Time
61
+ status: Deeprails::Models::MonitorDetailResponse::status,
62
+ updated_at: Time,
63
+ description: String
84
64
  }
85
65
 
86
- type status = :active | :inactive
87
-
88
- module Status
89
- extend Deeprails::Internal::Type::Enum
90
-
91
- ACTIVE: :active
92
- INACTIVE: :inactive
93
-
94
- def self?.values: -> ::Array[Deeprails::Models::MonitorDetailResponse::status]
95
- end
96
-
97
66
  type capability = { capability: String }
98
67
 
99
68
  class Capability < Deeprails::Internal::Type::BaseModel
@@ -341,6 +310,17 @@ module Deeprails
341
310
  total_evaluations: Integer
342
311
  }
343
312
  end
313
+
314
+ type status = :active | :inactive
315
+
316
+ module Status
317
+ extend Deeprails::Internal::Type::Enum
318
+
319
+ ACTIVE: :active
320
+ INACTIVE: :inactive
321
+
322
+ def self?.values: -> ::Array[Deeprails::Models::MonitorDetailResponse::status]
323
+ end
344
324
  end
345
325
  end
346
326
  end
@@ -0,0 +1,23 @@
1
+ module Deeprails
2
+ module Models
3
+ type monitor_retrieve_event_params =
4
+ { monitor_id: String } & Deeprails::Internal::Type::request_parameters
5
+
6
+ class MonitorRetrieveEventParams < Deeprails::Internal::Type::BaseModel
7
+ extend Deeprails::Internal::Type::RequestParameters::Converter
8
+ include Deeprails::Internal::Type::RequestParameters
9
+
10
+ attr_accessor monitor_id: String
11
+
12
+ def initialize: (
13
+ monitor_id: String,
14
+ ?request_options: Deeprails::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ monitor_id: String,
19
+ request_options: Deeprails::RequestOptions
20
+ }
21
+ end
22
+ end
23
+ end
@@ -2,31 +2,41 @@ module Deeprails
2
2
  module Models
3
3
  type workflow_event_detail_response =
4
4
  {
5
+ evaluation_history: ::Array[Deeprails::WorkflowEventDetailResponse::EvaluationHistory],
6
+ evaluation_result: ::Hash[Symbol, top],
5
7
  event_id: String,
6
8
  event_status: Deeprails::Models::WorkflowEventDetailResponse::event_status,
7
9
  filtered: bool,
10
+ improved_model_output: String,
11
+ improvement_tool_status: Deeprails::Models::WorkflowEventDetailResponse::improvement_tool_status?,
8
12
  improvement_tool_type: Deeprails::Models::WorkflowEventDetailResponse::improvement_tool_type,
13
+ threshold_type: Deeprails::Models::WorkflowEventDetailResponse::threshold_type,
9
14
  workflow_id: String,
10
15
  automatic_hallucination_tolerance_levels: ::Hash[Symbol, Deeprails::Models::WorkflowEventDetailResponse::automatic_hallucination_tolerance_level],
11
16
  capabilities: ::Array[Deeprails::WorkflowEventDetailResponse::Capability],
12
17
  custom_hallucination_threshold_values: ::Hash[Symbol, Float],
13
- evaluation_history: ::Array[Deeprails::WorkflowEventDetailResponse::EvaluationHistory],
14
- evaluation_result: ::Hash[Symbol, top],
15
- files: ::Array[Deeprails::WorkflowEventDetailResponse::File],
16
- improved_model_output: String,
17
- improvement_tool_status: Deeprails::Models::WorkflowEventDetailResponse::improvement_tool_status?,
18
- threshold_type: Deeprails::Models::WorkflowEventDetailResponse::threshold_type
18
+ files: ::Array[Deeprails::WorkflowEventDetailResponse::File]
19
19
  }
20
20
 
21
21
  class WorkflowEventDetailResponse < Deeprails::Internal::Type::BaseModel
22
+ attr_accessor evaluation_history: ::Array[Deeprails::WorkflowEventDetailResponse::EvaluationHistory]
23
+
24
+ attr_accessor evaluation_result: ::Hash[Symbol, top]
25
+
22
26
  attr_accessor event_id: String
23
27
 
24
28
  attr_accessor event_status: Deeprails::Models::WorkflowEventDetailResponse::event_status
25
29
 
26
30
  attr_accessor filtered: bool
27
31
 
32
+ attr_accessor improved_model_output: String
33
+
34
+ attr_accessor improvement_tool_status: Deeprails::Models::WorkflowEventDetailResponse::improvement_tool_status?
35
+
28
36
  attr_accessor improvement_tool_type: Deeprails::Models::WorkflowEventDetailResponse::improvement_tool_type
29
37
 
38
+ attr_accessor threshold_type: Deeprails::Models::WorkflowEventDetailResponse::threshold_type
39
+
30
40
  attr_accessor workflow_id: String
31
41
 
32
42
  attr_reader automatic_hallucination_tolerance_levels: ::Hash[Symbol, Deeprails::Models::WorkflowEventDetailResponse::automatic_hallucination_tolerance_level]?
@@ -47,115 +57,46 @@ module Deeprails
47
57
  ::Hash[Symbol, Float]
48
58
  ) -> ::Hash[Symbol, Float]
49
59
 
50
- attr_reader evaluation_history: ::Array[Deeprails::WorkflowEventDetailResponse::EvaluationHistory]?
51
-
52
- def evaluation_history=: (
53
- ::Array[Deeprails::WorkflowEventDetailResponse::EvaluationHistory]
54
- ) -> ::Array[Deeprails::WorkflowEventDetailResponse::EvaluationHistory]
55
-
56
- attr_reader evaluation_result: ::Hash[Symbol, top]?
57
-
58
- def evaluation_result=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
59
-
60
60
  attr_reader files: ::Array[Deeprails::WorkflowEventDetailResponse::File]?
61
61
 
62
62
  def files=: (
63
63
  ::Array[Deeprails::WorkflowEventDetailResponse::File]
64
64
  ) -> ::Array[Deeprails::WorkflowEventDetailResponse::File]
65
65
 
66
- attr_reader improved_model_output: String?
67
-
68
- def improved_model_output=: (String) -> String
69
-
70
- attr_accessor improvement_tool_status: Deeprails::Models::WorkflowEventDetailResponse::improvement_tool_status?
71
-
72
- attr_reader threshold_type: Deeprails::Models::WorkflowEventDetailResponse::threshold_type?
73
-
74
- def threshold_type=: (
75
- Deeprails::Models::WorkflowEventDetailResponse::threshold_type
76
- ) -> Deeprails::Models::WorkflowEventDetailResponse::threshold_type
77
-
78
66
  def initialize: (
67
+ evaluation_history: ::Array[Deeprails::WorkflowEventDetailResponse::EvaluationHistory],
68
+ evaluation_result: ::Hash[Symbol, top],
79
69
  event_id: String,
80
70
  event_status: Deeprails::Models::WorkflowEventDetailResponse::event_status,
81
71
  filtered: bool,
72
+ improved_model_output: String,
73
+ improvement_tool_status: Deeprails::Models::WorkflowEventDetailResponse::improvement_tool_status?,
82
74
  improvement_tool_type: Deeprails::Models::WorkflowEventDetailResponse::improvement_tool_type,
75
+ threshold_type: Deeprails::Models::WorkflowEventDetailResponse::threshold_type,
83
76
  workflow_id: String,
84
77
  ?automatic_hallucination_tolerance_levels: ::Hash[Symbol, Deeprails::Models::WorkflowEventDetailResponse::automatic_hallucination_tolerance_level],
85
78
  ?capabilities: ::Array[Deeprails::WorkflowEventDetailResponse::Capability],
86
79
  ?custom_hallucination_threshold_values: ::Hash[Symbol, Float],
87
- ?evaluation_history: ::Array[Deeprails::WorkflowEventDetailResponse::EvaluationHistory],
88
- ?evaluation_result: ::Hash[Symbol, top],
89
- ?files: ::Array[Deeprails::WorkflowEventDetailResponse::File],
90
- ?improved_model_output: String,
91
- ?improvement_tool_status: Deeprails::Models::WorkflowEventDetailResponse::improvement_tool_status?,
92
- ?threshold_type: Deeprails::Models::WorkflowEventDetailResponse::threshold_type
80
+ ?files: ::Array[Deeprails::WorkflowEventDetailResponse::File]
93
81
  ) -> void
94
82
 
95
83
  def to_hash: -> {
84
+ evaluation_history: ::Array[Deeprails::WorkflowEventDetailResponse::EvaluationHistory],
85
+ evaluation_result: ::Hash[Symbol, top],
96
86
  event_id: String,
97
87
  event_status: Deeprails::Models::WorkflowEventDetailResponse::event_status,
98
88
  filtered: bool,
89
+ improved_model_output: String,
90
+ improvement_tool_status: Deeprails::Models::WorkflowEventDetailResponse::improvement_tool_status?,
99
91
  improvement_tool_type: Deeprails::Models::WorkflowEventDetailResponse::improvement_tool_type,
92
+ threshold_type: Deeprails::Models::WorkflowEventDetailResponse::threshold_type,
100
93
  workflow_id: String,
101
94
  automatic_hallucination_tolerance_levels: ::Hash[Symbol, Deeprails::Models::WorkflowEventDetailResponse::automatic_hallucination_tolerance_level],
102
95
  capabilities: ::Array[Deeprails::WorkflowEventDetailResponse::Capability],
103
96
  custom_hallucination_threshold_values: ::Hash[Symbol, Float],
104
- evaluation_history: ::Array[Deeprails::WorkflowEventDetailResponse::EvaluationHistory],
105
- evaluation_result: ::Hash[Symbol, top],
106
- files: ::Array[Deeprails::WorkflowEventDetailResponse::File],
107
- improved_model_output: String,
108
- improvement_tool_status: Deeprails::Models::WorkflowEventDetailResponse::improvement_tool_status?,
109
- threshold_type: Deeprails::Models::WorkflowEventDetailResponse::threshold_type
97
+ files: ::Array[Deeprails::WorkflowEventDetailResponse::File]
110
98
  }
111
99
 
112
- type event_status = :"In Progress" | :Completed
113
-
114
- module EventStatus
115
- extend Deeprails::Internal::Type::Enum
116
-
117
- IN_PROGRESS: :"In Progress"
118
- COMPLETED: :Completed
119
-
120
- def self?.values: -> ::Array[Deeprails::Models::WorkflowEventDetailResponse::event_status]
121
- end
122
-
123
- type improvement_tool_type = :regen | :fixit | :do_nothing
124
-
125
- module ImprovementToolType
126
- extend Deeprails::Internal::Type::Enum
127
-
128
- REGEN: :regen
129
- FIXIT: :fixit
130
- DO_NOTHING: :do_nothing
131
-
132
- def self?.values: -> ::Array[Deeprails::Models::WorkflowEventDetailResponse::improvement_tool_type]
133
- end
134
-
135
- type automatic_hallucination_tolerance_level = :low | :medium | :high
136
-
137
- module AutomaticHallucinationToleranceLevel
138
- extend Deeprails::Internal::Type::Enum
139
-
140
- LOW: :low
141
- MEDIUM: :medium
142
- HIGH: :high
143
-
144
- def self?.values: -> ::Array[Deeprails::Models::WorkflowEventDetailResponse::automatic_hallucination_tolerance_level]
145
- end
146
-
147
- type capability = { capability: String }
148
-
149
- class Capability < Deeprails::Internal::Type::BaseModel
150
- attr_reader capability: String?
151
-
152
- def capability=: (String) -> String
153
-
154
- def initialize: (?capability: String) -> void
155
-
156
- def to_hash: -> { capability: String }
157
- end
158
-
159
100
  type evaluation_history =
160
101
  {
161
102
  attempt: String,
@@ -259,32 +200,15 @@ module Deeprails
259
200
  }
260
201
  end
261
202
 
262
- type file = { file_id: String, file_name: String, file_size: Integer }
263
-
264
- class File < Deeprails::Internal::Type::BaseModel
265
- attr_reader file_id: String?
266
-
267
- def file_id=: (String) -> String
268
-
269
- attr_reader file_name: String?
270
-
271
- def file_name=: (String) -> String
272
-
273
- attr_reader file_size: Integer?
203
+ type event_status = :"In Progress" | :Completed
274
204
 
275
- def file_size=: (Integer) -> Integer
205
+ module EventStatus
206
+ extend Deeprails::Internal::Type::Enum
276
207
 
277
- def initialize: (
278
- ?file_id: String,
279
- ?file_name: String,
280
- ?file_size: Integer
281
- ) -> void
208
+ IN_PROGRESS: :"In Progress"
209
+ COMPLETED: :Completed
282
210
 
283
- def to_hash: -> {
284
- file_id: String,
285
- file_name: String,
286
- file_size: Integer
287
- }
211
+ def self?.values: -> ::Array[Deeprails::Models::WorkflowEventDetailResponse::event_status]
288
212
  end
289
213
 
290
214
  type improvement_tool_status =
@@ -300,6 +224,18 @@ module Deeprails
300
224
  def self?.values: -> ::Array[Deeprails::Models::WorkflowEventDetailResponse::improvement_tool_status]
301
225
  end
302
226
 
227
+ type improvement_tool_type = :regen | :fixit | :do_nothing
228
+
229
+ module ImprovementToolType
230
+ extend Deeprails::Internal::Type::Enum
231
+
232
+ REGEN: :regen
233
+ FIXIT: :fixit
234
+ DO_NOTHING: :do_nothing
235
+
236
+ def self?.values: -> ::Array[Deeprails::Models::WorkflowEventDetailResponse::improvement_tool_type]
237
+ end
238
+
303
239
  type threshold_type = :custom | :automatic
304
240
 
305
241
  module ThresholdType
@@ -310,6 +246,58 @@ module Deeprails
310
246
 
311
247
  def self?.values: -> ::Array[Deeprails::Models::WorkflowEventDetailResponse::threshold_type]
312
248
  end
249
+
250
+ type automatic_hallucination_tolerance_level = :low | :medium | :high
251
+
252
+ module AutomaticHallucinationToleranceLevel
253
+ extend Deeprails::Internal::Type::Enum
254
+
255
+ LOW: :low
256
+ MEDIUM: :medium
257
+ HIGH: :high
258
+
259
+ def self?.values: -> ::Array[Deeprails::Models::WorkflowEventDetailResponse::automatic_hallucination_tolerance_level]
260
+ end
261
+
262
+ type capability = { capability: String }
263
+
264
+ class Capability < Deeprails::Internal::Type::BaseModel
265
+ attr_reader capability: String?
266
+
267
+ def capability=: (String) -> String
268
+
269
+ def initialize: (?capability: String) -> void
270
+
271
+ def to_hash: -> { capability: String }
272
+ end
273
+
274
+ type file = { file_id: String, file_name: String, file_size: Integer }
275
+
276
+ class File < Deeprails::Internal::Type::BaseModel
277
+ attr_reader file_id: String?
278
+
279
+ def file_id=: (String) -> String
280
+
281
+ attr_reader file_name: String?
282
+
283
+ def file_name=: (String) -> String
284
+
285
+ attr_reader file_size: Integer?
286
+
287
+ def file_size=: (Integer) -> Integer
288
+
289
+ def initialize: (
290
+ ?file_id: String,
291
+ ?file_name: String,
292
+ ?file_size: Integer
293
+ ) -> void
294
+
295
+ def to_hash: -> {
296
+ file_id: String,
297
+ file_name: String,
298
+ file_size: Integer
299
+ }
300
+ end
313
301
  end
314
302
  end
315
303
  end
@@ -29,6 +29,8 @@ module Deeprails
29
29
 
30
30
  class MonitorEventResponse = Deeprails::Models::MonitorEventResponse
31
31
 
32
+ class MonitorRetrieveEventParams = Deeprails::Models::MonitorRetrieveEventParams
33
+
32
34
  class MonitorRetrieveParams = Deeprails::Models::MonitorRetrieveParams
33
35
 
34
36
  class MonitorSubmitEventParams = Deeprails::Models::MonitorSubmitEventParams
@@ -24,6 +24,12 @@ module Deeprails
24
24
  ?request_options: Deeprails::request_opts
25
25
  ) -> Deeprails::MonitorUpdateResponse
26
26
 
27
+ def retrieve_event: (
28
+ String event_id,
29
+ monitor_id: String,
30
+ ?request_options: Deeprails::request_opts
31
+ ) -> Deeprails::MonitorEventDetailResponse
32
+
27
33
  def submit_event: (
28
34
  String monitor_id,
29
35
  model_input: Deeprails::MonitorSubmitEventParams::ModelInput,