@economic/agents 2.10.4 → 2.10.5
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.mjs +4 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1981,10 +1981,12 @@ var Assistant = class extends Agent$1 {
|
|
|
1981
1981
|
//#endregion
|
|
1982
1982
|
//#region src/server/features/messages.ts
|
|
1983
1983
|
const COMPACTION_TOKEN_THRESHOLD = 1e5;
|
|
1984
|
+
const COMPACTION_MAX_OUTPUT_TOKENS = 2e3;
|
|
1984
1985
|
const createCompactFn = (model) => createCompactFunction({ summarize: (prompt) => generateText({
|
|
1985
1986
|
model,
|
|
1986
|
-
prompt
|
|
1987
|
-
|
|
1987
|
+
prompt,
|
|
1988
|
+
maxOutputTokens: COMPACTION_MAX_OUTPUT_TOKENS
|
|
1989
|
+
}).then((result) => result.text) });
|
|
1988
1990
|
/**
|
|
1989
1991
|
* Ensures that the feedback table exists.
|
|
1990
1992
|
* @param sql - The SQL function to use to execute the query.
|