feat: Add support for array[message](List[promptMessage]) variable type

in workflow
This commit is contained in:
zhsama
2026-01-26 17:34:01 +08:00
parent 5ac70633a2
commit ec5964c419
9 changed files with 36 additions and 7 deletions

View File

@ -21,6 +21,7 @@ const TYPE_DISPLAY_NAMES: Record<VarType, string> = {
[VarType.arrayNumber]: 'Array[Number]',
[VarType.arrayBoolean]: 'Array[Boolean]',
[VarType.arrayObject]: 'Array[Object]',
[VarType.arrayMessage]: 'Array[Message]',
[VarType.secret]: 'Secret',
[VarType.array]: 'Array',
'array[file]': 'Array[File]',
@ -73,6 +74,8 @@ export const normalizeParameterType = (input: string | undefined | null): VarTyp
return VarType.arrayBoolean
else if (trimmed === 'array[object]')
return VarType.arrayObject
else if (trimmed === 'array[message]')
return VarType.arrayMessage
else if (trimmed === 'array')
// Migrate legacy 'array' type to 'array[string]'
return VarType.arrayString