openlayer 0.4.1 → 0.5.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 +22 -0
- data/README.md +1 -1
- data/lib/openlayer/internal/transport/base_client.rb +7 -1
- data/lib/openlayer/internal/transport/pooled_net_requester.rb +36 -26
- data/lib/openlayer/internal/util.rb +3 -2
- data/lib/openlayer/models/inference_pipeline_retrieve_response.rb +507 -1
- data/lib/openlayer/models/inference_pipeline_update_response.rb +507 -1
- data/lib/openlayer/models/projects/inference_pipeline_create_params.rb +609 -1
- data/lib/openlayer/models/projects/inference_pipeline_create_response.rb +507 -1
- data/lib/openlayer/models/projects/inference_pipeline_list_response.rb +507 -1
- data/lib/openlayer/models/projects/test_create_params.rb +49 -1
- data/lib/openlayer/models/projects/test_create_response.rb +49 -1
- data/lib/openlayer/models/projects/test_list_response.rb +49 -1
- data/lib/openlayer/resources/projects/inference_pipelines.rb +3 -1
- data/lib/openlayer/resources/projects/tests.rb +9 -1
- data/lib/openlayer/version.rb +1 -1
- data/lib/openlayer.rb +2 -0
- data/manifest.yaml +2 -0
- data/rbi/openlayer/internal/transport/base_client.rbi +5 -0
- data/rbi/openlayer/internal/transport/pooled_net_requester.rbi +6 -2
- data/rbi/openlayer/internal/type/base_model.rbi +8 -4
- data/rbi/openlayer/models/inference_pipeline_retrieve_response.rbi +948 -0
- data/rbi/openlayer/models/inference_pipeline_update_response.rbi +948 -0
- data/rbi/openlayer/models/projects/inference_pipeline_create_params.rbi +1095 -0
- data/rbi/openlayer/models/projects/inference_pipeline_create_response.rbi +952 -0
- data/rbi/openlayer/models/projects/inference_pipeline_list_response.rbi +952 -0
- data/rbi/openlayer/models/projects/test_create_params.rbi +40 -0
- data/rbi/openlayer/models/projects/test_create_response.rbi +40 -0
- data/rbi/openlayer/models/projects/test_list_response.rbi +40 -0
- data/rbi/openlayer/resources/projects/inference_pipelines.rbi +12 -0
- data/rbi/openlayer/resources/projects/tests.rbi +16 -0
- data/sig/openlayer/internal/transport/base_client.rbs +2 -0
- data/sig/openlayer/internal/transport/pooled_net_requester.rbs +4 -1
- data/sig/openlayer/models/inference_pipeline_retrieve_response.rbs +473 -0
- data/sig/openlayer/models/inference_pipeline_update_response.rbs +473 -0
- data/sig/openlayer/models/projects/inference_pipeline_create_params.rbs +493 -0
- data/sig/openlayer/models/projects/inference_pipeline_create_response.rbs +473 -0
- data/sig/openlayer/models/projects/inference_pipeline_list_response.rbs +473 -0
- data/sig/openlayer/models/projects/test_create_params.rbs +20 -0
- data/sig/openlayer/models/projects/test_create_response.rbs +20 -0
- data/sig/openlayer/models/projects/test_list_response.rbs +20 -0
- data/sig/openlayer/resources/projects/inference_pipelines.rbs +1 -0
- data/sig/openlayer/resources/projects/tests.rbs +4 -0
- metadata +2 -2
|
@@ -17,6 +17,14 @@ module Openlayer
|
|
|
17
17
|
# @return [String]
|
|
18
18
|
required :name, String
|
|
19
19
|
|
|
20
|
+
# @!attribute data_backend
|
|
21
|
+
#
|
|
22
|
+
# @return [Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember0, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::BackendType, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember2, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember3, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember4, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember5, nil]
|
|
23
|
+
optional :data_backend,
|
|
24
|
+
union: -> { Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend },
|
|
25
|
+
api_name: :dataBackend,
|
|
26
|
+
nil?: true
|
|
27
|
+
|
|
20
28
|
# @!attribute project
|
|
21
29
|
#
|
|
22
30
|
# @return [Openlayer::Models::Projects::InferencePipelineCreateResponse::Project, nil]
|
|
@@ -109,6 +117,18 @@ module Openlayer
|
|
|
109
117
|
# @return [Integer]
|
|
110
118
|
required :total_goal_count, Integer, api_name: :totalGoalCount
|
|
111
119
|
|
|
120
|
+
# @!attribute date_last_polled
|
|
121
|
+
# The last time the data was polled.
|
|
122
|
+
#
|
|
123
|
+
# @return [Time, nil]
|
|
124
|
+
optional :date_last_polled, Time, api_name: :dateLastPolled, nil?: true
|
|
125
|
+
|
|
126
|
+
# @!attribute total_records_count
|
|
127
|
+
# The total number of records in the data backend.
|
|
128
|
+
#
|
|
129
|
+
# @return [Integer, nil]
|
|
130
|
+
optional :total_records_count, Integer, api_name: :totalRecordsCount, nil?: true
|
|
131
|
+
|
|
112
132
|
# @!attribute workspace_id
|
|
113
133
|
# The workspace id.
|
|
114
134
|
#
|
|
@@ -116,7 +136,7 @@ module Openlayer
|
|
|
116
136
|
optional :workspace_id, String, api_name: :workspaceId
|
|
117
137
|
end
|
|
118
138
|
|
|
119
|
-
# @!method initialize(id:, date_created:, date_last_evaluated:, date_last_sample_received:, date_of_next_evaluation:, date_updated:, description:, failing_goal_count:, links:, name:, passing_goal_count:, project_id:, status:, status_message:, total_goal_count:, project: nil, workspace: nil, workspace_id: nil)
|
|
139
|
+
# @!method initialize(id:, date_created:, date_last_evaluated:, date_last_sample_received:, date_of_next_evaluation:, date_updated:, description:, failing_goal_count:, links:, name:, passing_goal_count:, project_id:, status:, status_message:, total_goal_count:, data_backend: nil, date_last_polled: nil, project: nil, total_records_count: nil, workspace: nil, workspace_id: nil)
|
|
120
140
|
# @param id [String] The inference pipeline id.
|
|
121
141
|
#
|
|
122
142
|
# @param date_created [Time] The creation date.
|
|
@@ -147,8 +167,14 @@ module Openlayer
|
|
|
147
167
|
#
|
|
148
168
|
# @param total_goal_count [Integer] The total number of tests.
|
|
149
169
|
#
|
|
170
|
+
# @param data_backend [Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember0, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::BackendType, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember2, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember3, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember4, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember5, nil]
|
|
171
|
+
#
|
|
172
|
+
# @param date_last_polled [Time, nil] The last time the data was polled.
|
|
173
|
+
#
|
|
150
174
|
# @param project [Openlayer::Models::Projects::InferencePipelineCreateResponse::Project, nil]
|
|
151
175
|
#
|
|
176
|
+
# @param total_records_count [Integer, nil] The total number of records in the data backend.
|
|
177
|
+
#
|
|
152
178
|
# @param workspace [Openlayer::Models::Projects::InferencePipelineCreateResponse::Workspace, nil]
|
|
153
179
|
#
|
|
154
180
|
# @param workspace_id [String] The workspace id.
|
|
@@ -181,6 +207,486 @@ module Openlayer
|
|
|
181
207
|
# @return [Array<Symbol>]
|
|
182
208
|
end
|
|
183
209
|
|
|
210
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateResponse#data_backend
|
|
211
|
+
module DataBackend
|
|
212
|
+
extend Openlayer::Internal::Type::Union
|
|
213
|
+
|
|
214
|
+
variant -> { Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember0 }
|
|
215
|
+
|
|
216
|
+
variant -> { Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::BackendType }
|
|
217
|
+
|
|
218
|
+
variant -> { Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember2 }
|
|
219
|
+
|
|
220
|
+
variant -> { Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember3 }
|
|
221
|
+
|
|
222
|
+
variant -> { Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember4 }
|
|
223
|
+
|
|
224
|
+
variant -> { Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember5 }
|
|
225
|
+
|
|
226
|
+
class UnionMember0 < Openlayer::Internal::Type::BaseModel
|
|
227
|
+
# @!attribute backend_type
|
|
228
|
+
#
|
|
229
|
+
# @return [Symbol, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember0::BackendType]
|
|
230
|
+
required :backend_type,
|
|
231
|
+
enum: -> { Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember0::BackendType },
|
|
232
|
+
api_name: :backendType
|
|
233
|
+
|
|
234
|
+
# @!attribute bigquery_connection_id
|
|
235
|
+
#
|
|
236
|
+
# @return [String, nil]
|
|
237
|
+
required :bigquery_connection_id, String, api_name: :bigqueryConnectionId, nil?: true
|
|
238
|
+
|
|
239
|
+
# @!attribute dataset_id
|
|
240
|
+
#
|
|
241
|
+
# @return [String]
|
|
242
|
+
required :dataset_id, String, api_name: :datasetId
|
|
243
|
+
|
|
244
|
+
# @!attribute project_id
|
|
245
|
+
#
|
|
246
|
+
# @return [String]
|
|
247
|
+
required :project_id, String, api_name: :projectId
|
|
248
|
+
|
|
249
|
+
# @!attribute table_id
|
|
250
|
+
#
|
|
251
|
+
# @return [String, nil]
|
|
252
|
+
required :table_id, String, api_name: :tableId, nil?: true
|
|
253
|
+
|
|
254
|
+
# @!attribute partition_type
|
|
255
|
+
#
|
|
256
|
+
# @return [Symbol, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember0::PartitionType, nil]
|
|
257
|
+
optional :partition_type,
|
|
258
|
+
enum: -> { Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember0::PartitionType },
|
|
259
|
+
api_name: :partitionType,
|
|
260
|
+
nil?: true
|
|
261
|
+
|
|
262
|
+
# @!method initialize(backend_type:, bigquery_connection_id:, dataset_id:, project_id:, table_id:, partition_type: nil)
|
|
263
|
+
# @param backend_type [Symbol, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember0::BackendType]
|
|
264
|
+
# @param bigquery_connection_id [String, nil]
|
|
265
|
+
# @param dataset_id [String]
|
|
266
|
+
# @param project_id [String]
|
|
267
|
+
# @param table_id [String, nil]
|
|
268
|
+
# @param partition_type [Symbol, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember0::PartitionType, nil]
|
|
269
|
+
|
|
270
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember0#backend_type
|
|
271
|
+
module BackendType
|
|
272
|
+
extend Openlayer::Internal::Type::Enum
|
|
273
|
+
|
|
274
|
+
BIGQUERY = :bigquery
|
|
275
|
+
|
|
276
|
+
# @!method self.values
|
|
277
|
+
# @return [Array<Symbol>]
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember0#config
|
|
281
|
+
class Config < Openlayer::Internal::Type::BaseModel
|
|
282
|
+
# @!attribute ground_truth_column_name
|
|
283
|
+
# Name of the column with the ground truths.
|
|
284
|
+
#
|
|
285
|
+
# @return [String, nil]
|
|
286
|
+
optional :ground_truth_column_name, String, api_name: :groundTruthColumnName, nil?: true
|
|
287
|
+
|
|
288
|
+
# @!attribute human_feedback_column_name
|
|
289
|
+
# Name of the column with human feedback.
|
|
290
|
+
#
|
|
291
|
+
# @return [String, nil]
|
|
292
|
+
optional :human_feedback_column_name, String, api_name: :humanFeedbackColumnName, nil?: true
|
|
293
|
+
|
|
294
|
+
# @!attribute latency_column_name
|
|
295
|
+
# Name of the column with the latencies.
|
|
296
|
+
#
|
|
297
|
+
# @return [String, nil]
|
|
298
|
+
optional :latency_column_name, String, api_name: :latencyColumnName, nil?: true
|
|
299
|
+
|
|
300
|
+
# @!attribute timestamp_column_name
|
|
301
|
+
# Name of the column with the timestamps. Timestamps must be in UNIX sec format.
|
|
302
|
+
# If not provided, the upload timestamp is used.
|
|
303
|
+
#
|
|
304
|
+
# @return [String, nil]
|
|
305
|
+
optional :timestamp_column_name, String, api_name: :timestampColumnName, nil?: true
|
|
306
|
+
|
|
307
|
+
# @!method initialize(ground_truth_column_name: nil, human_feedback_column_name: nil, latency_column_name: nil, timestamp_column_name: nil)
|
|
308
|
+
# Some parameter documentations has been truncated, see
|
|
309
|
+
# {Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember0::Config}
|
|
310
|
+
# for more details.
|
|
311
|
+
#
|
|
312
|
+
# @param ground_truth_column_name [String, nil] Name of the column with the ground truths.
|
|
313
|
+
#
|
|
314
|
+
# @param human_feedback_column_name [String, nil] Name of the column with human feedback.
|
|
315
|
+
#
|
|
316
|
+
# @param latency_column_name [String, nil] Name of the column with the latencies.
|
|
317
|
+
#
|
|
318
|
+
# @param timestamp_column_name [String, nil] Name of the column with the timestamps. Timestamps must be in UNIX sec format. I
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember0#partition_type
|
|
322
|
+
module PartitionType
|
|
323
|
+
extend Openlayer::Internal::Type::Enum
|
|
324
|
+
|
|
325
|
+
DAY = :DAY
|
|
326
|
+
MONTH = :MONTH
|
|
327
|
+
YEAR = :YEAR
|
|
328
|
+
|
|
329
|
+
# @!method self.values
|
|
330
|
+
# @return [Array<Symbol>]
|
|
331
|
+
end
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
class BackendType < Openlayer::Internal::Type::BaseModel
|
|
335
|
+
# @!attribute backend_type
|
|
336
|
+
#
|
|
337
|
+
# @return [Symbol, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::BackendType::BackendType]
|
|
338
|
+
required :backend_type,
|
|
339
|
+
enum: -> { Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::BackendType::BackendType },
|
|
340
|
+
api_name: :backendType
|
|
341
|
+
|
|
342
|
+
# @!method initialize(backend_type:)
|
|
343
|
+
# @param backend_type [Symbol, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::BackendType::BackendType]
|
|
344
|
+
|
|
345
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::BackendType#backend_type
|
|
346
|
+
module BackendType
|
|
347
|
+
extend Openlayer::Internal::Type::Enum
|
|
348
|
+
|
|
349
|
+
DEFAULT = :default
|
|
350
|
+
|
|
351
|
+
# @!method self.values
|
|
352
|
+
# @return [Array<Symbol>]
|
|
353
|
+
end
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
class UnionMember2 < Openlayer::Internal::Type::BaseModel
|
|
357
|
+
# @!attribute backend_type
|
|
358
|
+
#
|
|
359
|
+
# @return [Symbol, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember2::BackendType]
|
|
360
|
+
required :backend_type,
|
|
361
|
+
enum: -> { Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember2::BackendType },
|
|
362
|
+
api_name: :backendType
|
|
363
|
+
|
|
364
|
+
# @!attribute database
|
|
365
|
+
#
|
|
366
|
+
# @return [String]
|
|
367
|
+
required :database, String
|
|
368
|
+
|
|
369
|
+
# @!attribute schema
|
|
370
|
+
#
|
|
371
|
+
# @return [String]
|
|
372
|
+
required :schema, String
|
|
373
|
+
|
|
374
|
+
# @!attribute snowflake_connection_id
|
|
375
|
+
#
|
|
376
|
+
# @return [String, nil]
|
|
377
|
+
required :snowflake_connection_id, String, api_name: :snowflakeConnectionId, nil?: true
|
|
378
|
+
|
|
379
|
+
# @!attribute table
|
|
380
|
+
#
|
|
381
|
+
# @return [String, nil]
|
|
382
|
+
required :table, String, nil?: true
|
|
383
|
+
|
|
384
|
+
# @!method initialize(backend_type:, database:, schema:, snowflake_connection_id:, table:)
|
|
385
|
+
# @param backend_type [Symbol, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember2::BackendType]
|
|
386
|
+
# @param database [String]
|
|
387
|
+
# @param schema [String]
|
|
388
|
+
# @param snowflake_connection_id [String, nil]
|
|
389
|
+
# @param table [String, nil]
|
|
390
|
+
|
|
391
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember2#backend_type
|
|
392
|
+
module BackendType
|
|
393
|
+
extend Openlayer::Internal::Type::Enum
|
|
394
|
+
|
|
395
|
+
SNOWFLAKE = :snowflake
|
|
396
|
+
|
|
397
|
+
# @!method self.values
|
|
398
|
+
# @return [Array<Symbol>]
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember2#config
|
|
402
|
+
class Config < Openlayer::Internal::Type::BaseModel
|
|
403
|
+
# @!attribute ground_truth_column_name
|
|
404
|
+
# Name of the column with the ground truths.
|
|
405
|
+
#
|
|
406
|
+
# @return [String, nil]
|
|
407
|
+
optional :ground_truth_column_name, String, api_name: :groundTruthColumnName, nil?: true
|
|
408
|
+
|
|
409
|
+
# @!attribute human_feedback_column_name
|
|
410
|
+
# Name of the column with human feedback.
|
|
411
|
+
#
|
|
412
|
+
# @return [String, nil]
|
|
413
|
+
optional :human_feedback_column_name, String, api_name: :humanFeedbackColumnName, nil?: true
|
|
414
|
+
|
|
415
|
+
# @!attribute latency_column_name
|
|
416
|
+
# Name of the column with the latencies.
|
|
417
|
+
#
|
|
418
|
+
# @return [String, nil]
|
|
419
|
+
optional :latency_column_name, String, api_name: :latencyColumnName, nil?: true
|
|
420
|
+
|
|
421
|
+
# @!attribute timestamp_column_name
|
|
422
|
+
# Name of the column with the timestamps. Timestamps must be in UNIX sec format.
|
|
423
|
+
# If not provided, the upload timestamp is used.
|
|
424
|
+
#
|
|
425
|
+
# @return [String, nil]
|
|
426
|
+
optional :timestamp_column_name, String, api_name: :timestampColumnName, nil?: true
|
|
427
|
+
|
|
428
|
+
# @!method initialize(ground_truth_column_name: nil, human_feedback_column_name: nil, latency_column_name: nil, timestamp_column_name: nil)
|
|
429
|
+
# Some parameter documentations has been truncated, see
|
|
430
|
+
# {Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember2::Config}
|
|
431
|
+
# for more details.
|
|
432
|
+
#
|
|
433
|
+
# @param ground_truth_column_name [String, nil] Name of the column with the ground truths.
|
|
434
|
+
#
|
|
435
|
+
# @param human_feedback_column_name [String, nil] Name of the column with human feedback.
|
|
436
|
+
#
|
|
437
|
+
# @param latency_column_name [String, nil] Name of the column with the latencies.
|
|
438
|
+
#
|
|
439
|
+
# @param timestamp_column_name [String, nil] Name of the column with the timestamps. Timestamps must be in UNIX sec format. I
|
|
440
|
+
end
|
|
441
|
+
end
|
|
442
|
+
|
|
443
|
+
class UnionMember3 < Openlayer::Internal::Type::BaseModel
|
|
444
|
+
# @!attribute backend_type
|
|
445
|
+
#
|
|
446
|
+
# @return [Symbol, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember3::BackendType]
|
|
447
|
+
required :backend_type,
|
|
448
|
+
enum: -> { Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember3::BackendType },
|
|
449
|
+
api_name: :backendType
|
|
450
|
+
|
|
451
|
+
# @!attribute databricks_dtl_connection_id
|
|
452
|
+
#
|
|
453
|
+
# @return [String, nil]
|
|
454
|
+
required :databricks_dtl_connection_id, String, api_name: :databricksDtlConnectionId, nil?: true
|
|
455
|
+
|
|
456
|
+
# @!attribute table_id
|
|
457
|
+
#
|
|
458
|
+
# @return [String, nil]
|
|
459
|
+
required :table_id, String, api_name: :tableId, nil?: true
|
|
460
|
+
|
|
461
|
+
# @!method initialize(backend_type:, databricks_dtl_connection_id:, table_id:)
|
|
462
|
+
# @param backend_type [Symbol, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember3::BackendType]
|
|
463
|
+
# @param databricks_dtl_connection_id [String, nil]
|
|
464
|
+
# @param table_id [String, nil]
|
|
465
|
+
|
|
466
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember3#backend_type
|
|
467
|
+
module BackendType
|
|
468
|
+
extend Openlayer::Internal::Type::Enum
|
|
469
|
+
|
|
470
|
+
DATABRICKS_DTL = :databricks_dtl
|
|
471
|
+
|
|
472
|
+
# @!method self.values
|
|
473
|
+
# @return [Array<Symbol>]
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember3#config
|
|
477
|
+
class Config < Openlayer::Internal::Type::BaseModel
|
|
478
|
+
# @!attribute ground_truth_column_name
|
|
479
|
+
# Name of the column with the ground truths.
|
|
480
|
+
#
|
|
481
|
+
# @return [String, nil]
|
|
482
|
+
optional :ground_truth_column_name, String, api_name: :groundTruthColumnName, nil?: true
|
|
483
|
+
|
|
484
|
+
# @!attribute human_feedback_column_name
|
|
485
|
+
# Name of the column with human feedback.
|
|
486
|
+
#
|
|
487
|
+
# @return [String, nil]
|
|
488
|
+
optional :human_feedback_column_name, String, api_name: :humanFeedbackColumnName, nil?: true
|
|
489
|
+
|
|
490
|
+
# @!attribute latency_column_name
|
|
491
|
+
# Name of the column with the latencies.
|
|
492
|
+
#
|
|
493
|
+
# @return [String, nil]
|
|
494
|
+
optional :latency_column_name, String, api_name: :latencyColumnName, nil?: true
|
|
495
|
+
|
|
496
|
+
# @!attribute timestamp_column_name
|
|
497
|
+
# Name of the column with the timestamps. Timestamps must be in UNIX sec format.
|
|
498
|
+
# If not provided, the upload timestamp is used.
|
|
499
|
+
#
|
|
500
|
+
# @return [String, nil]
|
|
501
|
+
optional :timestamp_column_name, String, api_name: :timestampColumnName, nil?: true
|
|
502
|
+
|
|
503
|
+
# @!method initialize(ground_truth_column_name: nil, human_feedback_column_name: nil, latency_column_name: nil, timestamp_column_name: nil)
|
|
504
|
+
# Some parameter documentations has been truncated, see
|
|
505
|
+
# {Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember3::Config}
|
|
506
|
+
# for more details.
|
|
507
|
+
#
|
|
508
|
+
# @param ground_truth_column_name [String, nil] Name of the column with the ground truths.
|
|
509
|
+
#
|
|
510
|
+
# @param human_feedback_column_name [String, nil] Name of the column with human feedback.
|
|
511
|
+
#
|
|
512
|
+
# @param latency_column_name [String, nil] Name of the column with the latencies.
|
|
513
|
+
#
|
|
514
|
+
# @param timestamp_column_name [String, nil] Name of the column with the timestamps. Timestamps must be in UNIX sec format. I
|
|
515
|
+
end
|
|
516
|
+
end
|
|
517
|
+
|
|
518
|
+
class UnionMember4 < Openlayer::Internal::Type::BaseModel
|
|
519
|
+
# @!attribute backend_type
|
|
520
|
+
#
|
|
521
|
+
# @return [Symbol, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember4::BackendType]
|
|
522
|
+
required :backend_type,
|
|
523
|
+
enum: -> { Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember4::BackendType },
|
|
524
|
+
api_name: :backendType
|
|
525
|
+
|
|
526
|
+
# @!attribute redshift_connection_id
|
|
527
|
+
#
|
|
528
|
+
# @return [String, nil]
|
|
529
|
+
required :redshift_connection_id, String, api_name: :redshiftConnectionId, nil?: true
|
|
530
|
+
|
|
531
|
+
# @!attribute schema_name
|
|
532
|
+
#
|
|
533
|
+
# @return [String]
|
|
534
|
+
required :schema_name, String, api_name: :schemaName
|
|
535
|
+
|
|
536
|
+
# @!attribute table_name
|
|
537
|
+
#
|
|
538
|
+
# @return [String]
|
|
539
|
+
required :table_name, String, api_name: :tableName
|
|
540
|
+
|
|
541
|
+
# @!method initialize(backend_type:, redshift_connection_id:, schema_name:, table_name:)
|
|
542
|
+
# @param backend_type [Symbol, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember4::BackendType]
|
|
543
|
+
# @param redshift_connection_id [String, nil]
|
|
544
|
+
# @param schema_name [String]
|
|
545
|
+
# @param table_name [String]
|
|
546
|
+
|
|
547
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember4#backend_type
|
|
548
|
+
module BackendType
|
|
549
|
+
extend Openlayer::Internal::Type::Enum
|
|
550
|
+
|
|
551
|
+
REDSHIFT = :redshift
|
|
552
|
+
|
|
553
|
+
# @!method self.values
|
|
554
|
+
# @return [Array<Symbol>]
|
|
555
|
+
end
|
|
556
|
+
|
|
557
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember4#config
|
|
558
|
+
class Config < Openlayer::Internal::Type::BaseModel
|
|
559
|
+
# @!attribute ground_truth_column_name
|
|
560
|
+
# Name of the column with the ground truths.
|
|
561
|
+
#
|
|
562
|
+
# @return [String, nil]
|
|
563
|
+
optional :ground_truth_column_name, String, api_name: :groundTruthColumnName, nil?: true
|
|
564
|
+
|
|
565
|
+
# @!attribute human_feedback_column_name
|
|
566
|
+
# Name of the column with human feedback.
|
|
567
|
+
#
|
|
568
|
+
# @return [String, nil]
|
|
569
|
+
optional :human_feedback_column_name, String, api_name: :humanFeedbackColumnName, nil?: true
|
|
570
|
+
|
|
571
|
+
# @!attribute latency_column_name
|
|
572
|
+
# Name of the column with the latencies.
|
|
573
|
+
#
|
|
574
|
+
# @return [String, nil]
|
|
575
|
+
optional :latency_column_name, String, api_name: :latencyColumnName, nil?: true
|
|
576
|
+
|
|
577
|
+
# @!attribute timestamp_column_name
|
|
578
|
+
# Name of the column with the timestamps. Timestamps must be in UNIX sec format.
|
|
579
|
+
# If not provided, the upload timestamp is used.
|
|
580
|
+
#
|
|
581
|
+
# @return [String, nil]
|
|
582
|
+
optional :timestamp_column_name, String, api_name: :timestampColumnName, nil?: true
|
|
583
|
+
|
|
584
|
+
# @!method initialize(ground_truth_column_name: nil, human_feedback_column_name: nil, latency_column_name: nil, timestamp_column_name: nil)
|
|
585
|
+
# Some parameter documentations has been truncated, see
|
|
586
|
+
# {Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember4::Config}
|
|
587
|
+
# for more details.
|
|
588
|
+
#
|
|
589
|
+
# @param ground_truth_column_name [String, nil] Name of the column with the ground truths.
|
|
590
|
+
#
|
|
591
|
+
# @param human_feedback_column_name [String, nil] Name of the column with human feedback.
|
|
592
|
+
#
|
|
593
|
+
# @param latency_column_name [String, nil] Name of the column with the latencies.
|
|
594
|
+
#
|
|
595
|
+
# @param timestamp_column_name [String, nil] Name of the column with the timestamps. Timestamps must be in UNIX sec format. I
|
|
596
|
+
end
|
|
597
|
+
end
|
|
598
|
+
|
|
599
|
+
class UnionMember5 < Openlayer::Internal::Type::BaseModel
|
|
600
|
+
# @!attribute backend_type
|
|
601
|
+
#
|
|
602
|
+
# @return [Symbol, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember5::BackendType]
|
|
603
|
+
required :backend_type,
|
|
604
|
+
enum: -> { Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember5::BackendType },
|
|
605
|
+
api_name: :backendType
|
|
606
|
+
|
|
607
|
+
# @!attribute database
|
|
608
|
+
#
|
|
609
|
+
# @return [String]
|
|
610
|
+
required :database, String
|
|
611
|
+
|
|
612
|
+
# @!attribute postgres_connection_id
|
|
613
|
+
#
|
|
614
|
+
# @return [String, nil]
|
|
615
|
+
required :postgres_connection_id, String, api_name: :postgresConnectionId, nil?: true
|
|
616
|
+
|
|
617
|
+
# @!attribute schema
|
|
618
|
+
#
|
|
619
|
+
# @return [String]
|
|
620
|
+
required :schema, String
|
|
621
|
+
|
|
622
|
+
# @!attribute table
|
|
623
|
+
#
|
|
624
|
+
# @return [String, nil]
|
|
625
|
+
required :table, String, nil?: true
|
|
626
|
+
|
|
627
|
+
# @!method initialize(backend_type:, database:, postgres_connection_id:, schema:, table:)
|
|
628
|
+
# @param backend_type [Symbol, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember5::BackendType]
|
|
629
|
+
# @param database [String]
|
|
630
|
+
# @param postgres_connection_id [String, nil]
|
|
631
|
+
# @param schema [String]
|
|
632
|
+
# @param table [String, nil]
|
|
633
|
+
|
|
634
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember5#backend_type
|
|
635
|
+
module BackendType
|
|
636
|
+
extend Openlayer::Internal::Type::Enum
|
|
637
|
+
|
|
638
|
+
POSTGRES = :postgres
|
|
639
|
+
|
|
640
|
+
# @!method self.values
|
|
641
|
+
# @return [Array<Symbol>]
|
|
642
|
+
end
|
|
643
|
+
|
|
644
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember5#config
|
|
645
|
+
class Config < Openlayer::Internal::Type::BaseModel
|
|
646
|
+
# @!attribute ground_truth_column_name
|
|
647
|
+
# Name of the column with the ground truths.
|
|
648
|
+
#
|
|
649
|
+
# @return [String, nil]
|
|
650
|
+
optional :ground_truth_column_name, String, api_name: :groundTruthColumnName, nil?: true
|
|
651
|
+
|
|
652
|
+
# @!attribute human_feedback_column_name
|
|
653
|
+
# Name of the column with human feedback.
|
|
654
|
+
#
|
|
655
|
+
# @return [String, nil]
|
|
656
|
+
optional :human_feedback_column_name, String, api_name: :humanFeedbackColumnName, nil?: true
|
|
657
|
+
|
|
658
|
+
# @!attribute latency_column_name
|
|
659
|
+
# Name of the column with the latencies.
|
|
660
|
+
#
|
|
661
|
+
# @return [String, nil]
|
|
662
|
+
optional :latency_column_name, String, api_name: :latencyColumnName, nil?: true
|
|
663
|
+
|
|
664
|
+
# @!attribute timestamp_column_name
|
|
665
|
+
# Name of the column with the timestamps. Timestamps must be in UNIX sec format.
|
|
666
|
+
# If not provided, the upload timestamp is used.
|
|
667
|
+
#
|
|
668
|
+
# @return [String, nil]
|
|
669
|
+
optional :timestamp_column_name, String, api_name: :timestampColumnName, nil?: true
|
|
670
|
+
|
|
671
|
+
# @!method initialize(ground_truth_column_name: nil, human_feedback_column_name: nil, latency_column_name: nil, timestamp_column_name: nil)
|
|
672
|
+
# Some parameter documentations has been truncated, see
|
|
673
|
+
# {Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember5::Config}
|
|
674
|
+
# for more details.
|
|
675
|
+
#
|
|
676
|
+
# @param ground_truth_column_name [String, nil] Name of the column with the ground truths.
|
|
677
|
+
#
|
|
678
|
+
# @param human_feedback_column_name [String, nil] Name of the column with human feedback.
|
|
679
|
+
#
|
|
680
|
+
# @param latency_column_name [String, nil] Name of the column with the latencies.
|
|
681
|
+
#
|
|
682
|
+
# @param timestamp_column_name [String, nil] Name of the column with the timestamps. Timestamps must be in UNIX sec format. I
|
|
683
|
+
end
|
|
684
|
+
end
|
|
685
|
+
|
|
686
|
+
# @!method self.variants
|
|
687
|
+
# @return [Array(Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember0, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::BackendType, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember2, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember3, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember4, Openlayer::Models::Projects::InferencePipelineCreateResponse::DataBackend::UnionMember5)]
|
|
688
|
+
end
|
|
689
|
+
|
|
184
690
|
# @see Openlayer::Models::Projects::InferencePipelineCreateResponse#project
|
|
185
691
|
class Project < Openlayer::Internal::Type::BaseModel
|
|
186
692
|
# @!attribute name
|