-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.json
277 lines (277 loc) · 6.52 KB
/
functions.json
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
[
{
"name": "calculator",
"description": "Use calculator",
"parameters": {
"type": "object",
"properties": {
"expression": {
"type": "string",
"description": "Expression"
}
},
"required": [
"expression"
]
}
},
{
"name": "execute_command",
"description": "Execute the shell command.",
"parameters": {
"type": "object",
"properties": {
"command": {
"type": "string",
"description": "The command to execute."
}
},
"required": [
"command"
]
}
},
{
"name": "execute_py_code",
"description": "Execute the python code.",
"parameters": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "Python code to execute, such as `print(\"hello world\")`"
}
},
"required": [
"code"
]
}
},
{
"name": "execute_js_code",
"description": "Execute the javascript code in node.js.",
"parameters": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "Javascript code to execute, such as `console.log(\"hello world\")`"
}
},
"required": [
"code"
]
}
},
{
"name": "fetch_url_via_curl",
"description": "Extract the content from a given URL.",
"parameters": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The URL to scrape."
}
},
"required": [
"url"
]
}
},
{
"name": "fetch_url_via_jina",
"description": "Extract the content from a given URL.",
"parameters": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The URL to scrape."
}
},
"required": [
"url"
]
}
},
{
"name": "fs_cat",
"description": "Read the contents of a file at the specified path.\nUse this when you need to examine the contents of an existing file.",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "The path of the file to read"
}
},
"required": [
"path"
]
}
},
{
"name": "fs_ls",
"description": "List all files and directories at the specified path.",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "The path of the directory to list"
}
},
"required": [
"path"
]
}
},
{
"name": "fs_mkdir",
"description": "Create a new directory at the specified path.",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "The path of the directory to create"
}
},
"required": [
"path"
]
}
},
{
"name": "fs_patch",
"description": "Apply a patch to a file at the specified path.\nThis can be used to edit the file, without having to rewrite the whole file.",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "The path of the file to apply to"
},
"contents": {
"type": "string",
"description": "The patch to apply to the file\n\nHere is an example of a patch block that can be applied to modify the file to request the user's name:\n--- a/hello.py\n+++ b/hello.py\n@@ ... @@\n def hello():\n- print(\"Hello World\")\n+ name = input(\"What is your name? \")\n+ print(f\"Hello {name}\")"
}
},
"required": [
"path",
"contents"
]
}
},
{
"name": "fs_rm",
"description": "Remove the file or directory at the specified path.",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "The path of the file or directory to remove"
}
},
"required": [
"path"
]
}
},
{
"name": "fs_write",
"description": "Write the full file contents to a file at the specified path.",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "The path of the file to write to"
},
"contents": {
"type": "string",
"description": "The full contents to write to the file"
}
},
"required": [
"path",
"contents"
]
}
},
{
"name": "get_current_time",
"description": "Get the current time.",
"parameters": {
"type": "object",
"properties": {},
"required": []
}
},
{
"name": "get_current_weather",
"description": "Get the current weather in a given location.",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The city and optionally the state or country, e.g., \"London\", \"San Francisco, CA\"."
}
},
"required": [
"location"
]
}
},
{
"name": "use_numbat",
"description": "Perform computation",
"parameters": {
"type": "object",
"properties": {
"expression": {
"type": "string",
"description": "Expression"
}
},
"required": [
"expression"
]
}
},
{
"name": "search_wikipedia",
"description": "Search Wikipedia for a query.\nUses it to get detailed information about a public figure, interpretation of a complex scientific concept or in-depth connectivity of a significant historical event,.",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The query to search for."
}
},
"required": [
"query"
]
}
},
{
"name": "web_search_tavily",
"description": "Perform a web search using Tavily API to get up-to-date information or additional context.\nUse this when you need current information or feel a search could provide a better answer.",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The query to search for."
}
},
"required": [
"query"
]
}
}
]