"text":"To check the weather in Miami, I will use the browser tool to search for 'Miami weather'.",
"reasoning":"The browser tool allows me to search the web, so I can look up the current weather conditions in Miami.",
"plan":"Use the browser tool to search Google for 'Miami weather'. Parse the result to get the current temperature, conditions, etc. and format that into a readable weather report."
},
"command":{
"name":"browser",
"args":{
"query":"Miami weather"
}
}
}
```
"""
tool_usage_terminal="""
```json
{
"thoughts":{
"text":"To check the weather in Miami, I will use the browser tool to search for 'Miami weather'.",
"reasoning":"The browser tool allows me to search the web, so I can look up the current weather conditions in Miami.",
"plan":"Use the browser tool to search Google for 'Miami weather'. Parse the result to get the current temperature, conditions, etc. and format that into a readable weather report."
},
"command":{
"name":"terminal",
"args":{
"code":"uptime"
}
}
}
```
"""
browser_and_terminal_tool="""
```
{
"thoughts":{
"text":"To analyze the latest stock market trends, I need to fetch current stock data and then process it using a script.",
"reasoning":"Using the browser tool to retrieve stock data ensures I have the most recent information. Following this, the terminal tool can run a script that analyzes this data to identify trends.",
"plan":"First, use the browser to get the latest stock prices. Then, use the terminal to execute a data analysis script on the fetched data."
},
"commands":[
{
"name":"browser",
"args":{
"query":"download latest stock data for NASDAQ"
}
},
{
"name":"terminal",
"args":{
"cmd":"python analyze_stocks.py"
}
}
]
}
```
"""
browser_and_terminal_tool_two="""
```
{
"thoughts":{
"text":"To prepare a monthly budget report, I need current expenditure data, process it, and calculate the totals and averages.",
"reasoning":"The browser will fetch the latest expenditure data. The terminal will run a processing script to organize the data, and the calculator will be used to sum up expenses and compute averages.",
"plan":"Download the data using the browser, process it with a terminal command, and then calculate totals and averages using the calculator."
},
"commands":[
{
"name":"browser",
"args":{
"query":"download monthly expenditure data"
}
},
{
"name":"terminal",
"args":{
"cmd":"python process_expenditures.py"
}
},
{
"name":"calculator",
"args":{
"operation":"sum",
"numbers":"[output_from_process_expenditures]"
}
}
]
}
```
"""
# Function to parse tools and get their documentation