available_tool_example.json 2.28 KB
Newer Older
chenzk's avatar
v1.0  
chenzk committed
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
    "available_tools": [
        {
          "function": {
            "description": "",
            "name": "searchPOI",
            "parameters": {
              "$schema": "http://json-schema.org/draft-07/schema#",
              "additionalProperties": false,
              "properties": {
                "city": {
                  "description": "搜索的城市名称",
                  "type": "string"
                },
                "extensions": {
                  "description": "返回结果控制,base返回基本信息,all返回详细信息",
                  "enum": [
                    "base",
                    "all"
                  ],
                  "type": "string"
                },
                "keywords": {
                  "description": "要搜索的关键词",
                  "type": "string"
                },
                "offset": {
                  "description": "每页记录数,默认为20",
                  "type": "number"
                },
                "page": {
                  "description": "页码,默认为1",
                  "type": "number"
                },
                "types": {
                  "description": "POI类型",
                  "type": "string"
                }
              },
              "required": [
                "keywords"
              ],
              "type": "object"
            }
          },
          "type": "function"
        },
        {
          "function": {
            "description": "",
            "name": "getWeather",
            "parameters": {
              "$schema": "http://json-schema.org/draft-07/schema#",
              "additionalProperties": false,
              "properties": {
                "city": {
                  "description": "城市编码",
                  "type": "string"
                },
                "extensions": {
                  "description": "气象类型:base(实况天气)、all(预报天气)",
                  "enum": [
                    "base",
                    "all"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "city"
              ],
              "type": "object"
            }
          },
          "type": "function"
        }
      ]
}