-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathai-schemas.ts
103 lines (92 loc) · 2.57 KB
/
ai-schemas.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import { z } from 'zod'
/*
Follow this format:
{
name: NAME_DEPENDENCY,
link: LINK_RESOURCE,
description: Brief explanation (up to 100 characters) about the dependency's role.
}
*/
export const TECH_STACK_SCHEMA = z.object({
data: z.array(
z.object({
name: z.string().describe('Name of the dependency'),
link: z.string().describe('Link to the resource'),
description: z
.string()
.describe("Brief explanation (up to 100 characters) about the dependency's purpose.")
})
)
})
/*
Follow this format:
{
name: ENVIRONMENT VARIABLE NAME,
steps: [Up to 5 bullet point instructions, each not exceeding 100 characters]
}
*/
export const SETTING_UP_ENV_VARS_SCHEMA = z.object({
data: z.array(
z.object({
name: z.string(),
steps: z.array(z.string())
})
)
})
/*
Follow this format:
{
name: PATH,
link: PATH,
description: Brief summary of primary functionalities/components (up to 80 characters).
}
*/
export const PROJECT_SUMMARY_SCHEMA = z.object({
data: z.array(
z.object({
name: z.string().describe('Path'),
link: z.string().describe('Path'),
description: z
.string()
// .max(80)
.describe('Brief summary of primary functionalities/components (up to 80 characters).')
})
)
})
/*
Your task is to craft a summary with the following format:
{
workspace: path's name. Don't add "/" at the end.
description: create a concise overview that outlines the primary purpose of this workspace. Utilize the nested folders to provide insight into the nature of this path (up to 70 words).
paths: [
{
name: nested folder,
description: create a brief summary emphasizing the main purpose and essential features of the nested folder (up to 70 words).
}
]
}
*/
export const MONOREPO_SUMMARY_SCHEMA = z.object({
data: z.array(
z.object({
workspace: z.string().describe(`Path's name. Don't add "/" at the end.`),
description: z
.string()
// .max(70)
.describe(
'Create a concise overview that outlines the primary purpose of this workspace. Utilize the nested folders to provide insight into the nature of this path (up to 70 words).'
),
paths: z.array(
z.object({
name: z.string().describe('Nested folder'),
description: z
.string()
// .max(70)
.describe(
'Create a brief summary emphasizing the main purpose and essential features of the nested folder (up to 70 words).'
)
})
)
})
)
})