Skip to content

Commit 982f6e7

Browse files
committed
experiment LambdaDay
1 parent 1899abb commit 982f6e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/agents/utils/parse_json_to_prompt.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ def parse_json_to_prompt( questionSubmissionSummary: Optional[List[StudentWorkRe
152152
questionSubmissionSummary = [StudentWorkResponseArea(**submissionsSummary) for submissionsSummary in questionSubmissionSummary]
153153
questionInformation = QuestionDetails(**questionInformation)
154154

155+
# TODO: ONLY FOR EXPERIMENT, REMOVE LATER
156+
# if set number is even (2 or 4), then allow context, else do not allow context
157+
if questionInformation.setNumber is not None:
158+
if (questionInformation.setNumber + 1) % 2 != 0:
159+
return "You are unaware of the question details. Ask me about the question I am working on such that you can help me. Use British English spellings."
160+
155161
def format_response_area_details(responseArea: ResponseAreaDetails, studentSummary: List[StudentWorkResponseArea]) -> str:
156162
submissionDetails = "\n".join(
157163
[

0 commit comments

Comments
 (0)