mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 05:39:12 +00:00
Fallback to use general command if no tool selected by agent
This commit is contained in:
@@ -351,7 +351,7 @@ async def aget_relevant_information_sources(
|
|||||||
if len(agent_tools) == 0:
|
if len(agent_tools) == 0:
|
||||||
final_response = [ConversationCommand.Default]
|
final_response = [ConversationCommand.Default]
|
||||||
else:
|
else:
|
||||||
final_response = agent_tools
|
final_response = [ConversationCommand.General]
|
||||||
return final_response
|
return final_response
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"Invalid response for determining relevant tools: {response}")
|
logger.error(f"Invalid response for determining relevant tools: {response}")
|
||||||
|
|||||||
Reference in New Issue
Block a user