"""NIE lesson utility: prepare a prompt and checklist, without calling an API. Run: python FILE.py [your task description] No files are changed, no credentials are read, no Antigravity SDK is required. """ import json import sys LESSON = {'topic': 'Prompt, xử lí lỗi và rubric dự án', 'scenario': 'Dự án được 32/40 chức năng, 20/25 kiểm tra, 12/15 mã, 8/10 dữ liệu/quyền, 8/10 bàn giao. Tổng điểm?', 'steps': ['Viết prompt từ một lỗi thật trong dự án mẫu.', 'Yêu cầu kiểm tra có thể bác bỏ giả thuyết, tránh sửa ngẫu nhiên.', 'Đánh giá bằng rubric và bằng chứng, ghi phần chưa đạt.'], 'expected_approach': ['Cộng 32+20+12+8+8=80.', 'Đây là 80/100 theo rubric học tập đã cho.', 'Không nói Moodle đã ghi 80 điểm nếu chưa có hoạt động chấm điểm tương ứng và kết quả được lưu.'], 'source_lesson': 'https://lms.nie.vn/mod/page/view.php?id=7957'} def make_task(request): if not isinstance(request, str) or not request.strip(): raise ValueError('Request must contain text') return {'request': request.strip(), 'lesson': LESSON, 'scope': 'Use a separate practice folder and fixture data', 'evidence': ['Describe changes', 'Record checks actually run', 'State unverified limitations'], 'note': 'This prepares text; it does not run an agent or grant tool permissions.'} if __name__ == '__main__': request = ' '.join(sys.argv[1:]) if len(sys.argv) > 1 else LESSON['scenario'] print(json.dumps(make_task(request), ensure_ascii=False, indent=2))