CodeBuddy needs to allow users to review specific steps and integrate hint code for each step. This issue foces on implementing the backend functionality for step selection and hint code integration.
Steps to implement
Extract the selected step from the JSON object to a variable.
Make an API call to the model, passing the selected step and exercise_details["instructions"] as the context.
Assign the response from the model as a variable.
Pass the response variable back to the frontend.
Append the hint code to the code editor on the frontend.
Acceptance Criteria
The selected step is accurately extracted and stored in a variable.
The API call to the model successfully retrieves a response.
The response from the model is correctly assigned to a variable.
The response variable is passed back to the frontend.
The hint code is appended to the code editor on the frontend.
CodeBuddy needs to allow users to review specific steps and integrate hint code for each step. This issue foces on implementing the backend functionality for step selection and hint code integration.
Steps to implement
exercise_details["instructions"]
as the context.Acceptance Criteria