@illuma-ai/agents 1.3.2 → 1.3.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/dist/cjs/graphs/Graph.cjs +0 -18
- package/dist/cjs/graphs/Graph.cjs.map +1 -1
- package/dist/cjs/tools/CodeExecutor.cjs +7 -3
- package/dist/cjs/tools/CodeExecutor.cjs.map +1 -1
- package/dist/esm/graphs/Graph.mjs +0 -18
- package/dist/esm/graphs/Graph.mjs.map +1 -1
- package/dist/esm/tools/CodeExecutor.mjs +7 -3
- package/dist/esm/tools/CodeExecutor.mjs.map +1 -1
- package/dist/types/tools/CodeExecutor.d.ts +10 -2
- package/package.json +2 -1
- package/src/graphs/Graph.ts +0 -23
- package/src/tools/CodeExecutor.ts +8 -3
|
@@ -1062,11 +1062,6 @@ class StandardGraph extends Graph {
|
|
|
1062
1062
|
provider: agentContext.provider,
|
|
1063
1063
|
clientOptions: effectiveClientOptions,
|
|
1064
1064
|
});
|
|
1065
|
-
// DEBUG: Log which model and tools each agent uses during handoff
|
|
1066
|
-
logging.mlog(`[createCallModel] Agent "${agentId}" invoking LLM | provider=${agentContext.provider} | ` +
|
|
1067
|
-
`model=${effectiveClientOptions.model ?? 'default'} | ` +
|
|
1068
|
-
`toolsForBinding=${toolsForBinding?.length ?? 0} | ` +
|
|
1069
|
-
`toolNames=[${(toolsForBinding ?? []).map((t) => t.name ?? 'unknown').join(', ')}]`);
|
|
1070
1065
|
if (agentContext.systemRunnable) {
|
|
1071
1066
|
model = agentContext.systemRunnable.pipe(model);
|
|
1072
1067
|
}
|
|
@@ -1191,25 +1186,18 @@ class StandardGraph extends Graph {
|
|
|
1191
1186
|
const maxTokens = agentContext.maxContextTokens ?? 0;
|
|
1192
1187
|
// Step 1: Resolve best available summary
|
|
1193
1188
|
let summary;
|
|
1194
|
-
let summarySource;
|
|
1195
1189
|
if (this._cachedRunSummary != null) {
|
|
1196
1190
|
summary = this._cachedRunSummary;
|
|
1197
|
-
summarySource = 'cached';
|
|
1198
1191
|
}
|
|
1199
1192
|
else if (agentContext.persistedSummary != null &&
|
|
1200
1193
|
agentContext.persistedSummary !== '') {
|
|
1201
1194
|
summary = agentContext.persistedSummary;
|
|
1202
1195
|
this._cachedRunSummary = summary;
|
|
1203
|
-
summarySource = 'persisted';
|
|
1204
1196
|
}
|
|
1205
1197
|
else if (sumConfig?.initialSummary != null &&
|
|
1206
1198
|
sumConfig.initialSummary !== '') {
|
|
1207
1199
|
summary = sumConfig.initialSummary;
|
|
1208
1200
|
this._cachedRunSummary = summary;
|
|
1209
|
-
summarySource = 'initial-seed';
|
|
1210
|
-
}
|
|
1211
|
-
else {
|
|
1212
|
-
summarySource = 'none';
|
|
1213
1201
|
}
|
|
1214
1202
|
// Step 2: Calculate token budget
|
|
1215
1203
|
// Apply EMA calibration for accuracy across iterations
|
|
@@ -1332,12 +1320,6 @@ class StandardGraph extends Graph {
|
|
|
1332
1320
|
viewIdx++;
|
|
1333
1321
|
}
|
|
1334
1322
|
agentContext.indexTokenCountMap = viewTokenMap;
|
|
1335
|
-
logging.mlog(`[Graph:Compaction] ${messages$1.length}→${viewParts.length} msgs | ` +
|
|
1336
|
-
`compacted=${compactedMessages.length} window=${recentMessages.length} | ` +
|
|
1337
|
-
`summary=${summarySource} | budget=${usedTokens}/${recentBudget}` +
|
|
1338
|
-
(fileManifestTokens > 0
|
|
1339
|
-
? ` | manifest=${fileManifest$1?.length ?? 0} files (${fileManifestTokens}tok)`
|
|
1340
|
-
: ''));
|
|
1341
1323
|
// Step 5: Fire background summary update (non-blocking)
|
|
1342
1324
|
// Summarize messages outside the window so next iteration has a fresh summary.
|
|
1343
1325
|
// Only trigger if there are compacted messages worth summarizing.
|