xiaozhi-esp32-server/main/xiaozhi-server/core/handle/functionCallConfig.py
2025-03-07 15:40:00 +08:00

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"]
}
}
}
]