CodeBuddy will need to extract each step from the API response and store them sequentially in a JSON object for further processing. This issue aims to implement a Python handler to handle this step extraction and storage process.
Steps to implement
Create a Python handler to make an API call to the pre-trained model.
Implement regex to extract each step from the API response.
Store the extracted steps sequentially in a JSON object.
Update the database by storing the JSON object in the exercise_details[steps] field.
Acceptance Criteria
The Python handler successfully retrieves the API response.
The regex extraction accurately extracts each step from the API response.
The extracted steps are stored sequentially in a JSON object.
The JSON object is correctly stored in the exercise_details[steps] field in the database.
The python handler is designed in a resuable manner to cater to both the "Step-by-Step Process" and "Code Reviewer" functionality.
The python handler is adaptable to handle the integration of hint and feedback functionality within the "Code Reviewer" feature
CodeBuddy will need to extract each step from the API response and store them sequentially in a JSON object for further processing. This issue aims to implement a Python handler to handle this step extraction and storage process.
Steps to implement
Acceptance Criteria
exercise_details[steps]
field in the database.