mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
36 lines
No EOL
1.4 KiB
Python
36 lines
No EOL
1.4 KiB
Python
FunctionCallConfig = [
|
|
{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "handle_exit_intent",
|
|
"description": "当用户想结束对话或需要退出系统时调用",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"say_goodbye": {
|
|
"type": "string",
|
|
"description": "和用户友好结束对话的告别语"
|
|
}
|
|
},
|
|
"required": []
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "play_music",
|
|
"description": "当用户想播放音乐时调用",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"song_name": {
|
|
"type": "string",
|
|
"description": "要播放的歌曲名称,如果没有指定具体歌名则为'random'"
|
|
}
|
|
},
|
|
"required": ["song_name"]
|
|
}
|
|
}
|
|
}
|
|
] |