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
Copy file name to clipboardExpand all lines: actions/dashboard/ExamPreparationActions.tsx
+30-30Lines changed: 30 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -72,12 +72,12 @@ export async function continueConversation (
72
72
You and the user can discuss the exam and the student's performance
73
73
74
74
Messages inside [] means that it's a UI element or a user event. For example:
75
-
- [showExamnForm] means that the user will see an exam form and fill it out
76
-
- [showExamnResult] means that the user will see the result of the exam he took
77
-
- [examnsSuggestions] means that the user will see suggestions for exams he can take
75
+
- [showExamForm] means that the user will see an exam form and fill it out
76
+
- [showExamResult] means that the user will see the result of the exam he took
77
+
- [examsSuggestions] means that the user will see suggestions for exams he can take
78
78
79
-
If the user requests a exam or quiz, call \`showExamnForm\` to show the exam form. after an exan is taken, call \`showExamnResult\` to show the result of the exam.
80
-
As a teacher, if the user ask for an exam but is vague, you can suggest exams to the user by calling \`examnsSuggestions\` or if the user is asking for suggestions.
79
+
If the user requests a exam or quiz, call \`showExamForm\` to show the exam form. after an exan is taken, call \`showExamResult\` to show the result of the exam.
80
+
As a teacher, if the user ask for an exam but is vague, you can suggest exams to the user by calling \`examsSuggestions\` or if the user is asking for suggestions.
81
81
82
82
Besides that, you can also chat with users about possible topics for exams, or any other topic you want to discuss with the user that goes along with the exam preparation as this is a exam preparation chat.
83
83
`,
@@ -118,7 +118,7 @@ export async function continueConversation (
118
118
)
119
119
},
120
120
tools: {
121
-
showExamnForm: {
121
+
showExamForm: {
122
122
description: 'Show the user an exam form to fill out for an exam preparationn, this form will be sent to the user and he will anwser it',
123
123
parameters: z.object({
124
124
singleSelectQuestion: z.array(z.object({
@@ -182,7 +182,7 @@ export async function continueConversation (
182
182
content: [
183
183
{
184
184
type: 'tool-call',
185
-
toolName: 'showExamnForm',
185
+
toolName: 'showExamForm',
186
186
toolCallId,
187
187
args: {
188
188
singleSelectQuestion,
@@ -199,7 +199,7 @@ export async function continueConversation (
199
199
content: [
200
200
{
201
201
type: 'tool-result',
202
-
toolName: 'showExamnForm',
202
+
toolName: 'showExamForm',
203
203
toolCallId,
204
204
result: {
205
205
singleSelectQuestion,
@@ -230,7 +230,7 @@ export async function continueConversation (
230
230
message: JSON.stringify([
231
231
{
232
232
type: 'tool-call',
233
-
toolName: 'showExamnForm',
233
+
toolName: 'showExamForm',
234
234
toolCallId,
235
235
result: {
236
236
singleSelectQuestion,
@@ -248,7 +248,7 @@ export async function continueConversation (
248
248
message: JSON.stringify([
249
249
{
250
250
type: 'tool-result',
251
-
toolName: 'showExamnForm',
251
+
toolName: 'showExamForm',
252
252
toolCallId,
253
253
result: {
254
254
singleSelectQuestion,
@@ -284,7 +284,7 @@ export async function continueConversation (
284
284
)
285
285
}
286
286
},
287
-
showExamnResult: {
287
+
showExamResult: {
288
288
description: 'Show the user the result of the exam he took',
289
289
parameters: z.object({
290
290
score: z.number().int().describe('The grade of the student in the exam with a scale from 0 to 20'),
@@ -313,7 +313,7 @@ export async function continueConversation (
313
313
content: [
314
314
{
315
315
type: 'tool-call',
316
-
toolName: 'showExamnResult',
316
+
toolName: 'showExamResult',
317
317
toolCallId,
318
318
args: {
319
319
score,
@@ -329,7 +329,7 @@ export async function continueConversation (
329
329
content: [
330
330
{
331
331
type: 'tool-result',
332
-
toolName: 'showExamnResult',
332
+
toolName: 'showExamResult',
333
333
toolCallId,
334
334
result: {
335
335
score,
@@ -361,7 +361,7 @@ export async function continueConversation (
361
361
message: JSON.stringify([
362
362
{
363
363
type: 'tool-call',
364
-
toolName: 'showExamnResult',
364
+
toolName: 'showExamResult',
365
365
toolCallId,
366
366
result: {
367
367
score,
@@ -378,7 +378,7 @@ export async function continueConversation (
378
378
message: JSON.stringify([
379
379
{
380
380
type: 'tool-result',
381
-
toolName: 'showExamnResult',
381
+
toolName: 'showExamResult',
382
382
toolCallId,
383
383
result: {
384
384
score,
@@ -408,14 +408,14 @@ export async function continueConversation (
408
408
)
409
409
}
410
410
},
411
-
examnsSuggestions: {
412
-
description: 'Show the user suggestions for exams he can take',
411
+
examsSuggestions: {
412
+
description: 'Show the user suggestions for exams forms he can take',
413
413
parameters: z.object({
414
414
suggestions: z.array(z.object({
415
-
title: z.string().describe('The title of the suggestion'),
416
-
description: z.string().describe('The description of the suggestion'),
417
-
content: z.string().describe('The content of the suggestion'),
418
-
difficulty: z.string().describe('The difficulty of the examn')
415
+
title: z.string().describe('The title of the suggestion for the exam'),
416
+
description: z.string().describe('The description of the suggestion for the exam'),
417
+
content: z.string().describe('The content of the suggestion for the exam'),
418
+
difficulty: z.string().describe('The difficulty of the exam')
419
419
}))
420
420
}),
421
421
generate: asyncfunction*({
@@ -435,7 +435,7 @@ export async function continueConversation (
435
435
content: [
436
436
{
437
437
type: 'tool-call',
438
-
toolName: 'examnsSuggestions',
438
+
toolName: 'examsSuggestions',
439
439
toolCallId,
440
440
args: {
441
441
suggestions
@@ -449,7 +449,7 @@ export async function continueConversation (
449
449
content: [
450
450
{
451
451
type: 'tool-result',
452
-
toolName: 'examnsSuggestions',
452
+
toolName: 'examsSuggestions',
453
453
toolCallId,
454
454
result: {
455
455
suggestions
@@ -468,7 +468,7 @@ export async function continueConversation (
468
468
message: JSON.stringify([
469
469
{
470
470
type: 'tool-call',
471
-
toolName: 'examnsSuggestions',
471
+
toolName: 'examsSuggestions',
472
472
toolCallId,
473
473
result: {
474
474
suggestions
@@ -483,7 +483,7 @@ export async function continueConversation (
0 commit comments