Fix:update agent variable name rule (#11124)

### What problem does this PR solve?

change:

1. update agent variable name rule.
2. reset() in Canvas doesn't reset the env var.
3. correct log input binding in message component
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
buua436
2025-11-11 11:18:30 +08:00
committed by GitHub
parent 7db6cb8ca3
commit 83ff8e8009
5 changed files with 20 additions and 18 deletions

View File

@ -99,7 +99,7 @@ class Message(ComponentBase):
continue
v = self._canvas.get_variable_value(exp)
if not v:
if v is None:
v = ""
if isinstance(v, partial):
cnt = ""
@ -107,7 +107,7 @@ class Message(ComponentBase):
all_content += t
cnt += t
yield t
self.set_input_value(exp, cnt)
continue
elif not isinstance(v, str):
try:
@ -115,6 +115,7 @@ class Message(ComponentBase):
except Exception:
v = str(v)
yield v
self.set_input_value(exp, v)
all_content += v
cache[exp] = v