Skip to content

Commit

Permalink
Show AI Criteria in Teacher Tool (#10295)
Browse files Browse the repository at this point in the history
This puts the AI criteria & validation plan in our normal (non-test) catalog for the teacher tool.
  • Loading branch information
thsparks authored Dec 11, 2024
1 parent e15dc7e commit bdbe899
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 40 deletions.
24 changes: 24 additions & 0 deletions common-docs/teachertool/catalog-shared.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
{
"criteria": [
{
"id": "499F3572-E655-4DEE-953B-5F26BF0191D7",
"use": "ai_question",
"template": "Ask AI: ${question}",
"description": "Experimental: AI outputs may not be accurate. Use with caution and always review responses.",
"docPath": "/teachertool",
"maxCount": 5,
"tags": ["General"],
"requestFeedback": true,
"params": [
{
"name": "question",
"type": "longString",
"maxCharacters": 1000,
"paths": ["checks[0].question"]
},
{
"name": "shareid",
"type": "system",
"key": "SHARE_ID",
"paths": ["checks[0].shareId"]
}
]
},
{
"id": "59AAC5BA-B0B3-4389-AA90-1E767EFA8563",
"use": "block_used_n_times",
Expand Down
27 changes: 1 addition & 26 deletions common-docs/teachertool/test/catalog-shared.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,3 @@
{
"criteria": [
{
"id": "499F3572-E655-4DEE-953B-5F26BF0191D7",
"use": "ai_question",
"template": "Ask AI: ${question}",
"description": "Experimental: AI outputs may not be accurate. Use with caution and always review responses.",
"docPath": "/teachertool",
"maxCount": 5,
"tags": ["General"],
"requestFeedback": true,
"params": [
{
"name": "question",
"type": "longString",
"maxCharacters": 1000,
"paths": ["checks[0].question"]
},
{
"name": "shareid",
"type": "system",
"key": "SHARE_ID",
"paths": ["checks[0].shareId"]
}
]
}
]
"criteria": []
}
15 changes: 1 addition & 14 deletions common-docs/teachertool/test/validator-plans-shared.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
{
"validatorPlans": [
{
".desc": "Ask Copilot a question",
"name": "ai_question",
"threshold": -1,
"checks": [
{
"validator": "aiQuestion",
"question": "",
"shareId": ""
}
]
}
]
"validatorPlans": []
}
12 changes: 12 additions & 0 deletions common-docs/teachertool/validator-plans-shared.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,18 @@
"blockType": "math_number"
}
]
},
{
".desc": "Ask Copilot a question",
"name": "ai_question",
"threshold": -1,
"checks": [
{
"validator": "aiQuestion",
"question": "",
"shareId": ""
}
]
}
]
}

0 comments on commit bdbe899

Please sign in to comment.