File size: 1,174 Bytes
0d14a90 b166a40 |
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 |
class Tools:
def fetch_tools():
data = [
{
"name": "Google Search",
"description": "A tool to perform Google searches and retrieve results.",
"type": "search",
"url": "/api/v1/tools/google-search",
"method": "GET",
"payload": {
"query": "string",
"num_results": 5,
"api_key": "string",
},
"response": {
"results": [
{
"title": "string",
"url": "string",
"description": "string",
'link': 'string',
'page_text': 'string'
}
],
"images": [
{
"src": "string",
"alt": "string",
"class": ["string"]
}
]
}
}
]
return data
|