{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/v1/learning/chat/{learning_conversation_id}/sections/{section_id}/message":{"post":{"summary":"Run","operationId":"run_v1_learning_chat__learning_conversation_id__sections__section_id__message_post","parameters":[{"name":"learning_conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Learning Conversation Id"}},{"name":"section_id","in":"path","required":true,"schema":{"type":"string","title":"Section Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/learning/conversations/":{"post":{"summary":"Create Learning Conversation","description":"Create a learning conversation and generate initial goals.\n\nNo input required - creates conversation for the latest eligible\ncompleted interview.","operationId":"create_learning_conversation_v2_learning_conversations__post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLearningConversationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLearningConversationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/learning/{learning_id}/modules/{module_id}/challenges":{"get":{"summary":"Get Module Challenges","operationId":"get_module_challenges_v1_learning__learning_id__modules__module_id__challenges_get","parameters":[{"name":"learning_id","in":"path","required":true,"schema":{"type":"string","title":"Learning Id"}},{"name":"module_id","in":"path","required":true,"schema":{"type":"string","title":"Module Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetModuleChallengesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/challenges/{challenge_id}/message":{"post":{"summary":"Submit Answer","operationId":"submit_answer_v1_challenges__challenge_id__message_post","parameters":[{"name":"challenge_id","in":"path","required":true,"schema":{"type":"string","title":"Challenge Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChallengeAnswerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChallengeAnswerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/learning/stream/{learning_conversation_id}/sections/{section_id}/message":{"post":{"summary":"Run Stream","operationId":"run_stream_v2_learning_stream__learning_conversation_id__sections__section_id__message_post","parameters":[{"name":"learning_conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Learning Conversation Id"}},{"name":"section_id","in":"path","required":true,"schema":{"type":"string","title":"Section Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/chat/stream/{conversation_id}/sections/{section_id}/message":{"post":{"summary":"Run Stream","operationId":"run_stream_v1_chat_stream__conversation_id__sections__section_id__message_post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"section_id","in":"path","required":true,"schema":{"type":"string","title":"Section Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/chat/stream/{conversation_id}/sections/{section_id}/image":{"post":{"summary":"Run Image","operationId":"run_image_v1_chat_stream__conversation_id__sections__section_id__image_post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"section_id","in":"path","required":true,"schema":{"type":"string","title":"Section Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/chat/stream/{conversation_id}/sections/{section_id}/code":{"post":{"summary":"Run Stream","operationId":"run_stream_v1_chat_stream__conversation_id__sections__section_id__code_post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"section_id","in":"path","required":true,"schema":{"type":"string","title":"Section Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/conversations/{conversation_id}":{"post":{"summary":"Generate Feedback V2","operationId":"generate_feedback_v2_v2_conversations__conversation_id__post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateFeedbackV2Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview-embedding/conversations/{conversation_id}":{"post":{"summary":"Generate Embedding","operationId":"generate_embedding_v1_interview_embedding_conversations__conversation_id__post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateInterviewEmbeddingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/conversations/{conversation_id}/end":{"get":{"summary":"Get Progress","operationId":"get_progress_v1_conversations__conversation_id__end_get","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FtueEarlyEndProgress"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"End Ftue","operationId":"end_ftue_v1_conversations__conversation_id__end_post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FtueEarlyEndProgress"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/candidate/{conversation_id}/message":{"post":{"summary":"Run","operationId":"run_v1_admin_candidate__conversation_id__message_post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CandidateMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CandidateMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"CandidateLevel":{"type":"string","enum":["STAFF_SWE"],"title":"CandidateLevel"},"CandidateMessageRequest":{"properties":{"level":{"$ref":"#/components/schemas/CandidateLevel"},"competency":{"$ref":"#/components/schemas/CompetencyScores"},"few_shot_examples":{"items":{"type":"string"},"type":"array","title":"Few Shot Examples"},"response_word_range":{"anyOf":[{"prefixItems":[{"type":"integer"},{"type":"integer"}],"type":"array","maxItems":2,"minItems":2},{"type":"null"}],"title":"Response Word Range"}},"type":"object","required":["level","competency"],"title":"CandidateMessageRequest"},"CandidateMessageResponse":{"properties":{"response":{"type":"string","title":"Response","description":"Candidate's simulated response"}},"type":"object","required":["response"],"title":"CandidateMessageResponse"},"ChallengeAnswerRequest":{"properties":{"selected_index":{"type":"integer","title":"Selected Index"}},"type":"object","required":["selected_index"],"title":"ChallengeAnswerRequest","description":"Submitted answer for a single-MCQ challenge."},"ChallengeAnswerResponse":{"properties":{"correct":{"type":"boolean","title":"Correct"},"correct_index":{"type":"integer","title":"Correct Index"},"explanation":{"type":"string","title":"Explanation"}},"type":"object","required":["correct","correct_index","explanation"],"title":"ChallengeAnswerResponse","description":"Result of validating a submitted answer. Reveals the correct answer."},"ChallengeDifficulty":{"type":"string","enum":["easy","medium","hard"],"title":"ChallengeDifficulty"},"ChallengeSummary":{"properties":{"challenge_id":{"type":"string","title":"Challenge Id"},"difficulty":{"$ref":"#/components/schemas/ChallengeDifficulty"},"question":{"type":"string","title":"Question"},"options":{"items":{"type":"string"},"type":"array","title":"Options"}},"type":"object","required":["challenge_id","difficulty","question","options"],"title":"ChallengeSummary","description":"A challenge as returned by GET — answers are intentionally omitted.\n\ncorrect_index and explanation are NEVER exposed here; they are returned only\nby POST /challenges/{challenge_id}/message after the user submits an answer."},"ChatResponse":{"properties":{"conversation_id":{"type":"string","title":"Conversation Id"},"response":{"type":"string","title":"Response","default":""},"section_complete":{"type":"boolean","title":"Section Complete","default":false},"conversation_complete":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Conversation Complete","default":false},"message_type":{"$ref":"#/components/schemas/MessageType","default":"TEXT"},"image_url":{"type":"string","title":"Image Url"}},"type":"object","required":["conversation_id"],"title":"ChatResponse"},"CompetencyScores":{"properties":{"DEPTH":{"type":"integer","maximum":3.0,"minimum":1.0,"title":"Depth","description":"Technical depth level (1=surface, 2=moderate, 3=deep)"},"TRADEOFFS":{"type":"integer","maximum":3.0,"minimum":1.0,"title":"Tradeoffs","description":"Tradeoff discussion level (1=rarely, 2=sometimes, 3=thorough)"}},"type":"object","required":["DEPTH","TRADEOFFS"],"title":"CompetencyScores"},"CreateLearningConversationRequest":{"properties":{"problem_id":{"type":"string","title":"Problem Id"}},"type":"object","required":["problem_id"],"title":"CreateLearningConversationRequest","description":"Request to create a learning conversation."},"CreateLearningConversationResponse":{"properties":{"learning_conversation_id":{"type":"string","title":"Learning Conversation Id"},"conversation_id":{"type":"string","title":"Conversation Id"},"problem_id":{"type":"string","title":"Problem Id"},"goals":{"items":{"$ref":"#/components/schemas/LearningGoal"},"type":"array","title":"Goals"}},"type":"object","required":["learning_conversation_id","conversation_id","problem_id","goals"],"title":"CreateLearningConversationResponse","description":"Response from creating a learning conversation."},"FtueEarlyEndProgress":{"properties":{"completed_goal_count":{"type":"integer","minimum":0.0,"title":"Completed Goal Count"},"total_goal_count":{"type":"integer","minimum":1.0,"title":"Total Goal Count"},"remaining_goal_count":{"type":"integer","minimum":0.0,"title":"Remaining Goal Count"},"goals":{"items":{"$ref":"#/components/schemas/FtueGoalProgress"},"type":"array","title":"Goals"}},"type":"object","required":["completed_goal_count","total_goal_count","remaining_goal_count","goals"],"title":"FtueEarlyEndProgress","description":"Current FTUE progress used to choose and populate the end-interview UI."},"FtueGoalProgress":{"properties":{"goal_id":{"type":"string","title":"Goal Id"},"label":{"type":"string","title":"Label"},"status":{"type":"string","enum":["completed","current","remaining"],"title":"Status"}},"type":"object","required":["goal_id","label","status"],"title":"FtueGoalProgress","description":"A dynamic interviewer-plan goal safe to show in the exit intercept."},"GenerateFeedbackV2Request":{"properties":{"user_id":{"type":"string","title":"User Id"},"section_id":{"type":"string","title":"Section Id"},"calibration_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calibration Id"},"completed_goal_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Completed Goal Index"},"is_last_section":{"type":"boolean","title":"Is Last Section","default":false},"covered_goal_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Covered Goal Count"},"total_goal_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Goal Count"}},"type":"object","required":["user_id","section_id"],"title":"GenerateFeedbackV2Request"},"GenerateInterviewEmbeddingRequest":{"properties":{"user_id":{"type":"string","title":"User Id"},"interviewer_question":{"type":"string","title":"Interviewer Question"},"user_answer":{"type":"string","title":"User Answer"}},"type":"object","required":["user_id","interviewer_question","user_answer"],"title":"GenerateInterviewEmbeddingRequest"},"GetModuleChallengesResponse":{"properties":{"module_id":{"type":"string","title":"Module Id"},"module_title":{"type":"string","title":"Module Title","default":""},"challenges":{"items":{"$ref":"#/components/schemas/ChallengeSummary"},"type":"array","title":"Challenges"}},"type":"object","required":["module_id"],"title":"GetModuleChallengesResponse","description":"List of challenges for a learning module (answers stripped)."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ImageChatRequest":{"properties":{"message_id":{"type":"string","title":"Message Id"}},"type":"object","required":["message_id"],"title":"ImageChatRequest"},"LearningGoal":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"mode":{"$ref":"#/components/schemas/LearningGoalMode"},"context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context"}},"type":"object","required":["title","description","mode"],"title":"LearningGoal","description":"A single learning goal."},"LearningGoalMode":{"type":"string","enum":["deep","skim","skip"],"title":"LearningGoalMode"},"Mcq":{"properties":{"mcq_id":{"type":"string","title":"Mcq Id"},"options":{"anyOf":[{"items":{"$ref":"#/components/schemas/McqOption"},"type":"array"},{"type":"null"}],"title":"Options"},"selected_option_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Option Id"}},"type":"object","required":["mcq_id"],"title":"Mcq"},"McqOption":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"}},"type":"object","required":["id","label"],"title":"McqOption"},"MessageType":{"type":"string","enum":["TEXT","IMAGE","CODE","MCQ"],"title":"MessageType"},"TextChatRequest":{"properties":{"user_prompt":{"type":"string","title":"User Prompt"},"selected_topic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Topic Id"},"message_type":{"$ref":"#/components/schemas/MessageType","default":"TEXT"},"mcq":{"anyOf":[{"$ref":"#/components/schemas/Mcq"},{"type":"null"}]},"start_mcq":{"type":"boolean","title":"Start Mcq","default":false}},"type":"object","required":["user_prompt"],"title":"TextChatRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}