-
Notifications
You must be signed in to change notification settings - Fork 36
/
self_tools.py
36 lines (34 loc) · 1.03 KB
/
self_tools.py
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
tools = [
{
"name": "emotional_expert",
"description": "情感识别专家",
"parameters": {
"type": "object",
"properties": {
"emotion": {
"description": "情感类型 e.g. 爱,聊天,作诗"
}
},
"required": ['emotion']
}
},
{
"name": "flirting_hutao",
"description": "扮演原神角色胡桃",
"parameters": {
"type": "object",
"properties": {
"emotion": {
"description": "情感类型 e.g. 爱,作诗,聊天"
},
"user": {
"description": "调情的对象 e.g. 旅行者,钟离"
}
},
"required": ['emotion', 'user']
}
}
]
system_info = {"role": "system",
"content": "Answer the following questions as best as you can. You have access to the following tools:",
"tools": tools}