Feat: Add thought info to every component. (#9134)

### What problem does this PR solve?

#9082 #6365

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Kevin Hu
2025-07-31 15:13:45 +08:00
committed by GitHub
parent 0d7a83f05f
commit 3f6177b5e5
32 changed files with 123 additions and 102 deletions

View File

@ -53,6 +53,8 @@ class Iteration(ComponentBase, ABC):
if not isinstance(arr, list):
self.set_output("_ERROR", self._param.items_ref + " must be an array, but its type is "+str(type(arr)))
def thoughts(self) -> str:
return "Need to process {} items.".format(len(self._canvas.get_variable_value(self._param.items_ref)))