代码提交
This commit is contained in:
1 parent
250db4de04
commit
1244fb1f2f
14 files changed
+515
-38
No files matched your search
@@ -72,6 +72,7 @@ from app.gateway.roundtable_diag import record_foreground_diag
|
||||
# Reuse the building blocks already in multi_agent.py — keeps both routers
|
||||
# identical in connection handling, payload shape, and error mapping.
|
||||
from app.gateway.routers._roundtable_seed import (
|
||||
EIGHTBF_INTENT_AGENT_ID,
|
||||
POSITION_INTENT_AGENT_ID,
|
||||
ensure_roundtable_functional_agents,
|
||||
)
|
||||
@@ -127,7 +128,11 @@ def _get_intent_turn_store(request: Request):
|
||||
|
||||
# 内置 agent 目录名,须与 ``.deer-flow/agents/roundtable-intent/`` 一致。
|
||||
INTENT_AGENT_ID = "roundtable-intent"
|
||||
_SUPPORTED_INTENT_AGENT_IDS = frozenset({INTENT_AGENT_ID, POSITION_INTENT_AGENT_ID})
|
||||
# 8BF 独立会商页第一步专用的内置意图智能体:提示词与 roundtable-intent 同源,
|
||||
# 但目录独立、可单独调优,不改变通用会商与岗位会商的契约。
|
||||
_SUPPORTED_INTENT_AGENT_IDS = frozenset(
|
||||
{INTENT_AGENT_ID, POSITION_INTENT_AGENT_ID, EIGHTBF_INTENT_AGENT_ID}
|
||||
)
|
||||
|
||||
# SOUL 规定的交接信号:``[INTENT_READY]`` + markdown json 代码块。
|
||||
# group(1) 解析为 IntentSummary;解析失败则继续走澄清/asking 分支。
|
||||
@@ -143,7 +148,9 @@ def _requested_intent_agent_id(payload: dict[str, Any]) -> str:
|
||||
|
||||
Existing multi-agent callers omit the field and therefore keep using
|
||||
``roundtable-intent``. Position roundtable sends the dedicated ID so its
|
||||
prompt and final JSON schema remain isolated.
|
||||
prompt and final JSON schema remain isolated. The 8BF roundtable page
|
||||
sends ``eightbf-roundtable-intent`` so its Step-1 prompt can be tuned
|
||||
independently while keeping the generic hand-off schema.
|
||||
"""
|
||||
requested = str(payload.get("intent_agent_id") or "").strip()
|
||||
if not requested:
|
||||
|
||||
Reference in new issue
Block a user