File size: 7,805 Bytes
b00cd10
 
 
 
 
 
 
 
 
 
 
dc1621b
b00cd10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0167b87
 
b00cd10
 
 
0167b87
b00cd10
0167b87
 
 
 
 
b00cd10
 
 
0167b87
b00cd10
 
 
6078833
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dc1621b
6078833
 
 
 
 
dc1621b
6078833
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ddf8386
6078833
 
 
 
 
 
 
 
 
 
 
 
0167b87
6078833
 
 
 
 
 
 
 
0167b87
 
 
6078833
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ddf8386
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dc1621b
 
ddf8386
 
 
 
 
dc1621b
ddf8386
 
 
 
 
 
 
b00cd10
 
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
[
    {
        "type": "function",
        "function": {
            "name": "web_search",
            "description": "Performs a web search based on the query and returns the top search results.",
            "parameters": {
                "type": "object",
                "properties": {
                    "query": {
                        "type": "string",
                        "description": "The search query to perform (Warning: have to be concise and precise)."
                    },
                    "max_results": {
                        "type": "integer",
                        "description": "The maximum number of results to return. Defaults to 10."
                    },
                    "timeout": {
                        "type": "integer",
                        "description": "Timeout for the search request in seconds. Defaults to 10."
                    }
                },
                "required": [
                    "query"
                ]
            }
        }
    },
    {
        "type": "function",
        "function": {
            "name": "visit_webpage",
            "description": "Visits a webpage at the given URL and reads its content as a markdown string.",
            "parameters": {
                "type": "object",
                "properties": {
                    "url": {
                        "type": "string",
                        "description": "The URL of the webpage to visit."
                    }
                },
                "required": [
                    "url"
                ]
            }
        }
    },
    {
        "type": "function",
        "function": {
            "name": "retrieve_knowledge",
            "description": "Retrieves knowledge from a database with a provided query.",
            "parameters": {
                "type": "object",
                "properties": {
                    "query": {
                        "type": "string",
                        "description": "The query to search for in the vector store."
                    },
                    "n_results": {
                        "type": "integer",
                        "description": "The number of results to return. Default is 1."
                    }
                },
                "required": [
                    "query"
                ]
            }
        }
    },
    {
        "type": "function",
        "function": {
            "name": "reverse_text",
            "description": "Reverses an input string to make it readable.",
            "parameters": {
                "type": "object",
                "properties": {
                    "input_text": {
                        "type": "string",
                        "description": "The reversed text string to process."
                    }
                },
                "required": [
                    "input_text"
                ]
            }
        }
    },
    {
        "type": "function",
        "function": {
            "name": "analyze_chess",
            "description": "Analyzes a chess position from an image and return the game situation in FEN format.",
            "parameters": {
                "type": "object",
                "properties": {
                    "image_path": {
                        "type": "string",
                        "description": "The path to the image file containing the chess game."
                    }
                },
                "required": [
                    "image_path"
                ]
            }
        }
    },
    {
        "type": "function",
        "function": {
            "name": "classify_foods",
            "description": "Classifies a list of foods into specific botanical categories.",
            "parameters": {
                "type": "object",
                "properties": {
                    "food_list": {
                        "type": "array",
                        "description": "A list of foods to classify."
                    }
                },
                "required": [
                    "food_list"
                ]
            }
        }
    },
    {
        "type": "function",
        "function": {
            "name": "transcribe_audio",
            "description": "Transcribes the content of an audio file into text.",
            "parameters": {
                "type": "object",
                "properties": {
                    "file_path": {
                        "type": "string",
                        "description": "The path to the audio file to transcribe."
                    },
                    "language": {
                        "type": "string",
                        "description": "The language of the audio content. If None, the language will be detected automatically. Defaults to None."
                    }
                },
                "required": [
                    "file_path"
                ]
            }
        }
    },
    {
        "type": "function",
        "function": {
            "name": "execute_code",
            "description": "Executes Python code from a file and returns the final result.",
            "parameters": {
                "type": "object",
                "properties": {
                    "file_path": {
                        "type": "string",
                        "description": "The path to the file containing the Python code to execute."
                    }
                },
                "required": [
                    "file_path"
                ]
            }
        }
    },
    {
        "type": "function",
        "function": {
            "name": "analyze_excel",
            "description": "Analyzes data from an Excel file to extract specific information.",
            "parameters": {
                "type": "object",
                "properties": {
                    "file_path": {
                        "type": "string",
                        "description": "The path to the Excel file to analyze."
                    },
                    "sheet_name": {
                        "type": "string",
                        "description": "The name of the sheet to read. If None, the first sheet is used."
                    },
                    "specific_columns": {
                        "type": "array",
                        "description": "A list of column names to extract. If None, all columns are extracted."
                    }
                },
                "required": [
                    "file_path"
                ]
            }
        }
    },
    {
        "type": "function",
        "function": {
            "name": "analyze_youtube_video",
            "description": "Analyse the text description and the visual content of a Youtube video.",
            "parameters": {
                "type": "object",
                "properties": {
                    "video_url": {
                        "type": "string",
                        "description": "The URL of the YouTube video to analyze."
                    }
                },
                "required": [
                    "video_url"
                ]
            }
        }
    },
    {
        "type": "function",
        "function": {
            "name": "calculate_sum",
            "description": "Calculates the sum of a list of numbers.",
            "parameters": {
                "type": "object",
                "properties": {
                    "numbers": {
                        "type": "array",
                        "description": "A list of numbers to be summed from the question."
                    }
                },
                "required": [
                    "numbers"
                ]
            }
        }
    }
]