feat: add array and sum node

This commit is contained in:
2024-04-10 23:50:41 +02:00
parent e2940183f1
commit 644bcd6997
26 changed files with 377 additions and 11 deletions

View File

@@ -135,7 +135,12 @@ export class MemoryRuntimeExecutor implements RuntimeExecutor {
}
// execute the node and store the result
results[node.id] = node.tmp.type.execute(...Object.values(inputs)) as number;
try {
console.log(`Executing node ${node.tmp.type.id || node.id}`, inputs);
results[node.id] = node.tmp.type.execute(...Object.values(inputs)) as number;
} catch (e) {
console.error(`Error executing node ${node.tmp.type.id || node.id}`, e);
}
}
}