@@ -6,6 +6,17 @@ import * as Core from '../../core';
6
6
import * as InferencePipelinesAPI from './inference-pipelines' ;
7
7
8
8
export class InferencePipelines extends APIResource {
9
+ /**
10
+ * Create an inference pipeline under a project.
11
+ */
12
+ create (
13
+ id : string ,
14
+ body : InferencePipelineCreateParams ,
15
+ options ?: Core . RequestOptions ,
16
+ ) : Core . APIPromise < InferencePipelineCreateResponse > {
17
+ return this . _client . post ( `/projects/${ id } /inference-pipelines` , { body, ...options } ) ;
18
+ }
19
+
9
20
/**
10
21
* List the inference pipelines in a project.
11
22
*/
@@ -27,6 +38,91 @@ export class InferencePipelines extends APIResource {
27
38
}
28
39
}
29
40
41
+ export interface InferencePipelineCreateResponse {
42
+ /**
43
+ * The inference pipeline id.
44
+ */
45
+ id : string ;
46
+
47
+ /**
48
+ * The creation date.
49
+ */
50
+ dateCreated : string ;
51
+
52
+ /**
53
+ * The last test evaluation date.
54
+ */
55
+ dateLastEvaluated : string | null ;
56
+
57
+ /**
58
+ * The last data sample received date.
59
+ */
60
+ dateLastSampleReceived : string | null ;
61
+
62
+ /**
63
+ * The next test evaluation date.
64
+ */
65
+ dateOfNextEvaluation : string | null ;
66
+
67
+ /**
68
+ * The last updated date.
69
+ */
70
+ dateUpdated : string ;
71
+
72
+ /**
73
+ * The inference pipeline description.
74
+ */
75
+ description : string | null ;
76
+
77
+ /**
78
+ * The number of tests failing.
79
+ */
80
+ failingGoalCount : number ;
81
+
82
+ links : InferencePipelineCreateResponse . Links ;
83
+
84
+ /**
85
+ * The inference pipeline name.
86
+ */
87
+ name : string ;
88
+
89
+ /**
90
+ * The number of tests passing.
91
+ */
92
+ passingGoalCount : number ;
93
+
94
+ /**
95
+ * The project id.
96
+ */
97
+ projectId : string ;
98
+
99
+ /**
100
+ * The status of test evaluation for the inference pipeline.
101
+ */
102
+ status : 'queued' | 'running' | 'paused' | 'failed' | 'completed' | 'unknown' ;
103
+
104
+ /**
105
+ * The status message of test evaluation for the inference pipeline.
106
+ */
107
+ statusMessage : string | null ;
108
+
109
+ /**
110
+ * The total number of tests.
111
+ */
112
+ totalGoalCount : number ;
113
+
114
+ /**
115
+ * The storage type.
116
+ */
117
+ storageType ?: 'local' | 's3' | 'gcs' | 'azure' ;
118
+ }
119
+
120
+ export namespace InferencePipelineCreateResponse {
121
+ export interface Links {
122
+ app : string ;
123
+ }
124
+ }
125
+
30
126
export interface InferencePipelineListResponse {
31
127
_meta : InferencePipelineListResponse . _Meta ;
32
128
@@ -142,6 +238,28 @@ export namespace InferencePipelineListResponse {
142
238
}
143
239
}
144
240
241
+ export interface InferencePipelineCreateParams {
242
+ /**
243
+ * The inference pipeline description.
244
+ */
245
+ description : string | null ;
246
+
247
+ /**
248
+ * The inference pipeline name.
249
+ */
250
+ name : string ;
251
+
252
+ /**
253
+ * The reference dataset URI.
254
+ */
255
+ referenceDatasetUri ?: string | null ;
256
+
257
+ /**
258
+ * The storage type.
259
+ */
260
+ storageType ?: 'local' | 's3' | 'gcs' | 'azure' ;
261
+ }
262
+
145
263
export interface InferencePipelineListParams {
146
264
/**
147
265
* Filter list of items by name.
@@ -160,6 +278,8 @@ export interface InferencePipelineListParams {
160
278
}
161
279
162
280
export namespace InferencePipelines {
281
+ export import InferencePipelineCreateResponse = InferencePipelinesAPI . InferencePipelineCreateResponse ;
163
282
export import InferencePipelineListResponse = InferencePipelinesAPI . InferencePipelineListResponse ;
283
+ export import InferencePipelineCreateParams = InferencePipelinesAPI . InferencePipelineCreateParams ;
164
284
export import InferencePipelineListParams = InferencePipelinesAPI . InferencePipelineListParams ;
165
285
}
0 commit comments