@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.mjs
CHANGED
|
@@ -7190,9 +7190,11 @@ var MainAgent = class {
|
|
|
7190
7190
|
*/
|
|
7191
7191
|
async buildSystemPrompt(summaries, conversationHistory) {
|
|
7192
7192
|
const summariesText = formatSummariesForPrompt(summaries);
|
|
7193
|
+
const maxSourceCalls = Math.max(2, this.config.maxIterations - 2);
|
|
7193
7194
|
const prompts = await promptLoader.loadPrompts("agent-main", {
|
|
7194
7195
|
SOURCE_SUMMARIES: summariesText,
|
|
7195
7196
|
MAX_ROWS: String(this.config.maxRowsPerSource),
|
|
7197
|
+
MAX_SOURCE_CALLS: String(maxSourceCalls),
|
|
7196
7198
|
GLOBAL_KNOWLEDGE_BASE: this.config.globalKnowledgeBase || "No global knowledge base available.",
|
|
7197
7199
|
CURRENT_DATETIME: getCurrentDateTimeForPrompt(),
|
|
7198
7200
|
KNOWLEDGE_BASE_CONTEXT: this.config.knowledgeBaseContext || "No additional knowledge base context available.",
|