Skip to content

Commit

Permalink
Changed the variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Gagan Singh committed Nov 19, 2024
1 parent b41e90a commit e0d306c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/agents/web_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit e0d306c

Please sign in to comment.