greatmengqi 6e3350e315 refactor(config): thread app_config through create_chat_model and get_available_tools
Phase 2 P2-7 (partial, Categories E+F): the two highest-traffic factory
functions accept optional app_config kw-only parameter. When make_lead_agent
is called with explicit app_config (client / Gateway path), config flows
through to the model factory and tool registration without the functions
consulting AppConfig.current().

Fallback path (app_config=None → AppConfig.current()) preserved so LangGraph
Server registration and legacy tests keep working. Remaining community tool
factories, memory subsystem, skills/sandbox helpers are similar mechanical
migrations but were out of scope for this sitting.
2026-04-17 00:35:55 +08:00
..