-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtools.ts
43 lines (41 loc) · 1.02 KB
/
tools.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { z } from "zod"
export const tools = {
speed_up: {
name: "speed_up",
description: "Speed up a video",
input: {
input_file: z.string().describe("Path to input file"),
output_file: z
.string()
.describe(
"Path to output file, output to the same directory if not specified",
)
.optional(),
max_fps: z
.number()
.min(1)
.max(60)
.default(30)
.describe("Max FPS for the output file"),
speed_factor: z
.number()
.min(0.1)
.max(10)
.default(2)
.describe("Speed factor for the output file, default to 2x sped up"),
},
},
extract_audio: {
name: "extract_audio",
description: "Extract audio as mp3 from a video",
input: {
input_file: z.string().describe("Path to input file"),
output_file: z
.string()
.describe(
"Path to output file, output to the same directory if not specified",
)
.optional(),
},
},
}