You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/intro.md
+10-10
Original file line number
Diff line number
Diff line change
@@ -236,31 +236,31 @@ Returns a list of all the versions of the model with the specified id. No other
236
236
Returns version details. It includes timeout, requirement, containerImage, loadStatus, runStatus, inputs, outputs, statistics, technicalDetails, sampleInput, sampleOutput, performanceSummary, processing, and others.
237
237
238
238
.getModelVersionInputSample
239
-
Gets a job request sample for this model in JSON format (if it exists).
239
+
Get a job request sample for this model in JSON format (if it exists).
240
240
241
241
.getModelVersionOutputSample
242
-
Gets the output sample associated with the model and version provided (if it exists)
242
+
Get the output sample associated with the model and version provided (if it exists)
243
243
244
244
.getJob
245
-
Return the Job details, including the status, total, completed, and failed number of items.
245
+
Return the job details, including the status, total, completed, and failed number of items.
246
246
247
247
.cancelJob
248
-
Send a request to the server in order to cancel a Job
248
+
Send a request to the server in order to cancel a job.
249
249
250
250
.getResult
251
-
Return the current results of a Job execution, including completed, failed, total number of items processed
251
+
Get the current results of a job execution, including completed, failed, total number of items processed.
252
252
253
253
.getOutputContents
254
254
Get the contents of a specific job output. Consult the model's api for the output name and file type
255
255
256
256
.blockUntilJobComplete
257
-
Blocks subsequent code execution until the job changes its status to COMPLETED, TIMEDOUT or CANCELED.
257
+
Block subsequent code execution until the job changes its status to COMPLETED, TIMEDOUT or CANCELED.
258
258
259
259
.getJobHistory
260
-
Gets a list of jobs meeting the search parameter criteria. Returns the latest 100 jobs if no params are sent.
260
+
Get a paginated list of jobs meeting the search parameter criteria. Returns the latest 100 jobs if no params are sent.
261
261
262
262
.getProcessingEngineStatus
263
-
Returns a list of all active processing engines and their status
263
+
Return a list of all active processing engines and their status
264
264
265
265
.submitJobText
266
266
Submit a job with plain text inputs
@@ -278,7 +278,7 @@ Submit a job based on a sql query on a database accessed through JDBC.
278
278
Submit a job with the input(s) specified as a Blob (browser) or file path (Node.js)
279
279
280
280
.pathToDataUrl
281
-
Converts a file path (string) to a data url for embedded job types (Node.js only)
281
+
Convert a file path (string) to a data url for embedded job types (Node.js only)
282
282
283
283
.fileToDataUrl
284
-
Converts a JS File Object to a data url for embedded job types (browser only)
284
+
Convert a JS File Object to a data url for embedded job types (browser only)
Block the script execution until the job status is "COMPLETED", "TIMEDOUT" or "CANCELED". By default it polls the job details every two seconds, but this interval can be changed using the options parameter.
- The page number of the paginated results. Defaults to 1.
36
+
-`perPage?: number`
37
+
- The number of records returned per page. Defaults to 100.
38
+
-`direction?: "ASC" | "DESC"`
39
+
- Orders the records in ascending (ASC) or descending (DESC) order. Defaults to "ASC".
40
+
-`sortBy?: string`
41
+
- Results can be sorted by "identifier", "submittedBy", "submittedJobs", "status", "createdAt", "updatedAt", "submittedAt", "total", "completed", "fail" and "model".
42
+
43
+
## Returns
44
+
45
+
A promise that resolves to an array of JobHistoryResponseItem
- The job identifier, e.g. "14856eb1-0ad8-49e7-9da3-887acb80fea5"
18
+
-`inputKey: string`
19
+
- The user-defined key used to identify the job input, e.g. "my-input"
20
+
-`outputName: string`
21
+
- The model-defined name of the output, e.g. "results.wav". Consult the API section of the model details page to get the model output name.
22
+
-`responseType: "json" | "blob" | "arraybuffer"`
23
+
- How the response should be formatted. Use "json" for text outputs. Use "blob" for binary files in a browser environment. Use "arraybuffer" for binary files in a Node.js environment. Defaults to "json".
24
+
25
+
## Returns
26
+
27
+
A promise that resolves to an unknown type (The actual result depends on the model's output and the response type specified).
0 commit comments