MCPcopy Create free account
hub / github.com/BUPT-GAMMA/MASFactory / get_config

Function get_config

applications/chatdev/workflow/utils.py:10–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8from masfactory import OpenAIModel
9
10def get_config():
11 root = os.path.dirname(os.path.dirname(__file__))
12 sys.path.append(root)
13 config_dir = os.path.join(root, "assets", "config")
14 config_files = [
15 "ChatChainConfig.json",
16 "PhaseConfig.json",
17 "RoleConfig.json"
18 ]
19 config_paths = []
20 for config_file in config_files:
21 company_config_path = os.path.join(config_dir, config_file)
22 assert os.path.exists(company_config_path), f"{company_config_path} does not exist"
23 config_paths.append(company_config_path)
24 return tuple(config_paths)
25
26config_path, config_phase_path, config_role_path = get_config()
27

Callers 3

main.pyFile · 0.90
handlers.pyFile · 0.90
utils.pyFile · 0.70

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected