{
"temperature": 0.5,
"topP": 0.3,
"messages": [
{
"role": "user",
"content": "阳明路海底捞电话"
},
{
"role": "assistant",
"content": "为了提供给您正确的海底捞餐厅信息,请告诉我您想要查询的是哪个城市的阳明路海底捞店。"
},
{
"role": "user",
"content": "湖北"
},
{
"role": "assistant",
"content": "感谢您提供信息,但请确切告知具体的城市名称,如武汉、宜昌等。湖北是一个省份,包含多个可能拥有阳明路海底捞的城市。"
},
{
"role": "user",
"content": "好吧,给你了。是武汉。"
}
],
"tool_choice": "auto",
"systemContent": "你是一名连锁餐厅的在线电话客服人员,熟练而精准的识别用户问题并做出解答。当客户来咨询餐厅信息时,你会主动引导客户输入餐厅名称和所在城市,用来综合确定餐厅位置。注意城市名称需要用户主动输入,不要根据餐厅名称进行推测。",
"tools": [
{
"type": "function",
"function": {
"name": "get_restaurant_store_information",
"description": "根据餐厅名称和城市名称查询餐厅的相关信息(如营业时间、联系方式、优惠活动等);",
"parameters": {
"type": "object",
"properties": {
"restaurant": {
"type": "string",
"description": "餐厅名称。如:左一城店、钟楼英泰店、鼓楼店、南京路店、深圳二十八店、南昌二店等"
},
"city": {
"type": "string",
"description": "城市名称,需要从用户输入中截取中国大陆的城市名称。如:北京、上海、杭州、深圳、武汉、无锡、南京等。"
}
},
"required": [
"restaurant",
"city"
]
}
}
},
{
"type": "function",
"function": {
"name": "get_total_number_of_restaurants",
"description": "根据地理位置查询门店总数量;",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "餐厅位置,如:时代广场、鼓楼商场、创业街、八一路、深圳市、武汉市等"
}
},
"required": [
"location"
]
}
}
}
]
}curl --location --request POST '/AIGCChatOpenServ/saas/cosplay/text/v2' \
--header 'X-Request-req-accessKeyId: accessKeyId' \
--header 'X-Request-req-accessKeySecret: accessKeySecret' \
--header 'Content-Type: application/json' \
--data-raw '{
"temperature": 0.5,
"topP": 0.3,
"messages": [
{
"role": "user",
"content": "阳明路海底捞电话"
},
{
"role": "assistant",
"content": "为了提供给您正确的海底捞餐厅信息,请告诉我您想要查询的是哪个城市的阳明路海底捞店。"
},
{
"role": "user",
"content": "湖北"
},
{
"role": "assistant",
"content": "感谢您提供信息,但请确切告知具体的城市名称,如武汉、宜昌等。湖北是一个省份,包含多个可能拥有阳明路海底捞的城市。"
},
{
"role": "user",
"content": "好吧,给你了。是武汉。"
}
],
"tool_choice": "auto",
"systemContent": "你是一名连锁餐厅的在线电话客服人员,熟练而精准的识别用户问题并做出解答。当客户来咨询餐厅信息时,你会主动引导客户输入餐厅名称和所在城市,用来综合确定餐厅位置。注意城市名称需要用户主动输入,不要根据餐厅名称进行推测。",
"tools": [
{
"type": "function",
"function": {
"name": "get_restaurant_store_information",
"description": "根据餐厅名称和城市名称查询餐厅的相关信息(如营业时间、联系方式、优惠活动等);",
"parameters": {
"type": "object",
"properties": {
"restaurant": {
"type": "string",
"description": "餐厅名称。如:左一城店、钟楼英泰店、鼓楼店、南京路店、深圳二十八店、南昌二店等"
},
"city": {
"type": "string",
"description": "城市名称,需要从用户输入中截取中国大陆的城市名称。如:北京、上海、杭州、深圳、武汉、无锡、南京等。"
}
},
"required": [
"restaurant",
"city"
]
}
}
},
{
"type": "function",
"function": {
"name": "get_total_number_of_restaurants",
"description": "根据地理位置查询门店总数量;",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "餐厅位置,如:时代广场、鼓楼商场、创业街、八一路、深圳市、武汉市等"
}
},
"required": [
"location"
]
}
}
}
]
}'{
"code": "200",
"msg": "success",
"data": {
"messageKey": "6614df590434432034d431d1",
"answer": null,
"conversationSize": 5,
"toolCalls": [
{
"name": "get_restaurant_store_information",
"arguments": "{\"restaurant\":\"阳明路店\",\"city\":\"武汉\"}",
"id": "call_Yz1hZyXiC53MRex8du2WSmEl",
"type": "function"
}
]
}
}