nsarrazin commited on
Commit
a540a9d
·
unverified ·
1 Parent(s): c976b5f

feat(tools): add `File` support

Browse files
src/lib/server/tools/outputs.ts CHANGED
@@ -35,6 +35,10 @@ export const ToolOutputPaths: Record<
35
  type: "file",
36
  path: "$.url",
37
  },
 
 
 
 
38
  };
39
 
40
  export const isValidOutputComponent = (
 
35
  type: "file",
36
  path: "$.url",
37
  },
38
+ file: {
39
+ type: "file",
40
+ path: "$.url",
41
+ },
42
  };
43
 
44
  export const isValidOutputComponent = (
src/lib/types/Tool.ts CHANGED
@@ -39,6 +39,7 @@ export const ToolOutputComponents = z
39
  z.literal("number"),
40
  z.literal("audio"),
41
  z.literal("video"),
 
42
  ])
43
  );
44
 
 
39
  z.literal("number"),
40
  z.literal("audio"),
41
  z.literal("video"),
42
+ z.literal("file"),
43
  ])
44
  );
45