Feat: enhance webhook response to include status and success fields and simplify ReAct agent (#12091)

### What problem does this PR solve?

change:
enhance webhook response to include status and success fields and
simplify ReAct agent

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
buua436
2025-12-23 09:36:08 +08:00
committed by GitHub
parent bd76b8ff1a
commit 1444de981c
3 changed files with 189 additions and 15 deletions

View File

@ -540,6 +540,8 @@ class Canvas(Graph):
cite = re.search(r"\[ID:[ 0-9]+\]", cpn_obj.output("content"))
message_end = {}
if cpn_obj.get_param("status"):
message_end["status"] = cpn_obj.get_param("status")
if isinstance(cpn_obj.output("attachment"), dict):
message_end["attachment"] = cpn_obj.output("attachment")
if cite: