mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Fallback to use general command if no tool selected by agent
This commit is contained in:
parent
b80c4bcfdd
commit
8de67c5d4d
1 changed files with 1 additions and 1 deletions
|
@ -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}")
|
||||
|
|
Loading…
Reference in a new issue