Spaces:
Runtime error
Runtime error
app.py
CHANGED
|
@@ -35,10 +35,11 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 35 |
|
| 36 |
@tool
|
| 37 |
def get_stock_price(symbol: str) -> float:
|
| 38 |
-
"""
|
| 39 |
-
Args:
|
| 40 |
-
symbol: A string representing
|
| 41 |
"""
|
|
|
|
| 42 |
return None
|
| 43 |
# api_url = 'https://api.api-ninjas.com/v1/stockprice?ticker={}'.format(symbol)
|
| 44 |
# response = requests.get(api_url, headers={'X-Api-Key': 'tLxWjj6xXdYXkyajGKBdKQ==ncmATTD1rqr2s2Hb'})
|
|
|
|
| 35 |
|
| 36 |
@tool
|
| 37 |
def get_stock_price(symbol: str) -> float:
|
| 38 |
+
"""A tool that fetches the current stock price for a specified stock.
|
| 39 |
+
Args:
|
| 40 |
+
symbol: A string representing a valid stock (e.g., 'aapl').
|
| 41 |
"""
|
| 42 |
+
|
| 43 |
return None
|
| 44 |
# api_url = 'https://api.api-ninjas.com/v1/stockprice?ticker={}'.format(symbol)
|
| 45 |
# response = requests.get(api_url, headers={'X-Api-Key': 'tLxWjj6xXdYXkyajGKBdKQ==ncmATTD1rqr2s2Hb'})
|