Last active
November 26, 2023 08:31
-
-
Save xinzhel/2637a45e6ced54b9e6ffb18dd8b99ac6 to your computer and use it in GitHub Desktop.
test_openaischema.json
This file contains hidden or 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
{ | |
"name": "MultiSearch", | |
"description": "correct segmentation of `Search` tasks", | |
"parameters": { | |
"properties": { | |
"tasks": { | |
"items": { | |
"$ref": "#/$defs/Search" | |
}, | |
"type": "array" | |
} | |
}, | |
"required": [ | |
"tasks" | |
], | |
"type": "object", | |
"$defs": { | |
"Search": { | |
"properties": { | |
"query": { | |
"description": "The search query.", | |
"type": "string" | |
}, | |
"source": { | |
"$ref": "#/$defs/Source" | |
} | |
}, | |
"required": [ | |
"query", | |
"source" | |
], | |
"type": "object" | |
}, | |
"Source": { | |
"enum": [ | |
"VIDEO", | |
"TRANSCRIPT", | |
"DOCUMENT" | |
], | |
"type": "string" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment