浏览代码

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

Parth Sareen 3 月之前
父节点
当前提交
28fb3e6d03
共有 1 个文件被更改,包括 2 次插入2 次删除
  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[];
         };
         };
       };
       };
     };
     };