ofermend commited on
Commit
76785fc
1 Parent(s): b877458

updated FMP error msg with status code

Browse files
Files changed (1) hide show
  1. agent.py +1 -1
agent.py CHANGED
@@ -69,7 +69,7 @@ def create_assistant_tools(cfg):
69
  values_dict = income_statement_specific_year.to_dict(orient="records")[0]
70
  return f"Financial results: {', '.join([f'{key}: {value}' for key, value in values_dict.items() if key not in ['date', 'cik', 'link', 'finalLink']])}"
71
 
72
- return "FMP API returned error. This tool does not work."
73
 
74
  class QueryTranscriptsArgs(BaseModel):
75
  query: str = Field(..., description="The user query.")
 
69
  values_dict = income_statement_specific_year.to_dict(orient="records")[0]
70
  return f"Financial results: {', '.join([f'{key}: {value}' for key, value in values_dict.items() if key not in ['date', 'cik', 'link', 'finalLink']])}"
71
 
72
+ return f"FMP API returned error {response.status_code}. This tool does not work."
73
 
74
  class QueryTranscriptsArgs(BaseModel):
75
  query: str = Field(..., description="The user query.")