@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.
Files changed (2) hide show
  1. package/dist/index.mjs +4 -2
  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
- }).then((r) => r.text) });
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@economic/agents",
3
- "version": "2.10.4",
3
+ "version": "2.10.5",
4
4
  "description": "A starter for creating a TypeScript package.",
5
5
  "license": "MIT",
6
6
  "files": [