@tangle-network/agent-knowledge 22.0.16 → 22.0.18
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/AGENTS.md +3 -0
- package/CHANGELOG.md +8 -0
- package/dist/benchmarks/index.d.ts +1 -1
- package/dist/benchmarks/index.js +1 -2
- package/dist/{benchmarks-jir3ZP-M.js → benchmarks-BMDc-9V-.js} +3 -4
- package/dist/{benchmarks-jir3ZP-M.js.map → benchmarks-BMDc-9V-.js.map} +1 -1
- package/dist/cli.js +3 -4
- package/dist/{ids-Bevz_pXV.js → ids-C-Z2Uv4c.js} +2 -3
- package/dist/{ids-Bevz_pXV.js.map → ids-C-Z2Uv4c.js.map} +1 -1
- package/dist/{index-BhvSH4E4.d.ts → index-B2s20NlV.d.ts} +3 -25
- package/dist/index-B2s20NlV.d.ts.map +1 -0
- package/dist/{index-OAxtm6is.d.ts → index-CRg_7-ND.d.ts} +2 -4
- package/dist/index-CRg_7-ND.d.ts.map +1 -0
- package/dist/index.d.ts +5 -123
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +45 -84
- package/dist/index.js.map +1 -1
- package/dist/{inspect-rXk5_r3K.js → inspect-tl0P7I7w.js} +33 -63
- package/dist/{inspect-rXk5_r3K.js.map → inspect-tl0P7I7w.js.map} +1 -1
- package/dist/memory/index.d.ts +2 -2
- package/dist/memory/index.js +2 -2
- package/dist/{memory-BH6oT1Qe.js → memory-krApkeRS.js} +15 -27
- package/dist/{memory-BH6oT1Qe.js.map → memory-krApkeRS.js.map} +1 -1
- package/dist/search/index.d.ts +2 -2
- package/dist/search/index.js +1 -2
- package/dist/{search-aZdP2685.js → search-BSGm7yxu.js} +4 -7
- package/dist/{search-aZdP2685.js.map → search-BSGm7yxu.js.map} +1 -1
- package/dist/{search-Dde0PEtY.d.ts → search-SPdjnQUo.d.ts} +2 -6
- package/dist/search-SPdjnQUo.d.ts.map +1 -0
- package/dist/{source-record-CdWvzvO6.js → source-record-9ZPRR1P9.js} +3 -4
- package/dist/{source-record-CdWvzvO6.js.map → source-record-9ZPRR1P9.js.map} +1 -1
- package/dist/{types-BekdNwGD.d.ts → types-1kNPDliG.d.ts} +1 -3
- package/dist/types-1kNPDliG.d.ts.map +1 -0
- package/dist/{types-BWV_Fvp7.d.ts → types-CznsaxVo.d.ts} +2 -4
- package/dist/types-CznsaxVo.d.ts.map +1 -0
- package/dist/viz/index.d.ts +1 -3
- package/dist/viz/index.d.ts.map +1 -1
- package/dist/viz/index.js +1 -2
- package/package.json +14 -14
- package/dist/index-BhvSH4E4.d.ts.map +0 -1
- package/dist/index-OAxtm6is.d.ts.map +0 -1
- package/dist/search-Dde0PEtY.d.ts.map +0 -1
- package/dist/types-BWV_Fvp7.d.ts.map +0 -1
- package/dist/types-BekdNwGD.d.ts.map +0 -1
package/dist/memory/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as AgentMemoryKind, c as AgentMemoryWriteInput, d as RetrievalHoldoutCallContext, f as RetrievalHoldoutConfig, g as RetrievalHoldoutSessionState, h as RetrievalHoldoutResult, i as AgentMemoryHit, l as AgentMemoryWriteResult, m as RetrievalHoldoutEvent, n as AgentMemoryBranchIsolation, o as AgentMemoryScope, p as RetrievalHoldoutEligibleItem, r as AgentMemoryContext, s as AgentMemorySearchOptions, t as AgentMemoryAdapter, u as RetrievalHoldoutBypassReason } from "../types-
|
|
2
|
-
import { $ as AgentMemoryVisibility, A as RetrievalHoldoutSessionSummary, B as HindsightOperationUnknownError, C as createMemoryExecutionPool, D as sleepForMemoryRecovery, E as runBoundedMemoryLifecycle, F as resetRetrievalHoldoutRegistry, G as GraphitiToolNames, H as hindsightMemoryBankId, I as retrievalHoldoutConfigHash, J as AgentMemoryBranch, K as createGraphitiMemoryAdapter, L as toOffPolicyTrajectory, M as applySessionStickyRetrievalHoldout, N as deterministicRng, O as RetrievalHoldoutOffPolicyOptions, P as emitRetrievalHoldoutBypass, Q as AgentMemorySharingPolicy, R as HindsightClientLike, S as DEFAULT_MEMORY_CLEANUP_TIMEOUT_MS, T as resolveMemoryCleanupTimeoutMs, U as GraphitiMcpClientLike, V as createHindsightMemoryAdapter, W as GraphitiMemoryAdapterOptions, X as AgentMemoryBranchSnapshot, Y as AgentMemoryBranchLifetime, Z as AgentMemoryJournalEntry, _ as Mem0OssMemoryAdapterOptions, a as memoryWriteResultToSourceRecord, at as renderMemoryContext, b as AgentMemoryLifecycleTimeoutError, c as AgentMemoryScopeSchema, d as createNeo4jAgentMemoryAdapter, et as CreateAgentMemoryBranchOptions, f as Mem0ClientMode, g as Mem0OssClient, h as Mem0MemoryAdapterOptions, i as memoryHitToSourceRecord, it as defaultGetMemoryContext, j as applyRetrievalHoldout, k as RetrievalHoldoutOffPolicyResult, l as AgentMemoryWriteInputSchema, m as Mem0HostedMemoryAdapterOptions, n as PlayMemoryRetrievalReceipt, nt as createAgentMemoryBranch, o as AgentMemoryHitSchema, p as Mem0HostedClient, q as graphitiMemoryAdapterIdentity, r as createPlayMemoryTools, rt as forkAgentMemoryBranchSnapshot, s as AgentMemoryKindSchema, t as CreatePlayMemoryToolsOptions, tt as ForkAgentMemoryBranchSnapshotOptions, u as Neo4jAgentMemoryAdapterOptions, v as createMem0MemoryAdapter, w as memoryRecoveryDelayMs, x as AgentMemoryLifecycleUnsafeError, y as mem0MemoryAdapterIdentity, z as HindsightMemoryAdapterOptions } from "../index-
|
|
1
|
+
import { a as AgentMemoryKind, c as AgentMemoryWriteInput, d as RetrievalHoldoutCallContext, f as RetrievalHoldoutConfig, g as RetrievalHoldoutSessionState, h as RetrievalHoldoutResult, i as AgentMemoryHit, l as AgentMemoryWriteResult, m as RetrievalHoldoutEvent, n as AgentMemoryBranchIsolation, o as AgentMemoryScope, p as RetrievalHoldoutEligibleItem, r as AgentMemoryContext, s as AgentMemorySearchOptions, t as AgentMemoryAdapter, u as RetrievalHoldoutBypassReason } from "../types-CznsaxVo.js";
|
|
2
|
+
import { $ as AgentMemoryVisibility, A as RetrievalHoldoutSessionSummary, B as HindsightOperationUnknownError, C as createMemoryExecutionPool, D as sleepForMemoryRecovery, E as runBoundedMemoryLifecycle, F as resetRetrievalHoldoutRegistry, G as GraphitiToolNames, H as hindsightMemoryBankId, I as retrievalHoldoutConfigHash, J as AgentMemoryBranch, K as createGraphitiMemoryAdapter, L as toOffPolicyTrajectory, M as applySessionStickyRetrievalHoldout, N as deterministicRng, O as RetrievalHoldoutOffPolicyOptions, P as emitRetrievalHoldoutBypass, Q as AgentMemorySharingPolicy, R as HindsightClientLike, S as DEFAULT_MEMORY_CLEANUP_TIMEOUT_MS, T as resolveMemoryCleanupTimeoutMs, U as GraphitiMcpClientLike, V as createHindsightMemoryAdapter, W as GraphitiMemoryAdapterOptions, X as AgentMemoryBranchSnapshot, Y as AgentMemoryBranchLifetime, Z as AgentMemoryJournalEntry, _ as Mem0OssMemoryAdapterOptions, a as memoryWriteResultToSourceRecord, at as renderMemoryContext, b as AgentMemoryLifecycleTimeoutError, c as AgentMemoryScopeSchema, d as createNeo4jAgentMemoryAdapter, et as CreateAgentMemoryBranchOptions, f as Mem0ClientMode, g as Mem0OssClient, h as Mem0MemoryAdapterOptions, i as memoryHitToSourceRecord, it as defaultGetMemoryContext, j as applyRetrievalHoldout, k as RetrievalHoldoutOffPolicyResult, l as AgentMemoryWriteInputSchema, m as Mem0HostedMemoryAdapterOptions, n as PlayMemoryRetrievalReceipt, nt as createAgentMemoryBranch, o as AgentMemoryHitSchema, p as Mem0HostedClient, q as graphitiMemoryAdapterIdentity, r as createPlayMemoryTools, rt as forkAgentMemoryBranchSnapshot, s as AgentMemoryKindSchema, t as CreatePlayMemoryToolsOptions, tt as ForkAgentMemoryBranchSnapshotOptions, u as Neo4jAgentMemoryAdapterOptions, v as createMem0MemoryAdapter, w as memoryRecoveryDelayMs, x as AgentMemoryLifecycleUnsafeError, y as mem0MemoryAdapterIdentity, z as HindsightMemoryAdapterOptions } from "../index-B2s20NlV.js";
|
|
3
3
|
export { AgentMemoryAdapter, AgentMemoryBranch, AgentMemoryBranchIsolation, AgentMemoryBranchLifetime, AgentMemoryBranchSnapshot, AgentMemoryContext, AgentMemoryHit, AgentMemoryHitSchema, AgentMemoryJournalEntry, AgentMemoryKind, AgentMemoryKindSchema, AgentMemoryLifecycleTimeoutError, AgentMemoryLifecycleUnsafeError, AgentMemoryScope, AgentMemoryScopeSchema, AgentMemorySearchOptions, AgentMemorySharingPolicy, AgentMemoryVisibility, AgentMemoryWriteInput, AgentMemoryWriteInputSchema, AgentMemoryWriteResult, CreateAgentMemoryBranchOptions, CreatePlayMemoryToolsOptions, DEFAULT_MEMORY_CLEANUP_TIMEOUT_MS, ForkAgentMemoryBranchSnapshotOptions, GraphitiMcpClientLike, GraphitiMemoryAdapterOptions, GraphitiToolNames, HindsightClientLike, HindsightMemoryAdapterOptions, HindsightOperationUnknownError, Mem0ClientMode, Mem0HostedClient, Mem0HostedMemoryAdapterOptions, Mem0MemoryAdapterOptions, Mem0OssClient, Mem0OssMemoryAdapterOptions, Neo4jAgentMemoryAdapterOptions, PlayMemoryRetrievalReceipt, RetrievalHoldoutBypassReason, RetrievalHoldoutCallContext, RetrievalHoldoutConfig, RetrievalHoldoutEligibleItem, RetrievalHoldoutEvent, RetrievalHoldoutOffPolicyOptions, RetrievalHoldoutOffPolicyResult, RetrievalHoldoutResult, RetrievalHoldoutSessionState, RetrievalHoldoutSessionSummary, applyRetrievalHoldout, applySessionStickyRetrievalHoldout, createAgentMemoryBranch, createGraphitiMemoryAdapter, createHindsightMemoryAdapter, createMem0MemoryAdapter, createMemoryExecutionPool, createNeo4jAgentMemoryAdapter, createPlayMemoryTools, defaultGetMemoryContext, deterministicRng, emitRetrievalHoldoutBypass, forkAgentMemoryBranchSnapshot, graphitiMemoryAdapterIdentity, hindsightMemoryBankId, mem0MemoryAdapterIdentity, memoryHitToSourceRecord, memoryRecoveryDelayMs, memoryWriteResultToSourceRecord, renderMemoryContext, resetRetrievalHoldoutRegistry, resolveMemoryCleanupTimeoutMs, retrievalHoldoutConfigHash, runBoundedMemoryLifecycle, sleepForMemoryRecovery, toOffPolicyTrajectory };
|
package/dist/memory/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as memoryWriteResultToSourceRecord, t as memoryHitToSourceRecord } from "../source-record-
|
|
2
|
-
import { A as resetRetrievalHoldoutRegistry, C as forkAgentMemoryBranchSnapshot, D as applySessionStickyRetrievalHoldout, E as applyRetrievalHoldout, M as toOffPolicyTrajectory, O as deterministicRng, S as createAgentMemoryBranch, T as renderMemoryContext, _ as resolveMemoryCleanupTimeoutMs, a as HindsightOperationUnknownError, b as createGraphitiMemoryAdapter, c as AgentMemoryHitSchema, d as AgentMemoryWriteInputSchema, f as AgentMemoryLifecycleTimeoutError, g as memoryRecoveryDelayMs, h as createMemoryExecutionPool, i as mem0MemoryAdapterIdentity, j as retrievalHoldoutConfigHash, k as emitRetrievalHoldoutBypass, l as AgentMemoryKindSchema, m as DEFAULT_MEMORY_CLEANUP_TIMEOUT_MS, n as createNeo4jAgentMemoryAdapter, o as createHindsightMemoryAdapter, p as AgentMemoryLifecycleUnsafeError, r as createMem0MemoryAdapter, s as hindsightMemoryBankId, t as createPlayMemoryTools, u as AgentMemoryScopeSchema, v as runBoundedMemoryLifecycle, w as defaultGetMemoryContext, x as graphitiMemoryAdapterIdentity, y as sleepForMemoryRecovery } from "../memory-
|
|
1
|
+
import { n as memoryWriteResultToSourceRecord, t as memoryHitToSourceRecord } from "../source-record-9ZPRR1P9.js";
|
|
2
|
+
import { A as resetRetrievalHoldoutRegistry, C as forkAgentMemoryBranchSnapshot, D as applySessionStickyRetrievalHoldout, E as applyRetrievalHoldout, M as toOffPolicyTrajectory, O as deterministicRng, S as createAgentMemoryBranch, T as renderMemoryContext, _ as resolveMemoryCleanupTimeoutMs, a as HindsightOperationUnknownError, b as createGraphitiMemoryAdapter, c as AgentMemoryHitSchema, d as AgentMemoryWriteInputSchema, f as AgentMemoryLifecycleTimeoutError, g as memoryRecoveryDelayMs, h as createMemoryExecutionPool, i as mem0MemoryAdapterIdentity, j as retrievalHoldoutConfigHash, k as emitRetrievalHoldoutBypass, l as AgentMemoryKindSchema, m as DEFAULT_MEMORY_CLEANUP_TIMEOUT_MS, n as createNeo4jAgentMemoryAdapter, o as createHindsightMemoryAdapter, p as AgentMemoryLifecycleUnsafeError, r as createMem0MemoryAdapter, s as hindsightMemoryBankId, t as createPlayMemoryTools, u as AgentMemoryScopeSchema, v as runBoundedMemoryLifecycle, w as defaultGetMemoryContext, x as graphitiMemoryAdapterIdentity, y as sleepForMemoryRecovery } from "../memory-krApkeRS.js";
|
|
3
3
|
export { AgentMemoryHitSchema, AgentMemoryKindSchema, AgentMemoryLifecycleTimeoutError, AgentMemoryLifecycleUnsafeError, AgentMemoryScopeSchema, AgentMemoryWriteInputSchema, DEFAULT_MEMORY_CLEANUP_TIMEOUT_MS, HindsightOperationUnknownError, applyRetrievalHoldout, applySessionStickyRetrievalHoldout, createAgentMemoryBranch, createGraphitiMemoryAdapter, createHindsightMemoryAdapter, createMem0MemoryAdapter, createMemoryExecutionPool, createNeo4jAgentMemoryAdapter, createPlayMemoryTools, defaultGetMemoryContext, deterministicRng, emitRetrievalHoldoutBypass, forkAgentMemoryBranchSnapshot, graphitiMemoryAdapterIdentity, hindsightMemoryBankId, mem0MemoryAdapterIdentity, memoryHitToSourceRecord, memoryRecoveryDelayMs, memoryWriteResultToSourceRecord, renderMemoryContext, resetRetrievalHoldoutRegistry, resolveMemoryCleanupTimeoutMs, retrievalHoldoutConfigHash, runBoundedMemoryLifecycle, sleepForMemoryRecovery, toOffPolicyTrajectory };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as stableId, t as sha256 } from "./ids-
|
|
2
|
-
import { n as memoryWriteResultToSourceRecord, t as memoryHitToSourceRecord } from "./source-record-
|
|
1
|
+
import { r as stableId, t as sha256 } from "./ids-C-Z2Uv4c.js";
|
|
2
|
+
import { n as memoryWriteResultToSourceRecord, t as memoryHitToSourceRecord } from "./source-record-9ZPRR1P9.js";
|
|
3
3
|
import { canonicalJson, mulberry32 } from "@tangle-network/agent-eval";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
6
|
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
7
|
-
|
|
7
|
+
// src/memory/holdout.ts
|
|
8
8
|
/**
|
|
9
9
|
* Deterministic uniform [0,1) for assignment draws. The sha256 key derivation is ours — it makes
|
|
10
10
|
* every draw replayable from the logged keys alone (design rule D5) — while the generator core is
|
|
@@ -322,8 +322,7 @@ function toOffPolicyTrajectory(events, options) {
|
|
|
322
322
|
unattributableEvents
|
|
323
323
|
};
|
|
324
324
|
}
|
|
325
|
-
|
|
326
|
-
//#region src/memory/adapter.ts
|
|
325
|
+
// src/memory/adapter.ts
|
|
327
326
|
async function defaultGetMemoryContext(adapter, query, options = {}) {
|
|
328
327
|
const hits = await adapter.search(query, options);
|
|
329
328
|
const delivered = options.holdout ? applySessionStickyRetrievalHoldout(hits, options.holdout, {
|
|
@@ -345,8 +344,7 @@ function renderMemoryContext(hits) {
|
|
|
345
344
|
return [`[${index + 1}] ${label}${score}`, hit.text].join("\n");
|
|
346
345
|
}).join("\n\n");
|
|
347
346
|
}
|
|
348
|
-
|
|
349
|
-
//#region src/memory/rank.ts
|
|
347
|
+
// src/memory/rank.ts
|
|
350
348
|
/** Merges independently ranked memory lists without letting the first unscored list dominate. */
|
|
351
349
|
function mergeRankedMemoryHits(groups, limit) {
|
|
352
350
|
const byIdentity = /* @__PURE__ */ new Map();
|
|
@@ -379,8 +377,7 @@ function memoryHitScore(hit) {
|
|
|
379
377
|
const score = hit.normalizedScore ?? hit.score;
|
|
380
378
|
return score !== void 0 && Number.isFinite(score) ? score : void 0;
|
|
381
379
|
}
|
|
382
|
-
|
|
383
|
-
//#region src/memory/branch.ts
|
|
380
|
+
// src/memory/branch.ts
|
|
384
381
|
const DEFAULT_POLICY = {
|
|
385
382
|
read: ["private"],
|
|
386
383
|
write: "private"
|
|
@@ -854,8 +851,7 @@ function cloneDurableValue(value) {
|
|
|
854
851
|
if (typeof value !== "object" || value === null) return value;
|
|
855
852
|
return Object.fromEntries(Object.entries(value).map(([key, child]) => [key, cloneDurableValue(child)]));
|
|
856
853
|
}
|
|
857
|
-
|
|
858
|
-
//#region src/memory/graphiti.ts
|
|
854
|
+
// src/memory/graphiti.ts
|
|
859
855
|
const DEFAULT_GRAPHITI_INGESTION_TIMEOUT_MS = 12e4;
|
|
860
856
|
/** Connects the official Graphiti MCP server without coupling to its Python internals. */
|
|
861
857
|
function createGraphitiMemoryAdapter(options) {
|
|
@@ -1241,8 +1237,7 @@ function graphitiMemoryAdapterIdentity(options) {
|
|
|
1241
1237
|
if (typeof options.backendRef !== "string" || !options.backendRef.trim()) throw new Error("Graphiti backendRef must be a non-empty string");
|
|
1242
1238
|
return `sha256:${sha256(canonicalJson(stripUndefined(options)))}`;
|
|
1243
1239
|
}
|
|
1244
|
-
|
|
1245
|
-
//#region src/memory/json.ts
|
|
1240
|
+
// src/memory/json.ts
|
|
1246
1241
|
/** Optional object properties are absent on the wire; other unsupported values still fail. */
|
|
1247
1242
|
function canonicalMemoryJson(value) {
|
|
1248
1243
|
return canonicalJson(omitUndefinedProperties(value));
|
|
@@ -1252,8 +1247,7 @@ function omitUndefinedProperties(value) {
|
|
|
1252
1247
|
if (value !== null && typeof value === "object" && (Object.getPrototypeOf(value) === Object.prototype || Object.getPrototypeOf(value) === null)) return Object.fromEntries(Object.entries(value).filter(([, child]) => child !== void 0).map(([key, child]) => [key, omitUndefinedProperties(child)]));
|
|
1253
1248
|
return value;
|
|
1254
1249
|
}
|
|
1255
|
-
|
|
1256
|
-
//#region src/memory/lifecycle.ts
|
|
1250
|
+
// src/memory/lifecycle.ts
|
|
1257
1251
|
const DEFAULT_MEMORY_CLEANUP_TIMEOUT_MS = 18e4;
|
|
1258
1252
|
var AgentMemoryLifecycleTimeoutError = class extends Error {
|
|
1259
1253
|
operation;
|
|
@@ -1386,8 +1380,7 @@ function createMemoryExecutionPool(limit) {
|
|
|
1386
1380
|
}
|
|
1387
1381
|
} };
|
|
1388
1382
|
}
|
|
1389
|
-
|
|
1390
|
-
//#region src/memory/schemas.ts
|
|
1383
|
+
// src/memory/schemas.ts
|
|
1391
1384
|
const AgentMemoryKindSchema = z.enum([
|
|
1392
1385
|
"message",
|
|
1393
1386
|
"entity",
|
|
@@ -1441,8 +1434,7 @@ const AgentMemoryWriteInputSchema = z.object({
|
|
|
1441
1434
|
scope: AgentMemoryScopeSchema.optional(),
|
|
1442
1435
|
metadata: z.record(z.string(), z.unknown()).optional()
|
|
1443
1436
|
});
|
|
1444
|
-
|
|
1445
|
-
//#region src/memory/hindsight.ts
|
|
1437
|
+
// src/memory/hindsight.ts
|
|
1446
1438
|
var HindsightOperationUnknownError = class extends Error {
|
|
1447
1439
|
bankId;
|
|
1448
1440
|
operationId;
|
|
@@ -1706,8 +1698,7 @@ function bounded(value, max, name) {
|
|
|
1706
1698
|
if (!Number.isSafeInteger(value) || value < 1 || value > max) throw new Error(`Hindsight ${name} must be an integer between 1 and ${max}`);
|
|
1707
1699
|
return value;
|
|
1708
1700
|
}
|
|
1709
|
-
|
|
1710
|
-
//#region src/memory/mem0.ts
|
|
1701
|
+
// src/memory/mem0.ts
|
|
1711
1702
|
/** Connects both the hosted Mem0 client and the open-source `Memory` class. */
|
|
1712
1703
|
function createMem0MemoryAdapter(options) {
|
|
1713
1704
|
assertMem0Options(options);
|
|
@@ -2171,8 +2162,7 @@ function mem0MemoryAdapterIdentity(options) {
|
|
|
2171
2162
|
if (typeof options.backendRef !== "string" || !options.backendRef.trim()) throw new Error("Mem0 backendRef must be a non-empty string");
|
|
2172
2163
|
return `sha256:${sha256(canonicalJson(compactRecord(options)))}`;
|
|
2173
2164
|
}
|
|
2174
|
-
|
|
2175
|
-
//#region src/memory/neo4j.ts
|
|
2165
|
+
// src/memory/neo4j.ts
|
|
2176
2166
|
function createNeo4jAgentMemoryAdapter(options) {
|
|
2177
2167
|
assertNeo4jOptions(options);
|
|
2178
2168
|
const client = options.client;
|
|
@@ -2625,8 +2615,7 @@ function stringMetadata(metadata, key) {
|
|
|
2625
2615
|
const value = metadata?.[key];
|
|
2626
2616
|
return typeof value === "string" && value.length > 0 ? value : void 0;
|
|
2627
2617
|
}
|
|
2628
|
-
|
|
2629
|
-
//#region src/memory/tools.ts
|
|
2618
|
+
// src/memory/tools.ts
|
|
2630
2619
|
const publications = /* @__PURE__ */ new WeakMap();
|
|
2631
2620
|
function createPlayMemoryTools(options) {
|
|
2632
2621
|
if (!options.actorId?.trim()) throw new Error("play memory tools require a trusted actorId");
|
|
@@ -2722,7 +2711,6 @@ function tool(name, description, inputSchema, handler) {
|
|
|
2722
2711
|
handler: async (input) => handler(inputSchema.parse(input))
|
|
2723
2712
|
};
|
|
2724
2713
|
}
|
|
2725
|
-
//#endregion
|
|
2726
2714
|
export { resetRetrievalHoldoutRegistry as A, forkAgentMemoryBranchSnapshot as C, applySessionStickyRetrievalHoldout as D, applyRetrievalHoldout as E, toOffPolicyTrajectory as M, deterministicRng as O, createAgentMemoryBranch as S, renderMemoryContext as T, resolveMemoryCleanupTimeoutMs as _, HindsightOperationUnknownError as a, createGraphitiMemoryAdapter as b, AgentMemoryHitSchema as c, AgentMemoryWriteInputSchema as d, AgentMemoryLifecycleTimeoutError as f, memoryRecoveryDelayMs as g, createMemoryExecutionPool as h, mem0MemoryAdapterIdentity as i, retrievalHoldoutConfigHash as j, emitRetrievalHoldoutBypass as k, AgentMemoryKindSchema as l, DEFAULT_MEMORY_CLEANUP_TIMEOUT_MS as m, createNeo4jAgentMemoryAdapter as n, createHindsightMemoryAdapter as o, AgentMemoryLifecycleUnsafeError as p, createMem0MemoryAdapter as r, hindsightMemoryBankId as s, createPlayMemoryTools as t, AgentMemoryScopeSchema as u, runBoundedMemoryLifecycle as v, defaultGetMemoryContext as w, graphitiMemoryAdapterIdentity as x, sleepForMemoryRecovery as y };
|
|
2727
2715
|
|
|
2728
|
-
//# sourceMappingURL=memory-
|
|
2716
|
+
//# sourceMappingURL=memory-krApkeRS.js.map
|