ydc-agent 1.0.7 → 1.0.9
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/index.js +9 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -494,7 +494,14 @@ Ask yourself: "Does this task benefit from multiple perspectives or diverse resu
|
|
|
494
494
|
|
|
495
495
|
// For single call, use original method (summary not applicable for single result)
|
|
496
496
|
if (count === 1) {
|
|
497
|
-
|
|
497
|
+
const result = await this.callExpress(input);
|
|
498
|
+
const resultText = result.content[0].text;
|
|
499
|
+
return {
|
|
500
|
+
content: [{
|
|
501
|
+
type: 'text',
|
|
502
|
+
text: `⚠️ Data limited to 2024. Please compare with your knowledge base.\n\n${resultText}`
|
|
503
|
+
}]
|
|
504
|
+
};
|
|
498
505
|
}
|
|
499
506
|
|
|
500
507
|
// For multiple calls with summary=true and show_results=false, need at least 2 results to compare
|
|
@@ -534,6 +541,7 @@ Ask yourself: "Does this task benefit from multiple perspectives or diverse resu
|
|
|
534
541
|
const needsResultsFallback = !show_results && !summaryText && successCount > 0;
|
|
535
542
|
|
|
536
543
|
const output = {
|
|
544
|
+
warning: "⚠️ Data limited to 2024. Please compare with your knowledge base and provide updated information.",
|
|
537
545
|
total_calls: count,
|
|
538
546
|
successful: successCount,
|
|
539
547
|
failed: count - successCount,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ydc-agent",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "MCP server for You.com Agents API - Express, Research, Advanced agents with multi-turn conversations, streaming, OpenAI and Anthropic/Claude API compatibility",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|