FuncPhenomenon commited on
Commit
8490a0f
·
verified ·
1 Parent(s): cfaef10

changed function return to str

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -6,10 +6,9 @@ import yaml
6
  from tools.final_answer import FinalAnswerTool
7
  from Gradio_UI import GradioUI
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.
 
6
  from tools.final_answer import FinalAnswerTool
7
  from Gradio_UI import GradioUI
8
  from xml.etree import ElementTree
 
9
 
10
+ @tool
11
+ def get_lastest_filing_info(company: str = None, cik: str = None, type: str = "10-K", dateb: str = None, start: str = '0', count: str = '50') -> str:
12
  """A tool that gets the most recent 10-K filings of a company from the SEC.
13
  Args:
14
  company: The name of the company.