+ refinedPrompt = `Explain a programming/computer science concept that has not been previously provided. Previously provided concepts: ${joinedPreviousTopics}. Return only a valid JSON object with the following structure: { 'concept': '', 'definition': '', 'realWorldAnalogy': '', 'examples': [{ 'language': '', 'code': '' }], 'quiz': {'question': '', 'answers': [{'id': '', 'content': ''}], rightAnswer: '' } }, the entire explanation must be between 4 and 5 minutes read, and you have to provide examples in following languages: JavaScript, Python, Java, C#, C++, TypeScript, PHP.Do not include any additional text before or after the JSON. The concept should be unique and not in the previously provided list.`;
0 commit comments