Address code review: add debug logging for unknown method resolution

Co-authored-by: aguzererler <6199053+aguzererler@users.noreply.github.com>
Agent-Logs-Url: https://github.com/aguzererler/TradingAgents/sessions/bb80e772-3e03-420e-bb0e-76cfdde14a04
This commit is contained in:
copilot-swe-agent[bot] 2026-03-21 17:27:38 +00:00
parent 92ebc13ce4
commit c4a7108a76
1 changed files with 6 additions and 0 deletions

View File

@ -106,6 +106,12 @@ def _resolve_vendor(config: dict, method: str) -> str:
try:
category = get_category_for_method(method)
except ValueError:
# Method not in any category — may be a new/unknown method.
# Return "unknown" so estimation can continue gracefully.
import logging
logging.getLogger(__name__).debug(
"Method %r not found in TOOLS_CATEGORIES — skipping vendor resolution", method
)
return "unknown"
return config.get("data_vendors", {}).get(category, "yfinance")