Kevin Hu
commited on
Commit
·
eba4697
1
Parent(s):
47731cb
Fix component input error. (#4231)
Browse files### What problem does this PR solve?
#4108
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
- agent/component/base.py +2 -1
agent/component/base.py
CHANGED
@@ -480,7 +480,8 @@ class ComponentBase(ABC):
|
|
480 |
if q["component_id"].lower().find("answer") == 0:
|
481 |
for r, c in self._canvas.history[::-1]:
|
482 |
if r == "user":
|
483 |
-
self._param.inputs.append(
|
|
|
484 |
break
|
485 |
continue
|
486 |
|
|
|
480 |
if q["component_id"].lower().find("answer") == 0:
|
481 |
for r, c in self._canvas.history[::-1]:
|
482 |
if r == "user":
|
483 |
+
self._param.inputs.append({"content": c, "component_id": q["component_id"]})
|
484 |
+
outs.append(pd.DataFrame([{"content": c}]))
|
485 |
break
|
486 |
continue
|
487 |
|