Skip to content

Commit 248f2b5

Browse files
authored
Merge pull request #72 from samchon/test/llm-function-calling
The exact `IChatGptSchema` and LLM function calling applilcation schemas.
2 parents e69f73a + 23f909a commit 248f2b5

File tree

77 files changed

+3050
-1155
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+3050
-1155
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ node_modules/
55

66
package-lock.json
77
pnpm-lock.yaml
8-
*.log
8+
*.log
9+
.env
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
[
2+
{
3+
"id": "1",
4+
"name": "electronics",
5+
"children": [
6+
{
7+
"id": "1.1",
8+
"name": "desktops",
9+
"children": []
10+
},
11+
{
12+
"id": "1.2",
13+
"name": "laptops",
14+
"children": [
15+
{
16+
"id": "1.2.1",
17+
"name": "ultrabooks",
18+
"children": []
19+
},
20+
{
21+
"id": "1.2.2",
22+
"name": "macbooks",
23+
"children": []
24+
},
25+
{
26+
"id": "1.2.3",
27+
"name": "desknotes",
28+
"children": []
29+
},
30+
{
31+
"id": "1.2.4",
32+
"name": "2 in 1 laptops",
33+
"children": []
34+
}
35+
]
36+
},
37+
{
38+
"id": "1.3",
39+
"name": "tablets",
40+
"children": [
41+
{
42+
"id": "1.3.1",
43+
"name": "ipads",
44+
"children": []
45+
},
46+
{
47+
"id": "1.3.2",
48+
"name": "android tablets",
49+
"children": []
50+
},
51+
{
52+
"id": "1.3.3",
53+
"name": "windows tablets",
54+
"children": []
55+
}
56+
]
57+
},
58+
{
59+
"id": "1.4",
60+
"name": "smartphones",
61+
"children": [
62+
{
63+
"id": "1.4.1",
64+
"name": "mini smartphones",
65+
"children": []
66+
},
67+
{
68+
"id": "1.4.2",
69+
"name": "phablets",
70+
"children": []
71+
},
72+
{
73+
"id": "1.4.3",
74+
"name": "gaming smartphones",
75+
"children": []
76+
},
77+
{
78+
"id": "1.4.4",
79+
"name": "rugged smartphones",
80+
"children": []
81+
},
82+
{
83+
"id": "1.4.5",
84+
"name": "foldable smartphones",
85+
"children": []
86+
}
87+
]
88+
},
89+
{
90+
"id": "1.5",
91+
"name": "cameras",
92+
"children": []
93+
},
94+
{
95+
"id": "1.6",
96+
"name": "televisions",
97+
"children": []
98+
}
99+
]
100+
},
101+
{
102+
"id": "2",
103+
"name": "furnitures",
104+
"children": []
105+
},
106+
{
107+
"id": "3",
108+
"name": "accessories",
109+
"children": [
110+
{
111+
"id": "3.1",
112+
"name": "jewelry",
113+
"children": []
114+
},
115+
{
116+
"id": "3.2",
117+
"name": "clothing",
118+
"children": []
119+
},
120+
{
121+
"id": "3.3",
122+
"name": "shoes",
123+
"children": []
124+
}
125+
]
126+
}
127+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"type": "object",
3+
"properties": {
4+
"input": {
5+
"type": "array",
6+
"items": {
7+
"$ref": "#/$defs/IShoppingCategory"
8+
}
9+
}
10+
},
11+
"required": [
12+
"input"
13+
],
14+
"additionalProperties": false,
15+
"$defs": {
16+
"IShoppingCategory": {
17+
"type": "object",
18+
"properties": {
19+
"id": {
20+
"type": "string"
21+
},
22+
"name": {
23+
"type": "string"
24+
},
25+
"children": {
26+
"type": "array",
27+
"items": {
28+
"$ref": "#/$defs/IShoppingCategory"
29+
}
30+
}
31+
},
32+
"required": [
33+
"id",
34+
"name",
35+
"children"
36+
],
37+
"additionalProperties": false
38+
}
39+
}
40+
}

0 commit comments

Comments
 (0)