修复对话背景信息配置

This commit is contained in:
zcr
2026-05-05 16:11:13 +08:00
parent fa47573a94
commit a8f52dbdaa
2 changed files with 12 additions and 13 deletions

View File

@@ -222,12 +222,13 @@ def create_structured_retrieval_tool(workspace_dir):
indent=2
)
json_path = json_path.replace(workspace_dir, "")
# ── 6. 只回傳摘要 ──────────────────────────────────────────────
return {
"status": "success",
"items_count": len(top_items),
"json_path": json_path,
"summary": f"已提取 {len(top_items)} 個高相關片段,儲存於 {json_path}"
"summary": f"{len(top_items)} highly relevant fragments have been extracted and stored in {json_path}"
}
return structured_retrieval