Basic definition of workflow is structured into 4 parts.
{
"tasks": [
{}
],
"default_inputs": {},
"flow_name": "string",
"run_name": "string"
}
Tasks is the nodal points of the workflow which can consist of either a lyzr agent call, api or a custom function call.
General structure of the task is as follows.
name - is unique name that can be given to the node
tag - is informal name given to the node
function - is the name of the custom function or the prebuilt function in the LAO
params - are the parameters supplied to the node or the function.
params can either take
{
"name": "",
"tag": "",
"function": "",
"params": {
"<variable>": {"input": "<variable>"},
}
}