Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
community: Fix YahooFinanceNewsTool to handle updated yfinance data s…
…tructure (#29498) *Description:** Updates the YahooFinanceNewsTool to handle the current yfinance news data structure. The tool was failing with a KeyError due to changes in the yfinance API's response format. This PR updates the code to correctly extract news URLs from the new structure. **Issue:** #29495 **Dependencies:** No new dependencies required. Works with existing yfinance package. The changes maintain backwards compatibility while fixing the KeyError that users were experiencing. The modified code properly handles the new data structure where: - News type is now at `content.contentType` - News URL is now at `content.canonicalUrl.url` --------- Co-authored-by: Chester Curme <[email protected]>
- Loading branch information