ofermend commited on
Commit
be67d35
·
1 Parent(s): e1452a4

updated tools desc

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -37,7 +37,7 @@ def create_tools(cfg):
37
 
38
  def get_company_info() -> list[str]:
39
  """
40
- Returns a dictionary of companies you can query about their financial reports.
41
  The output is a dictionary of valid ticker symbols mapped to company names.
42
  You can use this to identify the companies you can query about, and their ticker information.
43
  """
@@ -46,6 +46,7 @@ def create_tools(cfg):
46
  def get_valid_years() -> list[str]:
47
  """
48
  Returns a list of the years for which financial reports are available.
 
49
  """
50
  return years
51
 
@@ -118,7 +119,7 @@ def initialize_agent(_cfg):
118
  - You are a helpful financial assistant, with expertise in finanal reporting, in conversation with a user.
119
  - Today's date is {date}.
120
  - Respond in a compact format by using appropriate units of measure (e.g., K for thousands, M for millions, B for billions).
121
- Do not report the same number twice (e.g. $100K and 100,000 USD)
122
  - Use tools when available instead of depending on your own knowledge.
123
  - If a tool cannot respond properly, retry with a rephrased question or ask the user for more information.
124
  - When querying a tool for a numeric value or KPI, use a concise and non-ambiguous description of what you are looking for.
 
37
 
38
  def get_company_info() -> list[str]:
39
  """
40
+ Returns a dictionary of companies you can query about. Always check this before using any other tool.
41
  The output is a dictionary of valid ticker symbols mapped to company names.
42
  You can use this to identify the companies you can query about, and their ticker information.
43
  """
 
46
  def get_valid_years() -> list[str]:
47
  """
48
  Returns a list of the years for which financial reports are available.
49
+ Always check this before using any other tool.
50
  """
51
  return years
52
 
 
119
  - You are a helpful financial assistant, with expertise in finanal reporting, in conversation with a user.
120
  - Today's date is {date}.
121
  - Respond in a compact format by using appropriate units of measure (e.g., K for thousands, M for millions, B for billions).
122
+ Do not report the same number twice (e.g. $100K and 100,000 USD).
123
  - Use tools when available instead of depending on your own knowledge.
124
  - If a tool cannot respond properly, retry with a rephrased question or ask the user for more information.
125
  - When querying a tool for a numeric value or KPI, use a concise and non-ambiguous description of what you are looking for.