{"openapi":"3.1.0","info":{"title":"LLM Assignment Processing Service","description":"API service for processing rubrics and assignments with LLM","version":"1.0.0"},"paths":{"/api/umcg/note/feedback":{"post":{"summary":"Process note feedback","description":"Queue a task to process a note feedback with LLM","operationId":"process_note_feedback_api_umcg_note_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteFeedbackRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/rubric/analysis":{"post":{"summary":"Process rubric file","description":"Queue a task to process a rubric file with LLM","operationId":"process_rubric_analysis_api_agent_rubric_analysis_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RubricAnalysisRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/rubric/analysis/v3":{"post":{"summary":"Process rubric file (v3, rubric-only)","description":"Queue a task to process a rubric file without assignment description; grading_option selects level-box count","operationId":"process_rubric_analysis_v3_api_agent_rubric_analysis_v3_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RubricAnalysisRequestV3"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/rubric/instructions/calibration/v3":{"post":{"summary":"Calibrate rubric feedback instructions (v3)","description":"Transform teacher instructions into UI summary and internal AI profile","operationId":"process_rubric_instruction_calibration_v3_api_agent_rubric_instructions_calibration_v3_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RubricInstructionCalibrationRequestV3"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/assignment/analysis":{"post":{"summary":"Process assignment comments","description":"Queue a task to generate comments for an assignment","operationId":"process_assignment_analysis_api_agent_assignment_analysis_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignmentAnalysisRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/assignment/analysis/v3":{"post":{"summary":"Process assignment comments","description":"Queue a task to generate comments for an assignment","operationId":"process_assignment_analysis_v3_api_agent_assignment_analysis_v3_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignmentAnalysisRequestV3"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/assignment/analysis/formative":{"post":{"summary":"Process formative assignment comments","description":"Queue a task to generate formative comments for an assignment","operationId":"process_assignment_analysis_formative_api_agent_assignment_analysis_formative_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignmentAnalysisFormativeRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/own-llm/assignment/ai-chat/comments":{"post":{"summary":"AI chat","description":"Queue a task to chat with the LLM","operationId":"process_ai_comments_chat_modules_own_llm_new_endpoint_api_own_llm_assignment_ai_chat_comments_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AICommentsChatRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/own-llm/assignment/ai-chat/general-feedback":{"post":{"summary":"AI chat general feedback","description":"Queue a task to adjust or add to selected general feedback (one prompt per selected item)","operationId":"process_ai_general_feedback_chat_endpoint_api_own_llm_assignment_ai_chat_general_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGeneralFeedbackChatRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/correction-model/analysis/v3":{"post":{"summary":"Process correction model file (v3)","description":"Queue a task to parse a correction model into questions, model answers, and scoring points","operationId":"process_correction_model_analysis_v3_api_agent_correction_model_analysis_v3_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionModelAnalysisRequestV3"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/exam/analysis/v3":{"post":{"summary":"Grade student exam (v3)","description":"Queue a task to grade a student exam against teacher-edited correction-model questions","operationId":"process_exam_analysis_v3_api_agent_exam_analysis_v3_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExamAnalysisRequestV3"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/own-llm/exam/comments/modules/production":{"post":{"summary":"Process exam comments","description":"Queue a task to generate comments for an exam","operationId":"process_exam_comments_modules_own_llm_production_endpoint_api_own_llm_exam_comments_modules_production_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExamCommentsRequestProduction"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/own-llm/assignment/correction/model/modules/production":{"post":{"summary":"Process correction model file","description":"Queue a task to process a correction model file with LLM","operationId":"process_correction_model_files_modules_own_llm_production_endpoint_api_own_llm_assignment_correction_model_modules_production_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionModelFileRequestProduction"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/task/{task_id}":{"get":{"summary":"Get task status","description":"Check the status of a submitted task","operationId":"get_task_status_api_task__task_id__get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health check","description":"Check if the service is running properly","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}}}}},"components":{"schemas":{"AICommentsChatRequest":{"properties":{"a_bucket_name":{"type":"string","title":"A Bucket Name","description":"The bucket name where the assignment file is stored"},"a_folder_path":{"type":"string","title":"A Folder Path","description":"The folder path within the bucket"},"a_file_name":{"type":"string","title":"A File Name","description":"The file name of the assignment"},"r_file_content":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"R File Content","description":"The content of the rubric file"},"token":{"type":"string","title":"Token","description":"Token for communication with frontend"},"submission_uuid":{"type":"string","title":"Submission Uuid","description":"Unique identifier for the submission"},"env":{"type":"string","title":"Env","description":"The environment for the annotate file"},"comments":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Comments","description":"Full list of all comments (same as general feedback contract)"},"selected_comments":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Selected Comments","description":"Selected comments to adjust (subset of comments); empty = add new comments"},"prompt":{"type":"string","title":"Prompt","description":"Prompt for AI chat"},"feedback_id":{"type":"string","title":"Feedback Id","description":"Unique identifier for the feedback"},"language":{"type":"string","title":"Language","description":"The language the result should be in"},"tone_of_voice":{"type":"string","title":"Tone Of Voice","description":"STANDARD | SUPPORTIVE_ENCOURAGING | CONSTRUCTIVE_DIRECT | IMPROVEMENT_FOCUSED | REFLECTIVE_SOCRATIC","default":"STANDARD"}},"type":"object","required":["a_bucket_name","a_folder_path","a_file_name","r_file_content","token","submission_uuid","env","comments","selected_comments","prompt","feedback_id","language"],"title":"AICommentsChatRequest","description":"Request model for AI chat with a file. Send the full list of comments and the selected subset.\nFor adjust: selected items are replaced in place in the full list (order preserved)."},"AIGeneralFeedbackChatRequest":{"properties":{"a_bucket_name":{"type":"string","title":"A Bucket Name","description":"The bucket name where the assignment file is stored"},"a_folder_path":{"type":"string","title":"A Folder Path","description":"The folder path within the bucket"},"a_file_name":{"type":"string","title":"A File Name","description":"The file name of the assignment"},"r_file_content":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"R File Content","description":"The content of the rubric file"},"token":{"type":"string","title":"Token","description":"Token for communication with frontend"},"submission_uuid":{"type":"string","title":"Submission Uuid","description":"Unique identifier for the submission"},"env":{"type":"string","title":"Env","description":"The environment for the annotate file"},"general_feedback":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"General Feedback","description":"List of general feedback items ({title, description})"},"selected_general_feedback":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Selected General Feedback","description":"Selected general feedback items to adjust or add to"},"prompt":{"type":"string","title":"Prompt","description":"Prompt for AI chat (adjust/add to selected general feedback)"},"feedback_id":{"type":"string","title":"Feedback Id","description":"Unique identifier for the feedback"},"language":{"type":"string","title":"Language","description":"The language the result should be in"},"tone_of_voice":{"type":"string","title":"Tone Of Voice","description":"STANDARD | SUPPORTIVE_ENCOURAGING | CONSTRUCTIVE_DIRECT | IMPROVEMENT_FOCUSED | REFLECTIVE_SOCRATIC","default":"STANDARD"}},"type":"object","required":["a_bucket_name","a_folder_path","a_file_name","r_file_content","token","submission_uuid","env","general_feedback","selected_general_feedback","prompt","feedback_id","language"],"title":"AIGeneralFeedbackChatRequest","description":"Request model for AI chat to adjust or add to selected general feedback.\nEach general feedback item is {\"title\": \"...\", \"description\": \"...\"}."},"AssignmentAnalysisFormativeRequest":{"properties":{"a_bucket_name":{"type":"string","title":"A Bucket Name","description":"The bucket name where the assignment is stored"},"a_folder_path":{"type":"string","title":"A Folder Path","description":"The folder path within the bucket"},"a_file_name":{"type":"string","title":"A File Name","description":"The file name of the assignment"},"checklist_content":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Checklist Content","description":"The content of the checklist"},"r_file_content":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"R File Content","description":"The content of the rubric file"},"feedback_id":{"type":"string","title":"Feedback Id","description":"Unique identifier for the feedback"},"tone_of_voice":{"additionalProperties":true,"type":"object","title":"Tone Of Voice","description":"Teacher profile information"},"language":{"type":"string","title":"Language","description":"Language for generating comments"},"education_level":{"type":"string","title":"Education Level","description":"The education level of the students"},"token":{"type":"string","title":"Token","description":"Token for communication with frontend"},"submission_uuid":{"type":"string","title":"Submission Uuid","description":"Unique identifier for the submission"},"env":{"type":"string","title":"Env","description":"The environment for the assignment"},"feedback_options":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Feedback Options","description":"The feedback options that the teacher wants"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id","description":"Job scheduler job ID for callback"}},"type":"object","required":["a_bucket_name","a_folder_path","a_file_name","checklist_content","r_file_content","feedback_id","tone_of_voice","language","education_level","token","submission_uuid","env","feedback_options"],"title":"AssignmentAnalysisFormativeRequest","description":"Request model for processing formative assignment comments with LLM."},"AssignmentAnalysisRequest":{"properties":{"a_bucket_name":{"type":"string","title":"A Bucket Name","description":"The bucket name where the assignment is stored"},"a_folder_path":{"type":"string","title":"A Folder Path","description":"The folder path within the bucket"},"a_file_name":{"type":"string","title":"A File Name","description":"The file name of the assignment"},"checklist_content":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Checklist Content","description":"The content of the checklist"},"r_file_content":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"R File Content","description":"The content of the rubric file"},"additional_content":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Additional Content","description":"Other uploaded books or course material"},"other_material":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Other Material","description":"Other uploaded books or course material"},"feedback_id":{"type":"string","title":"Feedback Id","description":"Unique identifier for the feedback"},"tone_of_voice":{"additionalProperties":true,"type":"object","title":"Tone Of Voice","description":"Teacher profile information"},"language":{"type":"string","title":"Language","description":"Language for generating comments"},"education_level":{"type":"string","title":"Education Level","description":"The education level of the students"},"token":{"type":"string","title":"Token","description":"Token for communication with frontend"},"submission_uuid":{"type":"string","title":"Submission Uuid","description":"Unique identifier for the submission"},"env":{"type":"string","title":"Env","description":"The environment for the assignment"},"grading_option":{"type":"string","title":"Grading Option","description":"The chosen grading option"},"feedback_options":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Feedback Options","description":"The feedback options that the teacher wants"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id","description":"Job scheduler job ID for callback"}},"type":"object","required":["a_bucket_name","a_folder_path","a_file_name","checklist_content","r_file_content","additional_content","other_material","feedback_id","tone_of_voice","language","education_level","token","submission_uuid","env","grading_option","feedback_options"],"title":"AssignmentAnalysisRequest","description":"Request model for processing assignment comments with LLM."},"AssignmentAnalysisRequestV3":{"properties":{"a_bucket_name":{"type":"string","title":"A Bucket Name","description":"The bucket name where the assignment is stored"},"a_folder_path":{"type":"string","title":"A Folder Path","description":"The folder path within the bucket"},"a_file_name":{"type":"string","title":"A File Name","description":"The file name of the assignment"},"checklist_content":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Checklist Content","description":"The content of the checklist"},"r_file_content":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"R File Content","description":"The content of the rubric file"},"additional_content":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Additional Content","description":"Other uploaded books or course material"},"other_material":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Other Material","description":"Other uploaded books or course material"},"feedback_id":{"type":"string","title":"Feedback Id","description":"Unique identifier for the feedback"},"language":{"type":"string","title":"Language","description":"Language for generating comments"},"education_level":{"type":"string","title":"Education Level","description":"The education level of the students"},"token":{"type":"string","title":"Token","description":"Token for communication with frontend"},"submission_uuid":{"type":"string","title":"Submission Uuid","description":"Unique identifier for the submission"},"env":{"type":"string","title":"Env","description":"The environment for the assignment"},"platform":{"type":"string","title":"Platform","description":"Product surface: plg (api.) or ent (ent-api.)","default":"plg"},"grading_option":{"type":"string","title":"Grading Option","description":"The chosen grading option"},"feedback_options":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Feedback Options","description":"The feedback options that the teacher wants"},"teacher_instructions":{"additionalProperties":true,"type":"object","title":"Teacher Instructions","description":"Teacher instructions"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id","description":"Job scheduler job ID for callback"}},"type":"object","required":["a_bucket_name","a_folder_path","a_file_name","checklist_content","r_file_content","additional_content","other_material","feedback_id","language","education_level","token","submission_uuid","env","grading_option","feedback_options","teacher_instructions"],"title":"AssignmentAnalysisRequestV3","description":"Request model for processing assignment comments with LLM."},"CorrectionModelAnalysisRequestV3":{"properties":{"c_bucket_name":{"type":"string","title":"C Bucket Name","description":"The bucket name where the correction model file is stored"},"c_folder_path":{"type":"string","title":"C Folder Path","description":"The folder path within the bucket"},"c_file_name":{"type":"string","title":"C File Name","description":"The file name of the correction model"},"correction_id":{"type":"string","title":"Correction Id","description":"Unique identifier for the correction model"},"language":{"type":"string","title":"Language","description":"The language the correction model should be in"},"token":{"type":"string","title":"Token","description":"Token for communication with frontend"},"env":{"type":"string","title":"Env","description":"The environment for the correction model"},"platform":{"type":"string","title":"Platform","description":"Product surface: plg (api.) or ent (ent-api.)","default":"plg"},"correction_uuid":{"type":"string","title":"Correction Uuid","description":"Unique identifier for the correction model"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id","description":"Job scheduler job ID for callback"}},"type":"object","required":["c_bucket_name","c_folder_path","c_file_name","correction_id","language","token","env","correction_uuid"],"title":"CorrectionModelAnalysisRequestV3","description":"Request model for processing a correction model (v3)."},"CorrectionModelFileRequestProduction":{"properties":{"c_bucket_name":{"type":"string","title":"C Bucket Name","description":"The bucket name where the correction model file is stored"},"c_folder_path":{"type":"string","title":"C Folder Path","description":"The folder path within the bucket"},"c_file_name":{"type":"string","title":"C File Name","description":"The file name of the correction model"},"correction_id":{"type":"string","title":"Correction Id","description":"Unique identifier for the correction model"},"language":{"type":"string","title":"Language","description":"The language the rubric should be in"},"token":{"type":"string","title":"Token","description":"Token for communication with frontend"},"env":{"type":"string","title":"Env","description":"The environment for the rubric"},"correction_uuid":{"type":"string","title":"Correction Uuid","description":"Unique identifier for the correction model"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id","description":"Job scheduler job ID for callback"}},"type":"object","required":["c_bucket_name","c_folder_path","c_file_name","correction_id","language","token","env","correction_uuid"],"title":"CorrectionModelFileRequestProduction","description":"Request model for processing a rubric file with LLM."},"ExamAnalysisRequestV3":{"properties":{"e_bucket_name":{"type":"string","title":"E Bucket Name","description":"The bucket name where the exam is stored"},"e_folder_path":{"type":"string","title":"E Folder Path","description":"The folder path within the bucket"},"e_file_name":{"type":"string","title":"E File Name","description":"The file name of the exam"},"questions":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Questions","description":"Teacher-edited correction-model questions (open and table)"},"grading":{"additionalProperties":true,"type":"object","title":"Grading","description":"Exam scoring options: scoring_mode PER_CRITERION | ALL_OR_NOTHING, partial_credit bool (open criteria only), strictness STRICT | FLEXIBLE"},"exam_id":{"type":"string","title":"Exam Id","description":"Unique identifier for the exam"},"language":{"type":"string","title":"Language","description":"Language for grading output"},"token":{"type":"string","title":"Token","description":"Token for communication with frontend"},"env":{"type":"string","title":"Env","description":"The environment for the exam"},"platform":{"type":"string","title":"Platform","description":"Product surface: plg (api.) or ent (ent-api.)","default":"plg"},"exam_uuid":{"type":"string","title":"Exam Uuid","description":"Unique identifier for the exam"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id","description":"Job scheduler job ID for callback"}},"type":"object","required":["e_bucket_name","e_folder_path","e_file_name","questions","exam_id","language","token","env","exam_uuid"],"title":"ExamAnalysisRequestV3","description":"Request model for grading a student exam against a teacher-edited correction model (v3)."},"ExamCommentsRequestProduction":{"properties":{"e_bucket_name":{"type":"string","title":"E Bucket Name","description":"The bucket name where the exam is stored"},"e_folder_path":{"type":"string","title":"E Folder Path","description":"The folder path within the bucket"},"e_file_name":{"type":"string","title":"E File Name","description":"The file name of the exam"},"c_file_content":{"type":"string","title":"C File Content","description":"The content of the correction model file"},"exam_id":{"type":"string","title":"Exam Id","description":"Unique identifier for the exam"},"teacher_profile":{"type":"string","title":"Teacher Profile","description":"Teacher profile information"},"language":{"type":"string","title":"Language","description":"Language for generating comments"},"token":{"type":"string","title":"Token","description":"Token for communication with frontend"},"exam_uuid":{"type":"string","title":"Exam Uuid","description":"Unique identifier for the exam"},"env":{"type":"string","title":"Env","description":"The environment for the exam"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id","description":"Job scheduler job ID for callback"}},"type":"object","required":["e_bucket_name","e_folder_path","e_file_name","c_file_content","exam_id","teacher_profile","language","token","exam_uuid","env"],"title":"ExamCommentsRequestProduction","description":"Request model for processing exam comments with LLM."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthResponse":{"properties":{"status":{"type":"string","title":"Status","description":"Health status of the service"}},"type":"object","required":["status"],"title":"HealthResponse","description":"Response model for health check."},"NoteFeedbackRequest":{"properties":{"endpoint":{"type":"string","title":"Endpoint","description":"The endpoint of the note feedback"},"notes":{"type":"string","title":"Notes","description":"The data of the note feedback"},"token":{"type":"string","title":"Token","description":"Token for communication with frontend"}},"type":"object","required":["endpoint","notes","token"],"title":"NoteFeedbackRequest","description":"Request model for processing a note feedback with LLM."},"RubricAnalysisRequest":{"properties":{"r_bucket_name":{"type":"string","title":"R Bucket Name","description":"The bucket name where the rubric file is stored"},"r_folder_path":{"type":"string","title":"R Folder Path","description":"The folder path within the bucket"},"r_file_name":{"type":"string","title":"R File Name","description":"The file name of the rubric"},"rubric_id":{"type":"string","title":"Rubric Id","description":"Unique identifier for the rubric"},"language":{"type":"string","title":"Language","description":"The language the rubric should be in"},"token":{"type":"string","title":"Token","description":"Token for communication with frontend"},"education_level":{"type":"string","title":"Education Level","description":"The education level of the students"},"env":{"type":"string","title":"Env","description":"The environment for the rubric"},"rubric_uuid":{"type":"string","title":"Rubric Uuid","description":"Unique identifier for the rubric"},"assignment_description":{"type":"string","title":"Assignment Description","description":"The description of the assignment"},"other_material":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Other Material","description":"Other uploaded books or course material"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id","description":"Job scheduler job ID for callback"}},"type":"object","required":["r_bucket_name","r_folder_path","r_file_name","rubric_id","language","token","education_level","env","rubric_uuid","assignment_description","other_material"],"title":"RubricAnalysisRequest","description":"Request model for processing a rubric file with LLM."},"RubricAnalysisRequestV3":{"properties":{"r_bucket_name":{"type":"string","title":"R Bucket Name","description":"The bucket name where the rubric file is stored"},"r_folder_path":{"type":"string","title":"R Folder Path","description":"The folder path within the bucket"},"r_file_name":{"type":"string","title":"R File Name","description":"The file name of the rubric"},"rubric_id":{"type":"string","title":"Rubric Id","description":"Unique identifier for the rubric"},"language":{"type":"string","title":"Language","description":"The language the rubric should be in"},"token":{"type":"string","title":"Token","description":"Token for communication with frontend"},"education_level":{"type":"string","title":"Education Level","description":"The education level of the students"},"env":{"type":"string","title":"Env","description":"The environment for the rubric"},"platform":{"type":"string","title":"Platform","description":"Product surface: plg (api.) or ent (ent-api.)","default":"plg"},"rubric_uuid":{"type":"string","title":"Rubric Uuid","description":"Unique identifier for the rubric"},"grading_option":{"type":"string","title":"Grading Option","description":"Grading scale for per-subject level boxes: POINTS | PASS_FAIL | DESCRIPTIVE | DESCRIPTIVE_EXTENDED | NO_GRADING"},"other_material":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Other Material","description":"Other uploaded material"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id","description":"Job scheduler job ID for callback"}},"type":"object","required":["r_bucket_name","r_folder_path","r_file_name","rubric_id","language","token","education_level","env","rubric_uuid","grading_option"],"title":"RubricAnalysisRequestV3","description":"Request model for processing a rubric file with LLM (v3, rubric-only)."},"RubricInstructionCalibrationRequestV3":{"properties":{"rubric_id":{"type":"string","title":"Rubric Id","description":"Unique identifier for the rubric"},"rubric_uuid":{"type":"string","title":"Rubric Uuid","description":"Unique identifier for the rubric"},"token":{"type":"string","title":"Token","description":"Token for communication with frontend"},"language":{"type":"string","title":"Language","description":"Language for calibration output"},"education_level":{"type":"string","title":"Education Level","description":"The education level of the students"},"env":{"type":"string","title":"Env","description":"The environment for the rubric"},"platform":{"type":"string","title":"Platform","description":"Product surface: plg (api.) or ent (ent-api.)","default":"plg"},"teacher_instructions":{"$ref":"#/components/schemas/ScopedTeacherInstructionsV3","description":"general text, which may be empty, plus optional rubric instructions"},"rubric_snapshot":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Rubric Snapshot","description":"Current rubric criteria configuration"},"comments_enabled":{"type":"boolean","title":"Comments Enabled","description":"Whether inline comments per rubric criterion are enabled in feedback options","default":false},"ui_summary":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Ui Summary","description":"Existing teacher-facing instruction summary; empty/null = first calibration"},"internal_profile":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Internal Profile","description":"Existing prompt-ready AI profile; empty/null = first calibration"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id","description":"Job scheduler job ID for callback"}},"type":"object","required":["rubric_id","rubric_uuid","token","language","education_level","env","rubric_snapshot"],"title":"RubricInstructionCalibrationRequestV3","description":"Calibrate teacher instructions into UI summary + internal AI profile.\n\ngeneral may be an empty string. rubric holds per-criterion instructions.\nLeave ui_summary and internal_profile empty on first calibration."},"ScopedRubricInstructionV3":{"properties":{"title":{"type":"string","title":"Title","default":""},"instruction":{"type":"string","title":"Instruction","default":""}},"type":"object","title":"ScopedRubricInstructionV3"},"ScopedTeacherInstructionsV3":{"properties":{"general":{"type":"string","title":"General","default":""},"rubric":{"items":{"$ref":"#/components/schemas/ScopedRubricInstructionV3"},"type":"array","title":"Rubric"}},"type":"object","title":"ScopedTeacherInstructionsV3"},"TaskResponse":{"properties":{"task_id":{"type":"string","title":"Task Id","description":"The ID of the submitted task"}},"type":"object","required":["task_id"],"title":"TaskResponse","description":"Response model for task submission."},"TaskStatusResponse":{"properties":{"task_id":{"type":"string","title":"Task Id","description":"The ID of the task"},"status":{"type":"string","title":"Status","description":"Current status of the task"},"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result","description":"Task result if completed"}},"type":"object","required":["task_id","status"],"title":"TaskStatusResponse","description":"Response model for task status check."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}