设定 functions
functions
const functions = [
{
name: 'getTravelProductList',
description: 'Get a list of travel products based on the given location',
parameters: {
type: 'object',
properties: {
keyword: {
type: 'string',
description: 'The destination keyword, e.g. Shanghai, China',
},
travelDays: {
type: 'array',
items: {
type: 'number',
},
description: 'The number of days of the trip, e.g. [3, 5, 7]',
},
sortType: {
type: 'string',
enum: ['priceDesc', 'priceAsc', 'ratingDesc', 'default', 'sales'],
description: 'The sort type of product list show, e.g. priceDesc',
},
},
required: ['keyword'],
},
},
]最后更新于