fix agent putout the output of workflow-tool twice (#26835) (#27087)

This commit is contained in:
red_sun
2025-11-06 09:41:05 +08:00
committed by GitHub
parent f627348b11
commit 61a0fcc2ea
4 changed files with 8 additions and 3 deletions

View File

@@ -245,6 +245,9 @@ class ToolEngine:
+ "you do not need to create it, just tell the user to check it now."
)
elif response.type == ToolInvokeMessage.MessageType.JSON:
json_message = cast(ToolInvokeMessage.JsonMessage, response.message)
if json_message.suppress_output:
continue
json_parts.append(
json.dumps(
safe_json_value(cast(ToolInvokeMessage.JsonMessage, response.message).json_object),