-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompletion-schema.json
52 lines (52 loc) · 1.65 KB
/
completion-schema.json
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
{
"$schema": "http://json-schema.org/schema",
"type": "object",
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string"
},
"version": {
"type": "string",
"description": "The schema version"
},
"type": {
"type": "string",
"enum": ["completion"],
"markdownDescription": "Define the prompt type. You can use:\n * `chat`: prompt used to initiate open-ended conversations with LLM\n * `completion`: prompt used to guide users towards specific actions or responses"
},
"engine": {
"type": "string",
"description": "Model engine that is expected to use"
},
"prompt": {
"type": "string",
"description": "This field is valid only when type is completion."
},
"parameters": {
"type": "array",
"items": {
"$ref": "#/definitions/parameter"
},
"description": "LLM parameters."
}
},
"required": ["version", "engine", "prompt"],
"definitions": {
"parameter": {
"additionalProperties ": false,
"properties": {
"name": {
"type": "string",
"pattern": "^[a-z]+(_[a-z]+)*$",
"description": "Name of parameter"
},
"value": {
"type": ["string", "number", "boolean"],
"description": "Value of this parameter"
}
},
"required": ["name", "value"]
}
}
}