Skip to content

Commit 4bbf265

Browse files
committed
fix
1 parent 19ee47e commit 4bbf265

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/agents/utils/parse_json_to_prompt.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ def parse_json_to_prompt( questionSubmissionSummary: Optional[List[StudentWorkRe
151151

152152
questionSubmissionSummary = [StudentWorkResponseArea(**submissionsSummary) for submissionsSummary in questionSubmissionSummary]
153153
questionInformation = QuestionDetails(**questionInformation)
154-
questionAccessInformation = QuestionAccessInformation(**questionAccessInformation)
155154

156155
def format_response_area_details(responseArea: ResponseAreaDetails, studentSummary: List[StudentWorkResponseArea]) -> str:
157156
submissionDetails = "\n".join(
@@ -210,6 +209,8 @@ def format_part_details(part: PartDetails, currentPart: Optional[CurrentPart], s
210209
"""
211210

212211
if questionAccessInformation:
212+
questionAccessInformation = QuestionAccessInformation(**questionAccessInformation)
213+
213214
questionDetails = f"""This is the question I am currently working on. I am currently working on Part ({convert_index_to_lowercase_letter(questionAccessInformation.currentPart.position)}). Below, you'll find its details, including the parts of the question, my responses for each response area, and the feedback I received. This information highlights my efforts and progress so far. Use this this information to inform your understanding about the question materials provided to me and my work on them.
214215
Maths equations are in KaTex format, preserve them the same. Use British English spellings.
215216
{f'# Question Set {questionInformation.setNumber + 1}: {questionInformation.setName};' if ((questionInformation.setName is not None) and (questionInformation.setNumber is not None)) else ''}

0 commit comments

Comments
 (0)