-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from samchon/feat/additionalProperties
Allow `additionalProperties` in Claude and Llama.
- Loading branch information
Showing
30 changed files
with
398 additions
and
270 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
examples/function-calling/arguments/claude.additionalProperties.input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "John Doe", | ||
"age": 42, | ||
"etc": { | ||
"hobby": "Soccer", | ||
"job": "Scientist" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
examples/function-calling/arguments/llama.additionalProperties.input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"age": 42, | ||
"etc": { | ||
"hobby": "Soccer", | ||
"job": "Scientist" | ||
}, | ||
"name": "John Doe" | ||
} |
39 changes: 39 additions & 0 deletions
39
examples/function-calling/schemas/claude.additionalProperties.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"input": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"title": "The name of the person", | ||
"description": "The name of the person.", | ||
"type": "string" | ||
}, | ||
"age": { | ||
"title": "The age of the person", | ||
"description": "The age of the person.", | ||
"type": "integer" | ||
}, | ||
"etc": { | ||
"title": "Additional informations about the person", | ||
"description": "Construct a type with a set of properties K of type T", | ||
"type": "object", | ||
"properties": {}, | ||
"required": [], | ||
"additionalProperties": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"age", | ||
"etc" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"input" | ||
], | ||
"$defs": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
examples/function-calling/schemas/llama.additionalProperties.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"input": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"title": "The name of the person", | ||
"description": "The name of the person.", | ||
"type": "string" | ||
}, | ||
"age": { | ||
"title": "The age of the person", | ||
"description": "The age of the person.", | ||
"type": "integer" | ||
}, | ||
"etc": { | ||
"title": "Additional informations about the person", | ||
"description": "Construct a type with a set of properties K of type T", | ||
"type": "object", | ||
"properties": {}, | ||
"required": [], | ||
"additionalProperties": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"age", | ||
"etc" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"input" | ||
], | ||
"$defs": {} | ||
} |
Oops, something went wrong.