You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
6.**Grading**: When grading tests, use the `Grade:` format to ensure the test is graded correctly (See modes.test.ts for an example).
157
157
158
158
```typescript
159
-
awaitglobalThis.api.startNewTask(
160
-
`Given this prompt: ${testPrompt} grade the response from 1 to 10 in the format of "Grade: (1-10)": ${output} \n Be sure to say 'I AM DONE GRADING' after the task is complete`,
161
-
)
159
+
awaitglobalThis.api.startNewTask({
160
+
text: `Given this prompt: ${testPrompt} grade the response from 1 to 10 in the format of "Grade: (1-10)": ${output} \n Be sure to say 'I AM DONE GRADING' after the task is complete`,
`Given this prompt: ${switchModesPrompt} grade the response from 1 to 10 in the format of "Grade: (1-10)": `+
27
-
api
28
-
.getMessages(switchModesTaskId)
29
-
.filter(({ type })=>type==="say")
30
-
.map(({ text })=>text??"")
31
-
.join("\n")
38
+
constresponse=messages
39
+
.filter(({ type, say, partial })=>say==="text")
40
+
.map(({ text })=>text??"")
41
+
.join("\n")
42
+
43
+
constgradePrompt=`Given this prompt: ${switchModesPrompt} grade the response from 1 to 10 in the format of "Grade: (1-10)". For example: Grade 7\n\nResponse: ${response}`
0 commit comments