ソースを参照

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

Parth Sareen 2 ヶ月 前
コミット
28fb3e6d03
1 ファイル変更2 行追加2 行削除
  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[];
         };
       };
     };