Skip to content

Commit

Permalink
Merge pull request #72 from samchon/test/llm-function-calling
Browse files Browse the repository at this point in the history
The exact `IChatGptSchema` and LLM function calling applilcation schemas.
  • Loading branch information
samchon authored Nov 19, 2024
2 parents e69f73a + 23f909a commit 248f2b5
Show file tree
Hide file tree
Showing 77 changed files with 3,050 additions and 1,155 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ node_modules/

package-lock.json
pnpm-lock.yaml
*.log
*.log
.env
127 changes: 127 additions & 0 deletions examples/function-calling/recursive.input.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
[
{
"id": "1",
"name": "electronics",
"children": [
{
"id": "1.1",
"name": "desktops",
"children": []
},
{
"id": "1.2",
"name": "laptops",
"children": [
{
"id": "1.2.1",
"name": "ultrabooks",
"children": []
},
{
"id": "1.2.2",
"name": "macbooks",
"children": []
},
{
"id": "1.2.3",
"name": "desknotes",
"children": []
},
{
"id": "1.2.4",
"name": "2 in 1 laptops",
"children": []
}
]
},
{
"id": "1.3",
"name": "tablets",
"children": [
{
"id": "1.3.1",
"name": "ipads",
"children": []
},
{
"id": "1.3.2",
"name": "android tablets",
"children": []
},
{
"id": "1.3.3",
"name": "windows tablets",
"children": []
}
]
},
{
"id": "1.4",
"name": "smartphones",
"children": [
{
"id": "1.4.1",
"name": "mini smartphones",
"children": []
},
{
"id": "1.4.2",
"name": "phablets",
"children": []
},
{
"id": "1.4.3",
"name": "gaming smartphones",
"children": []
},
{
"id": "1.4.4",
"name": "rugged smartphones",
"children": []
},
{
"id": "1.4.5",
"name": "foldable smartphones",
"children": []
}
]
},
{
"id": "1.5",
"name": "cameras",
"children": []
},
{
"id": "1.6",
"name": "televisions",
"children": []
}
]
},
{
"id": "2",
"name": "furnitures",
"children": []
},
{
"id": "3",
"name": "accessories",
"children": [
{
"id": "3.1",
"name": "jewelry",
"children": []
},
{
"id": "3.2",
"name": "clothing",
"children": []
},
{
"id": "3.3",
"name": "shoes",
"children": []
}
]
}
]
40 changes: 40 additions & 0 deletions examples/function-calling/recursive.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"type": "object",
"properties": {
"input": {
"type": "array",
"items": {
"$ref": "#/$defs/IShoppingCategory"
}
}
},
"required": [
"input"
],
"additionalProperties": false,
"$defs": {
"IShoppingCategory": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"children": {
"type": "array",
"items": {
"$ref": "#/$defs/IShoppingCategory"
}
}
},
"required": [
"id",
"name",
"children"
],
"additionalProperties": false
}
}
}
Loading

0 comments on commit 248f2b5

Please sign in to comment.