deeprails 0.12.0 → 0.14.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,45 @@ 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
+ improvement_action: Deeprails::Models::DefendResponse::improvement_action,
18
+ stats: Deeprails::DefendResponse::Stats
18
19
  }
19
20
 
20
21
  class DefendResponse < Deeprails::Internal::Type::BaseModel
21
- attr_accessor name: String
22
+ attr_accessor automatic_hallucination_tolerance_levels: ::Hash[Symbol, Deeprails::Models::DefendResponse::automatic_hallucination_tolerance_level]
22
23
 
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]
24
+ attr_accessor capabilities: ::Array[Deeprails::DefendResponse::Capability]
30
25
 
31
- attr_reader capabilities: ::Array[Deeprails::DefendResponse::Capability]?
26
+ attr_accessor created_at: Time
32
27
 
33
- def capabilities=: (
34
- ::Array[Deeprails::DefendResponse::Capability]
35
- ) -> ::Array[Deeprails::DefendResponse::Capability]
28
+ attr_accessor custom_hallucination_threshold_values: ::Hash[Symbol, Float]
36
29
 
37
- attr_reader created_at: Time?
30
+ attr_accessor description: String
38
31
 
39
- def created_at=: (Time) -> Time
32
+ attr_accessor events: ::Array[Deeprails::DefendResponse::Event]
40
33
 
41
- attr_reader custom_hallucination_threshold_values: ::Hash[Symbol, Float]?
34
+ attr_accessor files: ::Array[Deeprails::DefendResponse::File]
42
35
 
43
- def custom_hallucination_threshold_values=: (
44
- ::Hash[Symbol, Float]
45
- ) -> ::Hash[Symbol, Float]
36
+ attr_accessor name: String
46
37
 
47
- attr_reader description: String?
38
+ attr_accessor status: Deeprails::Models::DefendResponse::status
48
39
 
49
- def description=: (String) -> String
40
+ attr_accessor threshold_type: Deeprails::Models::DefendResponse::threshold_type
50
41
 
51
- attr_reader events: ::Array[Deeprails::DefendResponse::Event]?
42
+ attr_accessor updated_at: Time
52
43
 
53
- def events=: (
54
- ::Array[Deeprails::DefendResponse::Event]
55
- ) -> ::Array[Deeprails::DefendResponse::Event]
44
+ attr_accessor workflow_id: String
56
45
 
57
- attr_reader files: ::Array[Deeprails::DefendResponse::File]?
46
+ attr_reader improvement_action: Deeprails::Models::DefendResponse::improvement_action?
58
47
 
59
- def files=: (
60
- ::Array[Deeprails::DefendResponse::File]
61
- ) -> ::Array[Deeprails::DefendResponse::File]
48
+ def improvement_action=: (
49
+ Deeprails::Models::DefendResponse::improvement_action
50
+ ) -> Deeprails::Models::DefendResponse::improvement_action
62
51
 
63
52
  attr_reader stats: Deeprails::DefendResponse::Stats?
64
53
 
@@ -66,41 +55,24 @@ module Deeprails
66
55
  Deeprails::DefendResponse::Stats
67
56
  ) -> Deeprails::DefendResponse::Stats
68
57
 
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
58
  def initialize: (
59
+ automatic_hallucination_tolerance_levels: ::Hash[Symbol, Deeprails::Models::DefendResponse::automatic_hallucination_tolerance_level],
60
+ capabilities: ::Array[Deeprails::DefendResponse::Capability],
61
+ created_at: Time,
62
+ custom_hallucination_threshold_values: ::Hash[Symbol, Float],
63
+ description: String,
64
+ events: ::Array[Deeprails::DefendResponse::Event],
65
+ files: ::Array[Deeprails::DefendResponse::File],
86
66
  name: String,
67
+ status: Deeprails::Models::DefendResponse::status,
68
+ threshold_type: Deeprails::Models::DefendResponse::threshold_type,
69
+ updated_at: Time,
87
70
  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
71
+ ?improvement_action: Deeprails::Models::DefendResponse::improvement_action,
72
+ ?stats: Deeprails::DefendResponse::Stats
99
73
  ) -> void
100
74
 
101
75
  def to_hash: -> {
102
- name: String,
103
- workflow_id: String,
104
76
  automatic_hallucination_tolerance_levels: ::Hash[Symbol, Deeprails::Models::DefendResponse::automatic_hallucination_tolerance_level],
105
77
  capabilities: ::Array[Deeprails::DefendResponse::Capability],
106
78
  created_at: Time,
@@ -108,10 +80,13 @@ module Deeprails
108
80
  description: String,
109
81
  events: ::Array[Deeprails::DefendResponse::Event],
110
82
  files: ::Array[Deeprails::DefendResponse::File],
111
- stats: Deeprails::DefendResponse::Stats,
83
+ name: String,
112
84
  status: Deeprails::Models::DefendResponse::status,
113
85
  threshold_type: Deeprails::Models::DefendResponse::threshold_type,
114
- updated_at: Time
86
+ updated_at: Time,
87
+ workflow_id: String,
88
+ improvement_action: Deeprails::Models::DefendResponse::improvement_action,
89
+ stats: Deeprails::DefendResponse::Stats
115
90
  }
116
91
 
117
92
  type automatic_hallucination_tolerance_level = :low | :medium | :high
@@ -311,6 +286,40 @@ module Deeprails
311
286
  }
312
287
  end
313
288
 
289
+ type status = :inactive | :active
290
+
291
+ module Status
292
+ extend Deeprails::Internal::Type::Enum
293
+
294
+ INACTIVE: :inactive
295
+ ACTIVE: :active
296
+
297
+ def self?.values: -> ::Array[Deeprails::Models::DefendResponse::status]
298
+ end
299
+
300
+ type threshold_type = :custom | :automatic
301
+
302
+ module ThresholdType
303
+ extend Deeprails::Internal::Type::Enum
304
+
305
+ CUSTOM: :custom
306
+ AUTOMATIC: :automatic
307
+
308
+ def self?.values: -> ::Array[Deeprails::Models::DefendResponse::threshold_type]
309
+ end
310
+
311
+ type improvement_action = :regen | :fixit | :do_nothing
312
+
313
+ module ImprovementAction
314
+ extend Deeprails::Internal::Type::Enum
315
+
316
+ REGEN: :regen
317
+ FIXIT: :fixit
318
+ DO_NOTHING: :do_nothing
319
+
320
+ def self?.values: -> ::Array[Deeprails::Models::DefendResponse::improvement_action]
321
+ end
322
+
314
323
  type stats =
315
324
  {
316
325
  outputs_below_threshold: Integer,
@@ -343,28 +352,6 @@ module Deeprails
343
352
  outputs_processed: Integer
344
353
  }
345
354
  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
355
  end
369
356
  end
370
357
  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,30 +2,40 @@ 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,
8
- improvement_tool_type: Deeprails::Models::WorkflowEventDetailResponse::improvement_tool_type,
10
+ improved_model_output: String,
11
+ improvement_action: Deeprails::Models::WorkflowEventDetailResponse::improvement_action,
12
+ improvement_tool_status: Deeprails::Models::WorkflowEventDetailResponse::improvement_tool_status?,
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
 
28
- attr_accessor improvement_tool_type: Deeprails::Models::WorkflowEventDetailResponse::improvement_tool_type
32
+ attr_accessor improved_model_output: String
33
+
34
+ attr_accessor improvement_action: Deeprails::Models::WorkflowEventDetailResponse::improvement_action
35
+
36
+ attr_accessor improvement_tool_status: Deeprails::Models::WorkflowEventDetailResponse::improvement_tool_status?
37
+
38
+ attr_accessor threshold_type: Deeprails::Models::WorkflowEventDetailResponse::threshold_type
29
39
 
30
40
  attr_accessor workflow_id: String
31
41
 
@@ -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,
82
- improvement_tool_type: Deeprails::Models::WorkflowEventDetailResponse::improvement_tool_type,
72
+ improved_model_output: String,
73
+ improvement_action: Deeprails::Models::WorkflowEventDetailResponse::improvement_action,
74
+ improvement_tool_status: Deeprails::Models::WorkflowEventDetailResponse::improvement_tool_status?,
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,
99
- improvement_tool_type: Deeprails::Models::WorkflowEventDetailResponse::improvement_tool_type,
89
+ improved_model_output: String,
90
+ improvement_action: Deeprails::Models::WorkflowEventDetailResponse::improvement_action,
91
+ improvement_tool_status: Deeprails::Models::WorkflowEventDetailResponse::improvement_tool_status?,
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,27 @@ 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?
203
+ type event_status = :"In Progress" | :Completed
266
204
 
267
- def file_id=: (String) -> String
205
+ module EventStatus
206
+ extend Deeprails::Internal::Type::Enum
268
207
 
269
- attr_reader file_name: String?
208
+ IN_PROGRESS: :"In Progress"
209
+ COMPLETED: :Completed
270
210
 
271
- def file_name=: (String) -> String
211
+ def self?.values: -> ::Array[Deeprails::Models::WorkflowEventDetailResponse::event_status]
212
+ end
272
213
 
273
- attr_reader file_size: Integer?
214
+ type improvement_action = :regen | :fixit | :do_nothing
274
215
 
275
- def file_size=: (Integer) -> Integer
216
+ module ImprovementAction
217
+ extend Deeprails::Internal::Type::Enum
276
218
 
277
- def initialize: (
278
- ?file_id: String,
279
- ?file_name: String,
280
- ?file_size: Integer
281
- ) -> void
219
+ REGEN: :regen
220
+ FIXIT: :fixit
221
+ DO_NOTHING: :do_nothing
282
222
 
283
- def to_hash: -> {
284
- file_id: String,
285
- file_name: String,
286
- file_size: Integer
287
- }
223
+ def self?.values: -> ::Array[Deeprails::Models::WorkflowEventDetailResponse::improvement_action]
288
224
  end
289
225
 
290
226
  type improvement_tool_status =
@@ -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