From e0d306ca5be1163ac6ed5d22087028f9078174ac Mon Sep 17 00:00:00 2001 From: Gagan Singh Date: Tue, 19 Nov 2024 14:52:14 +0000 Subject: [PATCH] Changed the variable name --- backend/src/agents/web_agent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/agents/web_agent.py b/backend/src/agents/web_agent.py index 6f7818b0..8a520792 100644 --- a/backend/src/agents/web_agent.py +++ b/backend/src/agents/web_agent.py @@ -38,8 +38,8 @@ async def web_general_search_core(search_query, llm, model) -> str: } return json.dumps(response, indent=4) logger.info(f'Answer found successfully {answer_result}') - perform_web_search = json.loads(answer_result["response"]).get("should_perform_web_search", "") - if not perform_web_search: + should_perform_web_search = json.loads(answer_result["response"]).get("should_perform_web_search", "") + if not should_perform_web_search: final_answer = json.loads(answer_result["response"]).get("answer", "") if not final_answer: return "No answer found."