-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresponse_format.json
63 lines (63 loc) · 2.46 KB
/
response_format.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
53
54
55
56
57
58
59
60
61
62
63
{
"type": "json_schema",
"json_schema": {
"name": "message_response",
"strict": true,
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "The main text content of the response in markdown format."
},
"images": {
"type": "array",
"description": "List of images included in the response.",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The URL of the image."
},
"alt": {
"type": "string",
"description": "The alt-text for the image."
}
},
"required": ["url", "alt"],
"additionalProperties": false
}
},
"tools": {
"type": "array",
"description": "Tools invoked to generate the response.",
"items": {
"type": "object",
"properties": {
"tool": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the tool."
},
"output": {
"type": "string",
"description": "The output from tool in JSON string."
}
},
"required": ["name", "output"],
"additionalProperties": false
}
},
"required": ["tool"],
"additionalProperties": false
}
}
},
"required": ["message", "images", "tools"],
"additionalProperties": false
}
}
}