greatmengqi
23b424e7fc
refactor(config): thread AppConfig through lead agent construction
...
Phase 2 Task P2-4 (Category B): make_lead_agent, _build_middlewares,
_resolve_model_name, _create_summarization_middleware, and
build_lead_runtime_middlewares all accept AppConfig as an explicit
parameter instead of looking up the process-global.
Each entry point has an optional app_config parameter that falls back to
AppConfig.current() for backward compatibility with the LangGraph Server
registration path (which can only pass RunnableConfig). New callers —
DeerFlowClient, Gateway worker — pass self._app_config / app.state.config
explicitly.
prompt.py's apply_prompt_template helpers still read via AppConfig.current()
in defensive try/except; they are tightened in P2-10 where the fallback is
removed wholesale.
Test updates: _resolve_model_name and _create_summarization_middleware
signature changes propagate to unit tests. _build_middlewares mocks gain
the leading app_config parameter.
All 233 targeted tests pass (lead_agent_prompt, lead_agent_model_resolution,
lead_agent_skills, guardrail_middleware, client, client_e2e, multi_isolation).
2026-04-17 00:26:33 +08:00
..
2026-04-12 11:08:31 +08:00
2026-04-16 13:30:10 +08:00
2026-04-15 21:28:15 +08:00
2026-04-01 11:42:12 +08:00
2026-04-12 20:04:32 +08:00
2026-04-02 15:39:41 +08:00
2026-04-15 21:28:15 +08:00
2026-04-11 11:25:38 +08:00
2026-04-11 11:25:38 +08:00
2026-04-11 11:25:38 +08:00
2026-04-11 11:25:38 +08:00
2026-04-11 11:25:38 +08:00
2026-04-11 11:25:38 +08:00
2026-04-12 20:04:32 +08:00
2026-04-06 22:14:12 +08:00
2026-04-15 21:28:15 +08:00
2026-04-15 21:28:15 +08:00
2026-04-08 21:04:20 +08:00
2026-03-30 07:41:18 +08:00
2026-04-07 18:21:22 +08:00
2026-04-15 21:54:52 +08:00
2026-03-29 21:03:58 +08:00
2026-04-16 23:57:11 +08:00
2026-04-16 23:57:11 +08:00
2026-04-09 16:07:16 +08:00
2026-04-15 21:28:15 +08:00
2026-03-14 22:55:52 +08:00
2026-04-11 11:23:39 +08:00
2026-03-29 15:31:18 +08:00
2026-04-06 16:47:19 +08:00
2026-03-22 22:39:50 +08:00
2026-04-15 21:28:15 +08:00
2026-03-26 00:20:08 +08:00
2026-04-15 21:28:15 +08:00
2026-03-31 22:19:27 +08:00
2026-04-10 17:43:39 +08:00
2026-04-12 12:05:38 +08:00
2026-04-15 21:28:15 +08:00
2026-04-12 11:08:31 +08:00
2026-04-06 22:14:12 +08:00
2026-04-04 14:25:08 +08:00
2026-04-15 21:28:15 +08:00
2026-04-16 22:19:23 +08:00
2026-04-01 23:21:32 +08:00
2026-04-15 21:28:15 +08:00
2026-03-14 22:55:52 +08:00
2026-04-15 21:28:15 +08:00
2026-04-12 12:05:38 +08:00
2026-04-15 21:28:15 +08:00
2026-04-15 21:28:15 +08:00
2026-04-12 11:08:31 +08:00
2026-04-17 00:26:33 +08:00
2026-04-15 21:28:15 +08:00
2026-04-17 00:26:33 +08:00
2026-04-02 10:12:17 +08:00
2026-04-15 21:28:15 +08:00
2026-03-29 21:31:29 +08:00
2026-04-15 21:28:15 +08:00
2026-04-15 21:28:15 +08:00
2026-03-14 22:55:52 +08:00
2026-03-14 22:55:52 +08:00
2026-03-26 14:20:18 +08:00
2026-04-03 11:21:58 +08:00
2026-04-16 11:22:00 +08:00
2026-04-15 21:28:15 +08:00
2026-04-12 20:04:32 +08:00
2026-04-15 21:54:52 +08:00
2026-04-15 21:28:15 +08:00
2026-04-12 11:08:31 +08:00
2026-04-12 20:04:32 +08:00
2026-04-15 21:28:15 +08:00
2026-04-05 16:23:00 +08:00
2026-04-12 20:04:32 +08:00
2026-03-22 20:39:26 +08:00
2026-04-15 21:54:52 +08:00
2026-04-12 11:08:31 +08:00
2026-04-09 16:07:16 +08:00
2026-03-20 17:18:59 +08:00
2026-03-26 15:07:05 +08:00
2026-04-12 20:04:32 +08:00
2026-04-12 11:08:31 +08:00
2026-04-15 21:28:15 +08:00
2026-04-10 20:40:30 +08:00
2026-04-10 20:40:30 +08:00
2026-03-14 22:55:52 +08:00
2026-03-14 22:55:52 +08:00
2026-04-12 20:04:32 +08:00
2026-04-11 11:23:39 +08:00
2026-04-12 11:08:31 +08:00
2026-03-31 22:22:30 +08:00
2026-04-12 11:08:31 +08:00
2026-04-09 17:56:36 +08:00
2026-04-12 20:04:32 +08:00
2026-04-07 17:15:24 +08:00
2026-04-09 17:21:23 +08:00
2026-04-09 17:21:23 +08:00
2026-04-15 21:28:15 +08:00
2026-04-16 12:09:41 +08:00
2026-04-15 21:28:15 +08:00
2026-03-30 16:02:23 +08:00
2026-03-26 14:20:18 +08:00
2026-04-10 17:43:39 +08:00
2026-04-15 21:28:15 +08:00
2026-03-25 16:28:33 +08:00
2026-04-16 22:34:27 +08:00
2026-03-26 17:39:16 +08:00
2026-04-06 22:07:11 +08:00
2026-04-01 23:08:30 +08:00
2026-03-27 20:20:31 +08:00
2026-03-30 16:02:23 +08:00
2026-04-06 14:51:10 +08:00
2026-04-08 11:46:06 +08:00
2026-03-25 10:20:16 +08:00
2026-04-09 16:12:34 +08:00
2026-04-15 21:28:15 +08:00
2026-04-12 11:08:31 +08:00
2026-04-16 12:09:41 +08:00
2026-04-15 21:28:15 +08:00
2026-04-12 11:08:31 +08:00
2026-04-12 20:04:32 +08:00
2026-04-12 20:04:32 +08:00
2026-04-15 21:28:15 +08:00
2026-04-16 13:30:10 +08:00
2026-03-26 00:20:50 +08:00
2026-04-15 21:28:15 +08:00
2026-03-14 22:55:52 +08:00
2026-04-06 15:09:57 +08:00
2026-04-15 21:28:15 +08:00
2026-04-02 13:06:10 +08:00
2026-04-02 13:06:10 +08:00
2026-03-26 17:39:16 +08:00
2026-04-15 21:28:15 +08:00
2026-04-11 11:25:38 +08:00
2026-04-12 20:04:32 +08:00
2026-04-06 15:18:34 +08:00
2026-04-10 20:49:28 +08:00