Skip to content

Commit 93ca2d6

Browse files
authored
fix: set and question numbers (#13)
* fix: small fix prompt * debug print * fix: question set numbers
1 parent c98af4b commit 93ca2d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def handler(event: JsonType, context):
1515
1616
"""
1717
# Log the input event for debugging purposes
18-
# print("Received event:", json.dumps(event, indent=2))
18+
print("Received event:", json.dumps(event, indent=2))
1919

2020
if "body" not in event:
2121
return {

src/agents/utils/parse_json_to_prompt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ def format_part_details(part: PartDetails, currentPart: CurrentPart, summary: Li
194194

195195
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.
196196
Maths equations are in KaTex format, preserve them the same. Use British English spellings.
197-
{f'# Question Set {questionInformation.setNumber + 1}: {questionInformation.setName};' if questionInformation.setName and questionInformation.setNumber else ''}
198-
# Question{f' {questionInformation.setNumber + 1}.{questionInformation.questionNumber + 1}' if questionInformation.setNumber and questionInformation.questionNumber else ''}: {questionInformation.questionTitle};
197+
{f'# Question Set {questionInformation.setNumber + 1}: {questionInformation.setName};' if ((questionInformation.setName is not None) and (questionInformation.setNumber is not None)) else ''}
198+
# Question {f' {questionInformation.setNumber + 1}.{questionInformation.questionNumber + 1}' if ((questionInformation.setNumber is not None) and (questionInformation.questionNumber is not None)) else ''}: {questionInformation.questionTitle};
199199
Guidance to Solve the Question: {questionInformation.questionGuidance or 'None'};
200200
Description of Question: {questionInformation.questionContent};
201201
Expected Time to Complete the Question: {f'{questionInformation.durationLowerBound} - {questionInformation.durationUpperBound} min;' if questionInformation.durationLowerBound and questionInformation.durationUpperBound else 'No specified duration.'}

0 commit comments

Comments
 (0)