mirror of
https://github.com/jcreek/AutomatedAssessmentFeedbackAgent.git
synced 2026-07-12 18:43:49 +00:00
feat(*): Add further tools
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { ToolUtility } from '@azure/ai-projects';
|
||||
|
||||
export const conceptVerifierTool = ToolUtility.createFunctionTool({
|
||||
name: 'verifyConceptCoverage',
|
||||
description: 'Checks which rubric‑listed concepts appear (or are missing) in the submission.',
|
||||
parameters: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
submission: { type: 'string' },
|
||||
rubric: { type: 'string' }
|
||||
},
|
||||
required: ['submission', 'rubric']
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,14 @@
|
||||
import { ToolUtility } from '@azure/ai-projects';
|
||||
|
||||
export const feedbackGeneratorTool = ToolUtility.createFunctionTool({
|
||||
name: 'generateFeedback',
|
||||
description: 'Produces two praise points and two actionable “try next time” suggestions based on submission and rubric.',
|
||||
parameters: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
submission: { type: 'string' },
|
||||
rubric: { type: 'string' }
|
||||
},
|
||||
required: ['submission', 'rubric']
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,7 @@
|
||||
export { rubricMatcherTool } from './rubricMatcherTool';
|
||||
export { essayAnalyzerTool } from './essayAnalyzerTool';
|
||||
export { conceptVerifierTool } from './conceptVerifierTool';
|
||||
export { feedbackGeneratorTool } from './feedbackGeneratorTool';
|
||||
export { metacognitiveReflectionPromptTool } from './metacognitiveReflectionPromptTool';
|
||||
export { selfAssessmentTool } from './selfAssessmentTool';
|
||||
export { spellingAndGrammarCheckerTool } from './spellingAndGrammarCheckerTool';
|
||||
@@ -0,0 +1,14 @@
|
||||
import { ToolUtility } from '@azure/ai-projects';
|
||||
|
||||
export const metacognitiveReflectionPromptTool = ToolUtility.createFunctionTool({
|
||||
name: 'generateReflectionPrompts',
|
||||
description: 'Based on rubric shortfalls, generates prompts like “How could you strengthen your evidence in paragraph 2?”',
|
||||
parameters: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
submission: { type: 'string' },
|
||||
rubric: { type: 'string' }
|
||||
},
|
||||
required: ['submission', 'rubric']
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,14 @@
|
||||
import { ToolUtility } from '@azure/ai-projects';
|
||||
|
||||
export const selfAssessmentTool = ToolUtility.createFunctionTool({
|
||||
name: 'createSelfAssessment',
|
||||
description: 'Generates 3 short questions that prompt the student to reflect on their own work based on rubric gaps.',
|
||||
parameters: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
submission: { type: 'string' },
|
||||
rubric: { type: 'string' }
|
||||
},
|
||||
required: ['submission', 'rubric']
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,14 @@
|
||||
import { ToolUtility } from '@azure/ai-projects';
|
||||
|
||||
export const spellingAndGrammarCheckerTool = ToolUtility.createFunctionTool({
|
||||
name: 'checkSpellingAndGrammar',
|
||||
description: 'Identifies spelling, punctuation, and syntax issues in the submission and suggests corrections.',
|
||||
parameters: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
submission: { type: 'string', description: 'The student submission text' },
|
||||
rubric: { type: 'string', description: 'The rubric or task description (for contextual tone adjustments)' }
|
||||
},
|
||||
required: ['submission']
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user