Spaces:
Running
Running
updated FMP error msg with status code
Browse files
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.")
|