瀏覽代碼

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

Parth Sareen 1 月之前
父節點
當前提交
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[];
         };
       };
     };