Skip to content

Commit a64a3db

Browse files
committed
expected answer in prompt
1 parent 1ee1b24 commit a64a3db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/agents/utils/parse_json_to_prompt.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,22 +202,22 @@ def format_part_details(part: PartDetails, currentPart: Optional[CurrentPart], s
202202
{f"Time spent on this part: {currentPart.timeTakenPart if currentPart.timeTakenPart is not None else 'No recorded duration'}" if currentPart.id == part.publishedPartId else ''}
203203
Part Content: {part.publishedPartContent.strip() if part.publishedPartContent else 'No content'};
204204
{responseAreas}
205-
{f'Final Part Answer: {part.publishedPartAnswerContent}' if part.publishedPartAnswerContent else 'No direct answer for this part.'}
205+
{f'Final Part Expected Answer: {part.publishedPartAnswerContent}' if part.publishedPartAnswerContent else 'No direct expected answer for this part.'}
206206
{workedSolutions}
207207
"""
208208
else:
209209
return f"""
210210
# Part ({convert_index_to_lowercase_letter(part.publishedPartPosition)}):
211211
Part Content: {part.publishedPartContent.strip() if part.publishedPartContent else 'No content'};
212212
{responseAreas}
213-
{f'Final Part Answer: {part.publishedPartAnswerContent}' if part.publishedPartAnswerContent else 'No direct answer for this part.'}
213+
{f'Final Part Expected Answer: {part.publishedPartAnswerContent}' if part.publishedPartAnswerContent else 'No direct expected answer for this part.'}
214214
{workedSolutions}
215215
"""
216216

217217
if questionAccessInformation:
218218
questionAccessInformation = QuestionAccessInformation(**questionAccessInformation)
219219

220-
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.
220+
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, the expected correct answers, 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.
221221
Maths equations are in KaTex format, preserve them the same. Use British English spellings.
222222
{f'# Question Set {questionInformation.setNumber + 1}: {questionInformation.setName};' if ((questionInformation.setName is not None) and (questionInformation.setNumber is not None)) else ''}
223223
# Question {f' {questionInformation.setNumber + 1}.{questionInformation.questionNumber + 1}' if ((questionInformation.setNumber is not None) and (questionInformation.questionNumber is not None)) else ''}: {questionInformation.questionTitle};
@@ -227,7 +227,7 @@ def format_part_details(part: PartDetails, currentPart: Optional[CurrentPart], s
227227
Time Spent on the Question today: {questionAccessInformation.timeTaken or 'No recorded duration'} {f'which is {questionAccessInformation.accessStatus}' if questionAccessInformation.accessStatus else ''} {f'{questionAccessInformation.markedDone}' if questionAccessInformation.markedDone else ''};
228228
"""
229229
else:
230-
questionDetails = f"""This is the question I am currently working on. 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.
230+
questionDetails = f"""This is the question I am currently working on. Below, you'll find its details, including the parts of the question, my responses for each response area, the expected correct answers, 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.
231231
Maths equations are in KaTex format, preserve them the same. Use British English spellings.
232232
{f'# Question Set {questionInformation.setNumber + 1}: {questionInformation.setName};' if ((questionInformation.setName is not None) and (questionInformation.setNumber is not None)) else ''}
233233
# Question {f' {questionInformation.setNumber + 1}.{questionInformation.questionNumber + 1}' if ((questionInformation.setNumber is not None) and (questionInformation.questionNumber is not None)) else ''}: {questionInformation.questionTitle};

0 commit comments

Comments
 (0)