Display AI-generated guiding questions (NEW: matching UI version)
(self, questions_json: str)
| 841 | return user_input |
| 842 | |
| 843 | def display_guiding_questions(self, questions_json: str): |
| 844 | """Display AI-generated guiding questions (NEW: matching UI version)""" |
| 845 | import json |
| 846 | |
| 847 | try: |
| 848 | questions = json.loads(questions_json) |
| 849 | |
| 850 | self.print_separator("═", 79, Colors.GREEN) |
| 851 | print( |
| 852 | f"\n{Colors.BOLD}{Colors.GREEN}🤖 AI-Generated Guiding Questions{Colors.ENDC}" |
| 853 | ) |
| 854 | print( |
| 855 | f"{Colors.CYAN}Please answer these questions to help refine your requirements:{Colors.ENDC}\n" |
| 856 | ) |
| 857 | self.print_separator("─", 79, Colors.GREEN) |
| 858 | |
| 859 | for i, q in enumerate(questions, 1): |
| 860 | print( |
| 861 | f"\n{Colors.BOLD}{Colors.YELLOW}Question {i}:{Colors.ENDC} {Colors.CYAN}{q}{Colors.ENDC}" |
| 862 | ) |
| 863 | |
| 864 | self.print_separator("═", 79, Colors.GREEN) |
| 865 | |
| 866 | except json.JSONDecodeError: |
| 867 | self.print_status("Failed to parse questions", "error") |
| 868 | print(questions_json) |
| 869 | |
| 870 | def get_question_answers(self, questions_json: str) -> dict: |
| 871 | """Get user answers to guiding questions (NEW: matching UI version)""" |
no test coverage detected