1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
| package org.ruoyi.common.chat.entity.chat;
|
| import lombok.Builder;
| import lombok.Data;
|
| import java.io.Serializable;
|
| /**
| * 描述:方法参数实体类,实例数据如下
| * <pre>
| * {
| * "name": "get_current_weather",
| * "description": "Get the current weather in a given location",
| * "parameters": {
| * "type": "object",
| * "properties": {
| * "location": {
| * "type": "string",
| * "description": "The city and state, e.g. San Francisco, CA"
| * },
| * "unit": {"type": "string", "enum": ["celsius", "fahrenheit"]}
| * },
| * "required": ["location"]
| * },
| * }
| * </pre>
| * @author https:www.unfbx.com
| * @since 2023-06-14
| */
| @Data
| @Builder
| public class Functions implements Serializable {
| /**
| * 方法名称
| */
| private String name;
| /**
| * 方法描述
| */
| private String description;
| /**
| * 方法参数
| * 扩展参数可以继承Parameters自己实现,json格式的数据
| */
| private Parameters parameters;
| }
|
|