Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.04 KB

File metadata and controls

40 lines (30 loc) · 1.04 KB

WorkflowResponse

Response from workflow execution.

Properties

Name Type
success boolean
promptId string
number number
error string
nodeErrors { [key: string]: any; }

Example

import type { WorkflowResponse } from '@saiden/tensors'

// TODO: Update the object below with actual values
const example = {
  success: null,
  promptId: null,
  number: null,
  error: null,
  nodeErrors: null,
} satisfies WorkflowResponse

console.log(example)

// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)

// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as WorkflowResponse
console.log(exampleParsed)

[Back to top] [Back to API list] [Back to Model list] [Back to README]