@superatomai/sdk-node 0.0.9-mds → 0.0.10-mds
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/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7247,9 +7247,11 @@ var MainAgent = class {
|
|
|
7247
7247
|
*/
|
|
7248
7248
|
async buildSystemPrompt(summaries, conversationHistory) {
|
|
7249
7249
|
const summariesText = formatSummariesForPrompt(summaries);
|
|
7250
|
+
const maxSourceCalls = Math.max(2, this.config.maxIterations - 2);
|
|
7250
7251
|
const prompts = await promptLoader.loadPrompts("agent-main", {
|
|
7251
7252
|
SOURCE_SUMMARIES: summariesText,
|
|
7252
7253
|
MAX_ROWS: String(this.config.maxRowsPerSource),
|
|
7254
|
+
MAX_SOURCE_CALLS: String(maxSourceCalls),
|
|
7253
7255
|
GLOBAL_KNOWLEDGE_BASE: this.config.globalKnowledgeBase || "No global knowledge base available.",
|
|
7254
7256
|
CURRENT_DATETIME: getCurrentDateTimeForPrompt(),
|
|
7255
7257
|
KNOWLEDGE_BASE_CONTEXT: this.config.knowledgeBaseContext || "No additional knowledge base context available.",
|