feat: handle system var

This commit is contained in:
Joel
2024-03-13 16:38:13 +08:00
parent cbe7de58ab
commit 2edef89a8d
3 changed files with 40 additions and 19 deletions

View File

@ -39,6 +39,17 @@ const formatItem = (item: any, isChatMode: boolean): NodeOutPutVar => {
type: inputVarTypeToVarType(v.type),
}
})
if (isChatMode) {
res.vars.push({
variable: 'sys.query',
type: VarType.string,
})
res.vars.push({
variable: 'sys.files',
type: VarType.arrayFile,
})
}
break
}