public class FunctionsReq extends Object implements Serializable
"functions": [
{
"name": "getCurrentWeather",
"description": "查询天气",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "城市,比如:上海"
},
"format": {
"type": "string",
"description": "温度单位",
"enum": [
"摄氏度",
"华氏度"
]
}
},
"required": [
"location"
]
}
}
]
Copyright © 2023. All rights reserved.