feat: add tool params node & tool params add array type (#2824)

* add tool params node

* add tool params enum

* node response

* tool add array type params

* fix tool params

* fix

* fix

* fix
This commit is contained in:
heheer
2024-09-28 15:58:55 +08:00
committed by shilin66
parent 6425249a4e
commit 942e6c0b08
26 changed files with 438 additions and 28 deletions

View File

@@ -297,8 +297,8 @@ export const formatEditorVariablePickerIcon = (
}));
};
export const isReferenceValue = (value: any): boolean => {
return Array.isArray(value) && value.length === 2 && typeof value[0] === 'string';
export const isReferenceValue = (value: any, nodeIds: string[]): boolean => {
return Array.isArray(value) && value.length === 2 && nodeIds.includes(value[0]);
};
export const getElseIFLabel = (i: number) => {