feat(rag): align LightRAG native citations and MCP bridge
This commit is contained in:
@@ -137,10 +137,10 @@ async function main() {
|
||||
const currentRunId = route.request().url().split("/").pop() || runId;
|
||||
captured.push({ kind: "events", method: route.request().method(), body: "" });
|
||||
const evidenceEvents = Array.from({ length: 24 }, (_, index) => {
|
||||
const callId = `call_smoke_evidence_${index}`;
|
||||
const callId = `call_smoke_knowledge_rag_${index}`;
|
||||
return (
|
||||
`data: ${JSON.stringify({ event: "tool.started", run_id: currentRunId, session_id: sessionId, toolCallId: callId, name: "mnote.evidence.search", args: { query: `evidence ${index}` } })}\n\n` +
|
||||
`data: ${JSON.stringify({ event: "tool.completed", run_id: currentRunId, session_id: sessionId, toolCallId: callId, name: "mnote.evidence.search", summary: `证据 ${index}`, auditId: `audit_smoke_evidence_${index}` })}\n\n`
|
||||
`data: ${JSON.stringify({ event: "tool.started", run_id: currentRunId, session_id: sessionId, toolCallId: callId, name: "mnote.knowledge_rag.query", args: { query: `evidence ${index}` } })}\n\n` +
|
||||
`data: ${JSON.stringify({ event: "tool.completed", run_id: currentRunId, session_id: sessionId, toolCallId: callId, name: "mnote.knowledge_rag.query", summary: `资料库 ${index}`, auditId: `audit_smoke_knowledge_rag_${index}` })}\n\n`
|
||||
);
|
||||
}).join("");
|
||||
if (runRequestCount > 1) {
|
||||
|
||||
Reference in New Issue
Block a user