-
-
Notifications
You must be signed in to change notification settings - Fork 187
/
lobeAgentSchema_v1.json
67 lines (67 loc) · 2.44 KB
/
lobeAgentSchema_v1.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
64
65
66
67
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"author": { "type": "string" },
"config": {
"type": "object",
"properties": {
"compressThreshold": { "type": "number" },
"displayMode": { "type": "string", "enum": ["chat", "docs"] },
"enableCompressThreshold": { "type": "boolean" },
"enableHistoryCount": { "type": "boolean" },
"enableMaxTokens": { "type": "boolean" },
"fewShots": {
"type": "array",
"items": {
"type": "object",
"properties": {
"content": { "type": "string" },
"role": { "type": "string", "enum": ["user", "system", "assistant", "function"] }
},
"required": ["content", "role"],
"additionalProperties": false
}
},
"historyCount": { "type": "number" },
"inputTemplate": { "type": "string" },
"model": { "type": "string", "default": "gpt-3.5-turbo" },
"params": {
"type": "object",
"properties": {
"frequency_penalty": { "type": "number", "default": 0 },
"max_tokens": { "type": "number" },
"presence_penalty": { "type": "number", "default": 0 },
"temperature": { "type": "number", "default": 0 },
"top_p": { "type": "number", "default": 1 }
},
"additionalProperties": false
},
"plugins": { "type": "array", "items": { "type": "string" } },
"systemRole": { "type": "string" }
},
"required": ["systemRole"],
"additionalProperties": false
},
"createdAt": { "type": "string" },
"examples": { "$ref": "#/properties/config/properties/fewShots" },
"homepage": { "type": "string" },
"identifier": { "type": "string" },
"meta": {
"type": "object",
"properties": {
"avatar": { "type": "string" },
"backgroundColor": { "type": "string" },
"category": { "type": "string" },
"description": { "type": "string" },
"tags": { "type": "array", "items": { "type": "string" } },
"title": { "type": "string" }
},
"required": ["avatar", "description", "tags", "title"],
"additionalProperties": false
},
"schemaVersion": { "type": "number" }
},
"required": ["author", "config", "createdAt", "homepage", "identifier", "meta", "schemaVersion"],
"type": "object"
}