Procházet zdrojové kódy

Update agent_service: debug options

StrayWarrior před 2 týdny
rodič
revize
d8e38f30d9
2 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 2 3
      agent_service.py
  2. 1 0
      configs/dev.yaml

+ 2 - 3
agent_service.py

@@ -252,13 +252,12 @@ if __name__ == "__main__":
         chat_service_type=ChatServiceType.COZE_CHAT
     )
     # 只有企微场景需要主动发起
-    service.setup_initiative_conversations({'second': '5,35'})
+    # service.setup_initiative_conversations({'second': '5,35'})
 
     process_thread = threading.Thread(target=service.process_messages)
     process_thread.start()
 
-    console_input = True
-    if not console_input:
+    if not config['debug_flags'].get('console_input', False):
         process_thread.join()
         sys.exit(0)
 

+ 1 - 0
configs/dev.yaml

@@ -28,6 +28,7 @@ storage:
 debug_flags:
   disable_llm_api_call: True
   use_local_user_storage: False
+  console_input: False
 
 use_aliyun_mq: True
 mq: