112 lines
4.2 KiB
JSON
112 lines
4.2 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "HybridWorkflow Schema",
|
|
"type": "object",
|
|
"properties": {
|
|
"request": {
|
|
"type": "object",
|
|
"description": "Inputs for the workflow"
|
|
},
|
|
"workflow_output": {
|
|
"type": "object",
|
|
"description": "Output of the workflow",
|
|
"properties": {
|
|
"workflow_id": {
|
|
"type": "string",
|
|
"description": "ID of the workflow instance"
|
|
},
|
|
"run_id": {
|
|
"type": "string",
|
|
"description": "ID of the workflow run"
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"description": "Name of the workflow"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"description": "Current status of the workflow",
|
|
"enum": [
|
|
"in_progress",
|
|
"completed",
|
|
"failed"
|
|
]
|
|
},
|
|
"blocks": {
|
|
"type": "array",
|
|
"description": "Details of executed blocks",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"activity_id": {
|
|
"type": "string",
|
|
"description": "ID of the activity"
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"description": "Name of the activity"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"description": "Status of the activity",
|
|
"enum": [
|
|
"completed",
|
|
"skipped",
|
|
"failed"
|
|
]
|
|
},
|
|
"input": {
|
|
"type": "object",
|
|
"description": "Input parameters for the activity"
|
|
},
|
|
"result": {
|
|
"type": [
|
|
"object",
|
|
"null"
|
|
],
|
|
"description": "Result of the activity"
|
|
},
|
|
"error": {
|
|
"type": [
|
|
"object",
|
|
"null"
|
|
],
|
|
"description": "Error details if activity failed",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string",
|
|
"description": "Error code"
|
|
},
|
|
"description": {
|
|
"type": "string",
|
|
"description": "Error description"
|
|
},
|
|
"details": {
|
|
"type": "object",
|
|
"description": "Additional error details"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
# "root_input": {
|
|
# "type": "object",
|
|
# "description": "Original root inputs passed to the workflow"
|
|
# }
|
|
},
|
|
"required": [
|
|
"workflow_id",
|
|
"run_id",
|
|
"name",
|
|
"status",
|
|
"blocks",
|
|
"root_input"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"root_inputs"
|
|
]
|
|
}
|