Parcourir la source

interface: relax enum for tool and allow multiple property types (#217)

Parth Sareen il y a 3 mois
Parent
commit
28fb3e6d03
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/interfaces.ts

+ 2 - 2
src/interfaces.ts

@@ -86,9 +86,9 @@ export interface Tool {
       required: string[];
       properties: {
         [key: string]: {
-          type: string;
+          type: string | string[];
           description: string;
-          enum?: string[];
+          enum?: any[];
         };
       };
     };