From c00654ae584a9c2a46b5310d37626f4d5fd62cab Mon Sep 17 00:00:00 2001 From: sabaimran Date: Mon, 7 Oct 2024 18:11:24 -0700 Subject: [PATCH] Update default agent settings --- src/khoj/database/adapters/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/khoj/database/adapters/__init__.py b/src/khoj/database/adapters/__init__.py index cf870d4b..a6afb15c 100644 --- a/src/khoj/database/adapters/__init__.py +++ b/src/khoj/database/adapters/__init__.py @@ -641,6 +641,10 @@ class AgentAdapters: agent.chat_model = default_conversation_config agent.slug = AgentAdapters.DEFAULT_AGENT_SLUG agent.name = AgentAdapters.DEFAULT_AGENT_NAME + agent.privacy_level = Agent.PrivacyLevel.PUBLIC + agent.managed_by_admin = True + agent.input_tools = [] + agent.output_modes = [] agent.save() else: # The default agent is public and managed by the admin. It's handled a little differently than other agents. @@ -650,7 +654,6 @@ class AgentAdapters: managed_by_admin=True, chat_model=default_conversation_config, personality=default_personality, - tools=["*"], slug=AgentAdapters.DEFAULT_AGENT_SLUG, ) Conversation.objects.filter(agent=None).update(agent=agent)