AI4Finance-Foundation / FinRobot

FinRobot: An Open-Source AI Agent Platform for Financial Analysis using LLMs 🚀 🚀 🚀
https://ai4finance.org
Apache License 2.0
1.63k stars 252 forks source link

agent_annual_report.ipynb NOT working! cannot use tools #28

Open PrayChen opened 5 months ago

PrayChen commented 5 months ago

FinRobot/tutorials_advanced/agent_annual_report.ipynb NOT working ! ! the gpt-4-0125-preview output: [Note: This would typically involve using the get_sec_report tool, but as per the instructions, tools are not actually available in this environment.] Since I cannot actually fetch the report or display images here, I'll describe the key elements you would typically find in Microsoft's 2023 10-K report and outline the analysis based on standard financial metrics.

But I can run :

from finrobot.data_source import *
register_keys_from_json("../config_api_keys")
FMPUtils.get_sec_report("MSFT", "2023")

output: FMP api key found successfully. Link: https://www.sec.gov/Archives/edgar/data/789019/000095017023035122/msft-20230630.htm\nFiling Date: 2023-07-27 00:00:00