Update gif for readme and add input param to every components (#3145)

### What problem does this PR solve?


### Type of change

- [x] New Feature (non-breaking change which adds functionality)
- [x] Documentation Update
This commit is contained in:
Kevin Hu
2024-11-01 13:31:34 +08:00
committed by GitHub
parent 039cde7893
commit 33e5e5db5b
8 changed files with 47 additions and 10 deletions

View File

@ -51,6 +51,9 @@ class Invoke(ComponentBase, ABC):
for para in self._param.variables:
if para.get("component_id"):
cpn = self._canvas.get_component(para["component_id"])["obj"]
if cpn.component_name.lower() == "answer":
args[para["key"]] = self._canvas.get_history(1)[0]["content"]
continue
_, out = cpn.output(allow_partial=False)
args[para["key"]] = "\n".join(out["content"])
else: