Commit 27ab0db
authored
Move the Khanmigo data functions to Perseus Core for Server Side Scoring initiative (#3091)
## Summary:
This PR moves `getAnswersFromWidget`, `injectWidgets`, and a handful of helper functions to Perseus Core so that they are available for the Perseus service. We will be creating a new API endpoint to call these functions, so that we can support Khanmigo's move to keeping answerful data server-side.
It also created the new `getPerseusAIData` function, which will be used for the new API Endpoint.
**I'm happy to take any direction on the name**, as "getPromptJSON" didn't feel the most descriptive or correct to myself or the AI team. I don't feel like I've nailed the perfect name either, but it seemed clearer at least.
Issue: LEMS-3766
## Test plan:
- Tests pass
- Tests pass upstream
- Integration works upstream
Author: SonicScrewdriver
Reviewers: SonicScrewdriver, handeyeco, jeremywiebe, benchristel
Required Reviewers:
Approved By: handeyeco
Checks: ⏭️ 1 check has been skipped, ✅ 10 checks were successful
Pull Request URL: #30911 parent 130db84 commit 27ab0db
File tree
8 files changed
+2075
-1781
lines changed- .changeset
- packages
- perseus-core/src
- utils
- perseus/src
- __tests__
- util
8 files changed
+2075
-1781
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
220 | 226 | | |
221 | 227 | | |
222 | 228 | | |
0 commit comments