Files
AutomatedAssessmentFeedback…/src/lib/agent/tools/spellingAndGrammarCheckerTool.ts
T
2025-04-21 10:33:26 +01:00

14 lines
593 B
TypeScript

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']
}
});