api / tools /fetch.py
chipling's picture
Upload 38 files
b166a40 verified
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