Spaces:
Sleeping
Sleeping
tool output type specified
Browse files
app.py
CHANGED
|
@@ -8,9 +8,9 @@ from Gradio_UI import GradioUI
|
|
| 8 |
from xml.etree import ElementTree
|
| 9 |
from typing import Union, List, Dict, Any
|
| 10 |
|
| 11 |
-
@tool
|
| 12 |
def get_lastest_filing_info(company: str = None, cik: str = None, type: str = "10-K", dateb: str = None, start: str = '0', count: str = '50') -> Union[List[Dict[str, Any]], Dict[str, str]]:
|
| 13 |
-
"""A tool that gets the most recent 10-K filings
|
| 14 |
Args:
|
| 15 |
company: The name of the company.
|
| 16 |
cik: The Central Index Key (CIK) of the company.
|
|
|
|
| 8 |
from xml.etree import ElementTree
|
| 9 |
from typing import Union, List, Dict, Any
|
| 10 |
|
| 11 |
+
@tool(output_type="json")
|
| 12 |
def get_lastest_filing_info(company: str = None, cik: str = None, type: str = "10-K", dateb: str = None, start: str = '0', count: str = '50') -> Union[List[Dict[str, Any]], Dict[str, str]]:
|
| 13 |
+
"""A tool that gets the most recent 10-K filings of a company from the SEC.
|
| 14 |
Args:
|
| 15 |
company: The name of the company.
|
| 16 |
cik: The Central Index Key (CIK) of the company.
|