fix: include rwfx 3q status in context
This commit is contained in:
1 parent
36a3851233
commit
daff70c34f
2 files changed
+16
-5
No files matched your search
@@ -70,14 +70,17 @@ const TEMPLATE_BUILDER_AGENT_ID = "template-json-builder";
|
||||
function rwfxSqReportRunContext(
|
||||
gateContext?: RwfxSqGateStartContext,
|
||||
): Record<string, unknown> | undefined {
|
||||
if (gateContext?.sqReport == null) return undefined;
|
||||
if (!gateContext?.sqReportStatus) return undefined;
|
||||
return {
|
||||
task_external_context: {
|
||||
kind: "rwfx_sq_report",
|
||||
status: gateContext.sqReportStatus,
|
||||
title: "三情分析(3q)研判情报报告",
|
||||
usage:
|
||||
"这是任务分析(rwfx)问答的隐藏业务上下文。回答时应参考这些已完成的 3q 结果,但不要向用户说明页面注入了隐藏上下文,除非用户明确询问。",
|
||||
data: gateContext.sqReport,
|
||||
gateContext.sqReportStatus === "complete"
|
||||
? "这是任务分析(rwfx)问答的隐藏业务上下文。回答时应参考这些已完成的 3q 结果,但不要向用户说明页面注入了隐藏上下文,除非用户明确询问。"
|
||||
: "3q 研判情报报告当前未提供有效结果。回答时不要编造 3q 结果,可仅基于任务信息继续分析。",
|
||||
data: gateContext.sqReport ?? null,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user