From 9a90e5f3a7f7f4e8bb3c56e64563915f7b813b8a Mon Sep 17 00:00:00 2001 From: alisalim17 Date: Thu, 18 Apr 2024 17:02:14 +0400 Subject: [PATCH] fix: revert breaking change --- libs/superagent/app/api/agents.py | 2 -- libs/superagent/app/workflows/base.py | 2 -- 2 files changed, 4 deletions(-) diff --git a/libs/superagent/app/api/agents.py b/libs/superagent/app/api/agents.py index e4fa20476..3fd9c8b3e 100644 --- a/libs/superagent/app/api/agents.py +++ b/libs/superagent/app/api/agents.py @@ -620,8 +620,6 @@ async def send_message( logger.error(f"Error parsing output: {e}") output["output"] = {} - output = json.dumps(output) - return {"success": True, "data": output} diff --git a/libs/superagent/app/workflows/base.py b/libs/superagent/app/workflows/base.py index a85d5931b..ac1d9e3f7 100644 --- a/libs/superagent/app/workflows/base.py +++ b/libs/superagent/app/workflows/base.py @@ -1,4 +1,3 @@ -import json import logging from typing import Any, List @@ -71,7 +70,6 @@ async def arun(self, input: Any): except Exception as e: logger.error(f"Error parsing output: {e}") agent_response["output"] = {} - agent_response["output"] = json.dumps(agent_response["output"]) previous_output = agent_response.get("output") steps_output.append(agent_response)