Skip to content

Commit 9d79d52

Browse files
committed
remove unnecessary request attributes
1 parent 52be49d commit 9d79d52

7 files changed

Lines changed: 21 additions & 112 deletions

File tree

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ Body with optional fields:
198198
{ "role": "USER", "content": "<current message>" }
199199
],
200200
"user": {
201-
"userId": "<uid>",
202201
"type": "LEARNER",
203202
"preference": {
204203
"conversationalStyle": "<stored style string>"
@@ -209,13 +208,11 @@ Body with optional fields:
209208
"accessStatus": "a good amount of time spent on this question today.",
210209
"markedDone": "This question is still being worked on.",
211210
"currentPart": {
212-
"partId": "<part uuid>",
213211
"position": 0,
214212
"timeSpentOnPart": "10 minutes",
215213
"markedDone": "This part is not marked done.",
216214
"responseAreas": [
217215
{
218-
"responseAreaId": "<response area uuid>",
219216
"responseType": "EXPRESSION",
220217
"totalSubmissions": 3,
221218
"wrongSubmissions": 2,
@@ -256,7 +253,6 @@ Body with optional fields:
256253
],
257254
"responseAreas": [
258255
{
259-
"responseAreaId": "<response area uuid>",
260256
"position": 0,
261257
"responseType": "EXPRESSION",
262258
"answer": "<reference answer>",

src/agent/utils/example_inputs/example_input_1.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,18 @@
44
{ "role": "USER", "content": "How can I start solving this question?" }
55
],
66
"user": {
7-
"userId": "a6632248-578b-4976-9d42-7daea459a905",
87
"type": "LEARNER",
98
"preference": { "conversationalStyle": "" },
109
"taskProgress": {
11-
"currentQuestionId": "c5b258ec-0165-4595-a7ee-cbe0cd5dc012",
1210
"timeSpentOnQuestion": "58 minutes",
1311
"accessStatus": "too much time spent on this question today.",
1412
"markedDone": "This question is still being worked on.",
1513
"currentPart": {
16-
"partId": "bbfcc2e4-3bf7-4016-a300-f09e3204ed8e",
1714
"position": 0,
1815
"timeSpentOnPart": "37 minutes",
1916
"markedDone": "This part is not marked done.",
2017
"responseAreas": [
2118
{
22-
"responseAreaId": "4ceb8d4b-b892-4388-a1b0-d80219e5b86e",
2319
"responseType": "NUMBER",
2420
"totalSubmissions": 1,
2521
"wrongSubmissions": 1,
@@ -30,7 +26,6 @@
3026
}
3127
},
3228
{
33-
"responseAreaId": "dbff8fab-b129-4a6c-a768-52f5c5923934",
3429
"responseType": "NUMBER",
3530
"totalSubmissions": 1,
3631
"wrongSubmissions": 1,
@@ -59,13 +54,11 @@
5954
"estimatedTime": "5-10 minutes",
6055
"parts": [
6156
{
62-
"partId": "bbfcc2e4-3bf7-4016-a300-f09e3204ed8e",
6357
"position": 0,
6458
"content": "Convert the following numbers to decimal: $11010_2$, $110101_2$.",
6559
"answerContent": "$11010_2 = 26_{10}$\\n\\n$110101_2 = 53_{10}$&#x20;\\n\\n&#x20;&#x20;",
6660
"workedSolutionSections": [
6761
{
68-
"id": "df588439-f183-4161-ade3-41559113e447",
6962
"position": 0,
7063
"title": "",
7164
"content": "$11010_2 = (0\\\\times1) + (1\\\\times2) + (0\\\\times4) + (1\\\\times8) + (1\\\\times16) = \\\\boxed{26_{10}}$&#x20;\\n\\n***\\n\\n$110101_2 = (1\\\\times1) + (0\\\\times2) + (1\\\\times4) + (0\\\\times8) + (1\\\\times16) + (1\\\\times32) = \\\\boxed{53_{10}}$&#x20;\\n\\n&#x20;"
@@ -74,14 +67,12 @@
7467
"structuredTutorialSections": [],
7568
"responseAreas": [
7669
{
77-
"responseAreaId": "4ceb8d4b-b892-4388-a1b0-d80219e5b86e",
7870
"position": 0,
7971
"responseType": "NUMBER",
8072
"answer": 26,
8173
"preResponseText": "$11010_2 =$"
8274
},
8375
{
84-
"responseAreaId": "dbff8fab-b129-4a6c-a768-52f5c5923934",
8576
"position": 1,
8677
"responseType": "NUMBER",
8778
"answer": 53,
@@ -90,25 +81,21 @@
9081
]
9182
},
9283
{
93-
"partId": "cdf7de05-0bea-43e4-8c9a-5d47e835e6bd",
9484
"position": 1,
9585
"content": "Convert the following numbers to binary: $101_{10}$, $16_{10}$.",
9686
"answerContent": "$101_{10} = 1100101_2$&#x20;\\n\\n$16_{10} = 10000_2$&#x20;\\n\\n&#x20;&#x20;",
9787
"workedSolutionSections": [
9888
{
99-
"id": "aff42475-f0c0-4416-b1da-5cbae086d3f4",
10089
"position": 0,
10190
"title": "",
10291
"content": ""
10392
},
10493
{
105-
"id": "3bb12dbb-f558-4df3-9db7-a31733143d71",
10694
"position": 0,
10795
"title": "By repeated division",
10896
"content": "$101_{10}$ can be divided by 2 to give a quotient of 50 and a remainder of 1. The remainder is the first binary digit: $1_2$.\\n\\n***\\n\\n$50_{10}$ divided by 2 gives a quotient of 25 and a remainder of zero, so the second binary digit is 0: $01_2$.\\n\\n***\\n\\n$25_{10}$ divided by 2 gives a quotient of 12 and a remainder of 1, so the third binary digit is 1: $101_2$\\n\\n***\\n\\n$12_{10}$ divided by 2 gives a quotient of 6 and a remainder of 0, so the fourth binary digit is 0: $0101_2$\\n\\n***\\n\\n$6_{10}$ divided by 2 gives a quotient of 3 and a remainder of 0, so the fifth binary digit is 0: $00101_2$\\n\\n***\\n\\n$3_{10}$ divided by 2 gives a quotient of 1 and a remainder of 1, so the sixth binary digit is 1: $100101_2$\\n\\n***\\n\\n$1_{10}$ divided by 2 gives a quotient of zero and a remainder of 1, so the seventh binary digit is 1: $\\\\boxed{1100101_2}$.&#x20;\\n\\n&#x20;&#x20;"
10997
},
11098
{
111-
"id": "d95da3de-eafa-4cab-98d8-005b1268393b",
11299
"position": 1,
113100
"title": "By inspection",
114101
"content": "$101_{10}$ can be written in terms of powers of 2 as $101 = 64 + 32 + 4 + 1 = 2^6 + 2^5 + 2^2 + 2^0$, so its binary representation is $\\\\boxed{1100101_2}$.\\n\\n***\\n\\n$16_{10}$ is already a power of 2 ($2^4$), so its binary representation will have 1 bit set: $\\\\boxed{10000_2}$.&#x20;\\n\\n&#x20; &#x20;"
@@ -117,14 +104,12 @@
117104
"structuredTutorialSections": [],
118105
"responseAreas": [
119106
{
120-
"responseAreaId": "9a307730-7525-4b6e-976a-d8a434c6503a",
121107
"position": 0,
122108
"responseType": "NUMBER",
123109
"answer": 1100101,
124110
"preResponseText": "$101_{10} = $"
125111
},
126112
{
127-
"responseAreaId": "05df22cc-4afd-499c-8533-5f34dfec7844",
128113
"position": 1,
129114
"responseType": "NUMBER",
130115
"answer": 10000,

src/agent/utils/example_inputs/example_input_2.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,20 @@
22
"conversationId": "9e6b84b8-9aed-4145-ae1a-2f4d315e7601",
33
"messages": [{ "role": "USER", "content": "help" }],
44
"user": {
5-
"userId": "a6632248-578b-4976-9d42-7daea459a905",
65
"type": "LEARNER",
76
"preference": {
87
"conversationalStyle": "student prefers direct and short responses"
98
},
109
"taskProgress": {
11-
"currentQuestionId": "f30c29ad-a7f6-45d0-8713-cb0686ca6a0e",
1210
"timeSpentOnQuestion": "less than one minute",
1311
"accessStatus": "",
1412
"markedDone": "This question is still being worked on.",
1513
"currentPart": {
16-
"partId": "a51a1908-03cd-4bd9-8bbe-62d94ec2b3d1",
1714
"position": 0,
1815
"timeSpentOnPart": "less than one minute",
1916
"markedDone": "This part is marked done.",
2017
"responseAreas": [
2118
{
22-
"responseAreaId": "a30d1dd3-1255-42c6-a1ac-37437476f816",
2319
"responseType": "NUMERIC_UNITS",
2420
"totalSubmissions": 3,
2521
"wrongSubmissions": 2,
@@ -44,29 +40,25 @@
4440
"estimatedTime": "10 minutes",
4541
"parts": [
4642
{
47-
"partId": "a51a1908-03cd-4bd9-8bbe-62d94ec2b3d1",
4843
"position": 0,
4944
"content": "Calculate the work he performs after pulling the child for $10\\\\text{m}$.&#x20;\\n",
5045
"answerContent": "$W = 939.7\\\\text{J}$\\n",
5146
"workedSolutionSections": [
5247
{
53-
"id": "ad3060af-4040-45d7-b0d5-ce47497b86f3",
5448
"position": 0,
5549
"title": "",
5650
"content": "We require the force component parallel to the direction of travel, and so $W = \\\\vec{F}\\\\cdot\\\\vec{d}$ (the projection of $\\\\vec{F}$ onto $\\\\vec{d}$) (**section 1.11**). Hence applying the dot product definition to evaluate this (**section 1.8**):\\n\\n***\\n\\n$$\\n\\\\begin{aligned}\\nW & = \\\\vec{F}\\\\cdot \\\\vec{d} \\\\\\\\\\n& = 100\\\\cdot10\\\\cos\\\\theta \\\\\\\\\\n& = 939.7\\\\text{J} \\n\\\\end{aligned}\\n$$\\n"
5751
}
5852
],
5953
"structuredTutorialSections": [
6054
{
61-
"id": "a6044ac0-f7f3-4a07-ac94-cb3e00cc732e",
6255
"position": 0,
6356
"title": null,
6457
"content": "Can you express the work done as a dot product (**section 1.11**)?\\n\\n\\n***\\n\\nEvaluate the dot product using the dot product definition (**section 1.8**).\\n"
6558
}
6659
],
6760
"responseAreas": [
6861
{
69-
"responseAreaId": "a30d1dd3-1255-42c6-a1ac-37437476f816",
7062
"position": 0,
7163
"responseType": "NUMERIC_UNITS",
7264
"answer": "939.7 J",
@@ -75,13 +67,11 @@
7567
]
7668
},
7769
{
78-
"partId": "af21b774-5a07-48aa-9c90-398718f6b831",
7970
"position": 1,
8071
"content": "Why does he not pull at a shallower angle (closer to the horizontal)?\\n",
8172
"answerContent": "",
8273
"workedSolutionSections": [
8374
{
84-
"id": "4f00f976-044b-4d40-9a14-0aa8d8c52221",
8575
"position": 0,
8676
"title": "",
8777
"content": "Pulling at a shallower angle (closer to horizontal) would require less work or allow him to pull less strongly, but it reduces the reaction force that he feels too, which reduces his maximum pulling force, and also allow him to gain more leverage as he pulls (he can lean forward and use his weight to pull whilst pivoted at his feet).&#x20;\\n"
@@ -90,7 +80,6 @@
9080
"structuredTutorialSections": [],
9181
"responseAreas": [
9282
{
93-
"responseAreaId": "202a362a-382e-4093-bd31-5531f9f677e1",
9483
"position": 0,
9584
"responseType": "MULTIPLE_CHOICE",
9685
"answer": [

src/agent/utils/example_inputs/example_input_3.json

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,20 @@
77
}
88
],
99
"user": {
10-
"userId": "c7e19a84-2b56-4f01-9a3e-1d08bc762345",
1110
"type": "LEARNER",
1211
"preference": {
1312
"conversationalStyle": "The student prefers concise answers with worked examples."
1413
},
1514
"taskProgress": {
16-
"currentQuestionId": "a1b2c3d4-5e6f-7890-abcd-ef1234567890",
1715
"timeSpentOnQuestion": "13 minutes",
1816
"accessStatus": "too much time spent on this question.",
1917
"markedDone": "Part (a) was marked done.",
2018
"currentPart": {
21-
"partId": "04d2cab2-eeca-4c1f-bcef-6401fe4ec635",
2219
"position": 0,
2320
"timeSpentOnPart": "10 minutes",
2421
"markedDone": "This part is not marked done.",
2522
"responseAreas": [
2623
{
27-
"responseAreaId": "1194c5b3-1831-433e-b78e-c96c94f99117",
2824
"responseType": "MATRIX",
2925
"totalSubmissions": 1,
3026
"wrongSubmissions": 0,
@@ -35,7 +31,6 @@
3531
}
3632
},
3733
{
38-
"responseAreaId": "4e354eda-fb78-4c26-a3ae-f8d1c06297a2",
3934
"responseType": "MATRIX",
4035
"totalSubmissions": 1,
4136
"wrongSubmissions": 1,
@@ -64,13 +59,11 @@
6459
"estimatedTime": "1-3 minutes",
6560
"parts": [
6661
{
67-
"partId": "04d2cab2-eeca-4c1f-bcef-6401fe4ec635",
6862
"position": 0,
6963
"content": "",
7064
"answerContent": "",
7165
"workedSolutionSections": [
7266
{
73-
"id": "9cb3a347-c05f-4101-b522-a0c6d2fbc6bf",
7467
"position": 1,
7568
"title": "",
7669
"content": "$$\n\\vec{a}+\\vec{b} = \\begin{bmatrix}-1 \\\\ 5\\\\ -1\\end{bmatrix}\n$$\n\nSince vector addition is commutative, $\\vec{b}+\\vec{a}=\\vec{a}+\\vec{b}$.\n"
@@ -79,14 +72,12 @@
7972
"structuredTutorialSections": [],
8073
"responseAreas": [
8174
{
82-
"responseAreaId": "1194c5b3-1831-433e-b78e-c96c94f99117",
8375
"position": 0,
8476
"responseType": "MATRIX",
8577
"answer": [["-1"], ["5"], ["-1"]],
8678
"preResponseText": "$\\vec{a}+\\vec{b}=$"
8779
},
8880
{
89-
"responseAreaId": "4e354eda-fb78-4c26-a3ae-f8d1c06297a2",
9081
"position": 1,
9182
"responseType": "MATRIX",
9283
"answer": [["-1"], ["5"], ["-1"]],
@@ -95,25 +86,21 @@
9586
]
9687
},
9788
{
98-
"partId": "dbe25bc9-6c42-4e58-aac7-d15a783ef337",
9989
"position": 1,
10090
"content": "",
10191
"answerContent": "",
10292
"workedSolutionSections": [
10393
{
104-
"id": "7d696718-c6f5-4e11-a5fb-bd122c1274cf",
10594
"position": 1,
10695
"title": "$3\\vec{c}$",
10796
"content": "$$\n3\\vec{c} = \\begin{bmatrix}0 \\\\ 12\\\\ -3\\end{bmatrix}\n$$"
10897
},
10998
{
110-
"id": "010b312d-2699-439f-bcab-9f8ac4b96114",
11199
"position": 2,
112100
"title": "$-\\vec{a}$",
113101
"content": "$$\n-\\vec{a} = \\begin{bmatrix}-1 \\\\ -2\\\\ -3\\end{bmatrix}\n$$"
114102
},
115103
{
116-
"id": "20602e93-de57-4e69-afcd-e05f454155de",
117104
"position": 3,
118105
"title": "$\\frac{\\vec{b}}{2}$",
119106
"content": "$$\n\\frac{\\vec{b}}{2} = \\begin{bmatrix}-1 \\\\ 1.5\\\\ -2\\end{bmatrix}\n$$"
@@ -122,21 +109,18 @@
122109
"structuredTutorialSections": [],
123110
"responseAreas": [
124111
{
125-
"responseAreaId": "85c33011-0e12-435c-944e-399043e92779",
126112
"position": 0,
127113
"responseType": "MATRIX",
128114
"answer": [["0"], ["12"], ["-3"]],
129115
"preResponseText": "$3\\vec{c}=$"
130116
},
131117
{
132-
"responseAreaId": "ae4a9db7-ff54-489d-9a21-143621e6e7aa",
133118
"position": 1,
134119
"responseType": "MATRIX",
135120
"answer": [["-1"], ["-2"], ["-3"]],
136121
"preResponseText": "$-\\vec{a}=$"
137122
},
138123
{
139-
"responseAreaId": "3ae38184-9dbc-4c5f-872b-75ddfd691b20",
140124
"position": 2,
141125
"responseType": "MATRIX",
142126
"answer": [["-1"], ["1.5"], ["-2"]],
@@ -145,19 +129,16 @@
145129
]
146130
},
147131
{
148-
"partId": "2cb9d565-8f1c-4901-bf2b-0b89f12ec9e2",
149132
"position": 2,
150133
"content": "",
151134
"answerContent": "",
152135
"workedSolutionSections": [
153136
{
154-
"id": "8162a17d-bed7-48a9-b487-0bd6280a3988",
155137
"position": 1,
156138
"title": "$3\\vec{a}-3\\vec{c}$",
157139
"content": "$$\n3\\vec{a}-3\\vec{c} = \\begin{bmatrix}3 \\\\ -6\\\\ 12\\end{bmatrix}\n$$"
158140
},
159141
{
160-
"id": "9d88d02a-e63d-40d0-8200-5d81718e2259",
161142
"position": 2,
162143
"title": "$3(\\vec{a}-\\vec{c})$",
163144
"content": "$$\n3(\\vec{a}-\\vec{c}) = \\begin{bmatrix}3 \\\\ -6\\\\ 12\\end{bmatrix}\n$$"
@@ -166,14 +147,12 @@
166147
"structuredTutorialSections": [],
167148
"responseAreas": [
168149
{
169-
"responseAreaId": "6c64c869-358d-477d-b835-7c5e268b08b2",
170150
"position": 0,
171151
"responseType": "MATRIX",
172152
"answer": [["3"], ["-6"], ["12"]],
173153
"preResponseText": "$3\\vec{a}-3\\vec{c}=$"
174154
},
175155
{
176-
"responseAreaId": "0b5d2dab-7c6d-4694-8c3b-56df1afaba96",
177156
"position": 1,
178157
"responseType": "MATRIX",
179158
"answer": [["3"], ["-6"], ["12"]],
@@ -182,13 +161,11 @@
182161
]
183162
},
184163
{
185-
"partId": "3ee15335-1bfc-466a-8fff-66abd742dc33",
186164
"position": 3,
187165
"content": "",
188166
"answerContent": "",
189167
"workedSolutionSections": [
190168
{
191-
"id": "916cf686-7a41-4169-8fa2-b2e9d6924375",
192169
"position": 1,
193170
"title": "",
194171
"content": "$$\n-5(\\vec{a}+\\vec{c})+\\vec{b} = \\begin{bmatrix}-7 \\\\ -27\\\\ -14\\end{bmatrix}\n$$"
@@ -197,7 +174,6 @@
197174
"structuredTutorialSections": [],
198175
"responseAreas": [
199176
{
200-
"responseAreaId": "8a4d3fed-e450-475d-a09b-1e58f8dbbbe2",
201177
"position": 0,
202178
"responseType": "MATRIX",
203179
"answer": [["-7"], ["-27"], ["-14"]],
@@ -206,13 +182,11 @@
206182
]
207183
},
208184
{
209-
"partId": "b2620eb0-9de6-404e-a82c-b4ad8e015d40",
210185
"position": 4,
211186
"content": "",
212187
"answerContent": "",
213188
"workedSolutionSections": [
214189
{
215-
"id": "3d15fcbc-5173-4d89-a13a-3296c25680ec",
216190
"position": 1,
217191
"title": "",
218192
"content": "$$\n3\\vec{a}-2\\vec{c}+3\\vec{b} = \\begin{bmatrix}-3 \\\\ 7\\\\ -1\\end{bmatrix}\n$$"
@@ -221,7 +195,6 @@
221195
"structuredTutorialSections": [],
222196
"responseAreas": [
223197
{
224-
"responseAreaId": "1a5fb3fb-001d-4ed5-9606-2a73fcae036c",
225198
"position": 0,
226199
"responseType": "MATRIX",
227200
"answer": [["-3"], ["7"], ["-1"]],

0 commit comments

Comments
 (0)