加载配置文件
()
| 12 | from recipe_ai_agent import LLMRecipeAgent, RecipeKnowledgeGraphBuilder |
| 13 | |
| 14 | def load_config(): |
| 15 | """加载配置文件""" |
| 16 | config_file = "config.json" |
| 17 | if os.path.exists(config_file): |
| 18 | with open(config_file, 'r', encoding='utf-8') as f: |
| 19 | return json.load(f) |
| 20 | else: |
| 21 | print("❌ 未找到config.json配置文件") |
| 22 | sys.exit(1) |
| 23 | |
| 24 | def show_progress_status(output_dir: str): |
| 25 | """显示处理进度状态""" |
no outgoing calls
no test coverage detected