@dudousxd/nestjs-agent-core 0.15.3 → 0.15.4
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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1347,7 +1347,7 @@ async function offerMemories({ config, ctx, query }) {
|
|
|
1347
1347
|
const scopes = await (config.scopes ?? defaultScopeResolver).resolve(ctx);
|
|
1348
1348
|
const maxMemories = config.maxMemories ?? DEFAULT_MAX_MEMORIES;
|
|
1349
1349
|
const trimmed = query?.trim() ?? "";
|
|
1350
|
-
const search = trimmed.length > 0 ? config.provider.search : void 0;
|
|
1350
|
+
const search = trimmed.length > 0 ? config.provider.search?.bind(config.provider) : void 0;
|
|
1351
1351
|
const records = search !== void 0 ? await search({
|
|
1352
1352
|
scopes,
|
|
1353
1353
|
query: trimmed,
|
|
@@ -1528,7 +1528,7 @@ function memoryForgetVerdict({ record, actor }) {
|
|
|
1528
1528
|
}
|
|
1529
1529
|
__name(memoryForgetVerdict, "memoryForgetVerdict");
|
|
1530
1530
|
async function writeMemory({ config, digest, call, ctx, runId }) {
|
|
1531
|
-
const write = config.provider.write;
|
|
1531
|
+
const write = config.provider.write?.bind(config.provider);
|
|
1532
1532
|
if (write === void 0) {
|
|
1533
1533
|
return {
|
|
1534
1534
|
ok: false,
|