分享
意图接口(5000)
输入“/”快速插入内容
意图接口(5000)
飞书用户4698
4月2日修改
1.
打招呼接口
接口地址
http://127.0.0.1:5000/to-greet
参数
username:用户名
observation:同上
请求示例
代码块
Python
{
"username":"User",
"observation":{"address":"车陂街道","人脸识别":"张三(主人的朋友)"}
}
返回:
代码块
Python
{
"data": "你好!我是菲菲,随时为你服务!",
"msg": "已进行打招呼",
"status": "success"
}
2.
唤醒接口
接口地址
http://127.0.0.1:5000/to
-wake
参数
username:用户名
请求示例
代码块
Python
{
"username":"User"
}
返回:
代码块
Python
{
"msg": "已唤醒",
"status": "success"
}
3.
打断接口
接口地址
http://127.0.0.1:5000/to
-stop-talking
参数
username:用户名
text:打断时fay回复的内容
observation:同上
请求示例
代码块
Python
{
"username":"User",
"text":"你好,请说?",
"observation":{}
}
返回:
代码块
Python
{
"msg": "已停止说话",
"status": "success"
}