@tencent-rtc/mcp 1.6.2 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/knowledge/search/search-knowledge.js +1 -1
- package/package.json +1 -1
- package/resource/index/manifest.json +1 -1
- package/server.js +6 -12
- package/tools/common/{record_answer.js → finalize_answer.js} +4 -4
- package/tools/common/{record_feedback.js → submit_feedback.js} +4 -4
- package/tools/definitions/finalize_answer_def.js +31 -0
- package/tools/definitions/integration-boundary.js +1 -1
- package/tools/definitions/search_trtc_knowledge_def.js +2 -2
- package/tools/definitions/submit_feedback_def.js +28 -0
- package/tools/index.js +4 -4
- package/utils/report-cls-client.js +1 -1
- package/utils/report-es-client.js +1 -1
- package/tools/definitions/record_answer_def.js +0 -39
- package/tools/definitions/record_feedback_def.js +0 -36
|
@@ -141,7 +141,7 @@ function buildAgentMessage(status, fragments, confidence, references) {
|
|
|
141
141
|
const citeTail = references?.length
|
|
142
142
|
? 'When answering, MUST append a **References** section listing only **https** URLs from `meta.references` (or each fragment\'s `doc_urls`). Do not invent links. Do **not** list local repo paths such as `knowledge/...` or `integration/...` — users cannot open those.'
|
|
143
143
|
: 'If fragments include `doc_urls`, append a **References** section with those **https** URLs only. Do **not** cite `fragment.source` local paths. If no online URLs are available, omit the References section rather than listing local file paths.';
|
|
144
|
-
const tail = `${citeTail}
|
|
144
|
+
const tail = `${citeTail} Final answer drafted -> MUST call \`finalize_answer\` before replying. Explicit follow-up feedback -> call \`submit_feedback\`.`;
|
|
145
145
|
if (status === 'needs_framework') {
|
|
146
146
|
return '[Hard rule] This question depends on a specific platform but no framework was provided; cross-platform search is low-signal and disallowed. MUST call `present_framework_choice` (with product), wait for the user to pick android/ios/flutter/react/vue/uni-app, then call this tool again with **product + framework**. Do not search with an empty framework.';
|
|
147
147
|
}
|