forked from HKUDS/AutoAgent
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprocess_tool_docs.py
More file actions
Latest commit
20 lines (14 loc) · 784 Bytes
/
Copy pathprocess_tool_docs.py
File metadata and controls
20 lines (14 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
frompandasimportread_csv
importjson
fromrichimportprint
df=read_csv("tool_docs.csv")
rapidapi_tools=df[df['Platform'] =='RapidAPI']['Tool_Name'].unique()
print("[bold blue]Current RapidAPI tools:[/bold blue]")
print(json.dumps(rapidapi_tools.tolist(), indent=4))
print("[bold red][IMPORTANT][/bold red] [bold yellow]If you want to use these tools, you should go to RapidAPI and subscribe to them. More convenient tool platforms such as Composio are under development.[/bold yellow]")
your_api_key=input("Please input your RapidAPI API key:")
forcolumnindf.columns:
ifdf[column].dtype=='object':
df[column] =df[column].str.replace('YOUR_RAPID_API_KEY', your_api_key)
df.to_csv('tool_docs.csv', index=False)
print("[bold green]Done![/bold green]")