Przeglądaj źródła

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

Parth Sareen 3 miesięcy temu
rodzic
commit
28fb3e6d03
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/interfaces.ts

+ 2 - 2
src/interfaces.ts

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