andy-stack_vaultkeeper-ai/AIClasses/FunctionDefinitions/IAIFunctionDefinition.ts
Andrew Beal 37db1a8908 refactor: improve type safety and add Zod validation for function arguments
- Change function arguments type from `Record<string, object>` to `Record<string, unknown>`
- Add Zod schemas for all AI function arguments validation
- Improve TypeScript types across modals and services
- Add ESLint disable comments for intentional exceptions
- Fix async/await handling in modal and view lifecycle methods
- Update dependencies (@typescript-eslint 8.46.4, rollup 4.53.2, zod 4.1.12)
2025-11-10 19:41:17 +00:00

12 lines
No EOL
371 B
TypeScript

import type { JSONSchemaProperty } from "../Schemas/AIFunctionTypes";
// platform agnostic function definition used to present function calls in an API call
export interface IAIFunctionDefinition {
name: string;
description: string;
parameters: {
type: string;
properties: Record<string, JSONSchemaProperty>;
required?: string[];
};
}