MCPcopy Create free account
hub / github.com/Enfoirer/Text2GraphRAG / load_config

Function load_config

agent/batch_manager.py:14–22  ·  view source on GitHub ↗

加载配置文件

()

Source from the content-addressed store, hash-verified

12from recipe_ai_agent import LLMRecipeAgent, RecipeKnowledgeGraphBuilder
13
14def 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
24def show_progress_status(output_dir: str):
25 """显示处理进度状态"""

Callers 2

merge_batchesFunction · 0.70
continue_processingFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected