Fallback to use general command if no tool selected by agent

This commit is contained in:
Debanjum Singh Solanky 2024-10-08 19:48:02 -07:00
parent b80c4bcfdd
commit 8de67c5d4d

View file

@ -351,7 +351,7 @@ async def aget_relevant_information_sources(
if len(agent_tools) == 0:
final_response = [ConversationCommand.Default]
else:
final_response = agent_tools
final_response = [ConversationCommand.General]
return final_response
except Exception as e:
logger.error(f"Invalid response for determining relevant tools: {response}")