| 26 | config_path, config_phase_path, config_role_path = get_config() |
| 27 | |
| 28 | def get_attributes(args:argparse.Namespace): |
| 29 | env_keys = { |
| 30 | "config": "Full configuration data loaded from the config file", |
| 31 | "config_phase": "Phase configuration", |
| 32 | "config_role": "Role configuration", |
| 33 | "task": "the user input prompt for software", |
| 34 | "project_name": "the user input name for software", |
| 35 | "org_name": "the organization name of the human user", |
| 36 | "model_name": "the model name for chat", |
| 37 | "code_path": "The code path for any related project or repository", |
| 38 | "start_time": "Start time of the session", |
| 39 | "directory": "The project directory path", |
| 40 | "log_filepath": "Path to the log file", |
| 41 | "chatdev_prompt": "background prompt of chatdev", |
| 42 | "seminar_conclusion": "conclusion of seminar", |
| 43 | "chat_record": "the chat record", |
| 44 | "current_iteration": "the current iteration", |
| 45 | "git_management": "Flag indicating if git management is enabled", |
| 46 | "modality": "The product modality determined from demand analysis", |
| 47 | "description": "The task description", |
| 48 | "ideas": "Creative ideas for the software", |
| 49 | "language": "The programming language chosen for development", |
| 50 | "gui": "GUI framework requirements", |
| 51 | "code_manager": "The Object of Codes class", |
| 52 | "codes": "The generated code snippets", |
| 53 | "codes_alias": "the alias content for generated codes", |
| 54 | "unimplemented_file": "the list of unimplemented files", |
| 55 | "pyfiles": "the list of python files in the project", |
| 56 | "num_tried": "the number of attempts for each file", |
| 57 | "cycle_index": "the current cycle index", |
| 58 | "images": "Incorporated image assets", |
| 59 | "review_comments": "Code review comments and suggestions. If no comment, the value should be \"Finished\".", |
| 60 | "modification_conclusion": "The conclusion of the review modification. e.g. Finished! or Still need to improve. ", |
| 61 | "incorporated_images": "the list of incorporated images", |
| 62 | "proposed_images": "the list of proposed images", |
| 63 | "test_reports": "Test execution reports", |
| 64 | "exist_bugs_flag": "Flag indicating if bugs exist", |
| 65 | "error_summary": "", |
| 66 | "modification_conclusion": "The conclusion of the review modification. e.g. Finished! or Still need to improve. ", |
| 67 | "requirement_manager": "The Object of Documents class", |
| 68 | "requirements": "The project dependency requirements", |
| 69 | "manual_manager": "The Object of Documents class", |
| 70 | "manual": "The user manual documentation", |
| 71 | "discussion_finished": "True or False. True if the your discussion has reached a concreted conclusion, False otherwise. And if this flag is False.", |
| 72 | } |
| 73 | start_time = now() |
| 74 | root = os.path.dirname(os.path.dirname(__file__)) |
| 75 | directory = os.path.join(root, "assets/output/WareHouse") |
| 76 | |
| 77 | with open(config_path, 'r', encoding="utf8") as file: |
| 78 | config = json.load(file) |
| 79 | with open(config_phase_path, 'r', encoding="utf8") as file: |
| 80 | config_phase = json.load(file) |
| 81 | with open(config_role_path, 'r', encoding="utf8") as file: |
| 82 | config_role = json.load(file) |
| 83 | |
| 84 | environments = { |
| 85 | "config": config, |