@anuma/sdk 6.19.2 → 6.20.0
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/expo/index.cjs +84 -32
- package/dist/expo/index.d.mts +108 -1
- package/dist/expo/index.d.ts +108 -1
- package/dist/expo/index.mjs +84 -32
- package/dist/react/index.cjs +84 -32
- package/dist/react/index.d.mts +108 -1
- package/dist/react/index.d.ts +108 -1
- package/dist/react/index.mjs +84 -32
- package/dist/server/index.cjs +84 -32
- package/dist/server/index.d.mts +108 -1
- package/dist/server/index.d.ts +108 -1
- package/dist/server/index.mjs +84 -32
- package/package.json +1 -1
package/dist/expo/index.cjs
CHANGED
|
@@ -16385,6 +16385,7 @@ async function retain(content, ctx, options = {}) {
|
|
|
16385
16385
|
const threshold = options.autoMergeThreshold ?? DEFAULT_AUTO_MERGE_THRESHOLD;
|
|
16386
16386
|
const resolvedScope = options.scope ?? DEFAULT_SCOPE;
|
|
16387
16387
|
let supersedeTargetIds = [];
|
|
16388
|
+
let consolidationDecidedCreate = false;
|
|
16388
16389
|
let supersedeContent;
|
|
16389
16390
|
let prepared;
|
|
16390
16391
|
if (enableAutoMerge) {
|
|
@@ -16412,8 +16413,12 @@ async function retain(content, ctx, options = {}) {
|
|
|
16412
16413
|
const outcome = await tryConsolidate(trimmed, ctx, options, prepared);
|
|
16413
16414
|
if (outcome) {
|
|
16414
16415
|
if ("done" in outcome) return outcome.done;
|
|
16415
|
-
|
|
16416
|
-
|
|
16416
|
+
if ("create" in outcome) {
|
|
16417
|
+
consolidationDecidedCreate = true;
|
|
16418
|
+
} else {
|
|
16419
|
+
supersedeTargetIds = outcome.supersede;
|
|
16420
|
+
supersedeContent = outcome.content;
|
|
16421
|
+
}
|
|
16417
16422
|
}
|
|
16418
16423
|
}
|
|
16419
16424
|
if (supersedeTargetIds.length === 0) {
|
|
@@ -16463,7 +16468,14 @@ async function retain(content, ctx, options = {}) {
|
|
|
16463
16468
|
action: "merge",
|
|
16464
16469
|
memoryId: targetId,
|
|
16465
16470
|
targetId,
|
|
16466
|
-
proofCount: updated.proofCount ?? (existing.proofCount ?? 1) + 1
|
|
16471
|
+
proofCount: updated.proofCount ?? (existing.proofCount ?? 1) + 1,
|
|
16472
|
+
similarity: matches[0].similarity,
|
|
16473
|
+
// Stage 1 may have run and explicitly said `create`, and Stage 2
|
|
16474
|
+
// then found a strict-cosine match anyway. Reporting the decision
|
|
16475
|
+
// here is what makes that DISAGREEMENT visible — without it the
|
|
16476
|
+
// model's create silently vanished from the distribution whenever
|
|
16477
|
+
// the cosine stage won.
|
|
16478
|
+
...consolidationDecidedCreate && { consolidation: "create" }
|
|
16467
16479
|
};
|
|
16468
16480
|
}
|
|
16469
16481
|
await assertMergeTargetGoneOrThrow(ctx, targetId);
|
|
@@ -16476,12 +16488,18 @@ async function retain(content, ctx, options = {}) {
|
|
|
16476
16488
|
const embedding = reusableQueryEmbedding ?? await generateEmbedding(contentToWrite, ctx.embeddingOptions);
|
|
16477
16489
|
const embeddingModel = ctx.embeddingOptions.model ?? DEFAULT_API_EMBEDDING_MODEL;
|
|
16478
16490
|
if (options.respectTombstones) {
|
|
16479
|
-
const
|
|
16491
|
+
const tombstone = await findTombstoneMatch(embedding, embeddingModel, resolvedScope, ctx, {
|
|
16480
16492
|
threshold,
|
|
16481
16493
|
folderId: options.folderId
|
|
16482
16494
|
});
|
|
16483
|
-
if (
|
|
16484
|
-
return {
|
|
16495
|
+
if (tombstone) {
|
|
16496
|
+
return {
|
|
16497
|
+
action: "suppressed",
|
|
16498
|
+
memoryId: tombstone.id,
|
|
16499
|
+
tombstoneId: tombstone.id,
|
|
16500
|
+
proofCount: 0,
|
|
16501
|
+
similarity: tombstone.similarity
|
|
16502
|
+
};
|
|
16485
16503
|
}
|
|
16486
16504
|
}
|
|
16487
16505
|
const createOpts = {
|
|
@@ -16548,7 +16566,8 @@ async function retain(content, ctx, options = {}) {
|
|
|
16548
16566
|
action: "supersede",
|
|
16549
16567
|
memoryId: created2.uniqueId,
|
|
16550
16568
|
targetId: primaryTargetId,
|
|
16551
|
-
proofCount: 1
|
|
16569
|
+
proofCount: 1,
|
|
16570
|
+
consolidation: "supersede"
|
|
16552
16571
|
};
|
|
16553
16572
|
}
|
|
16554
16573
|
notifyConsolidationFallback(
|
|
@@ -16562,7 +16581,8 @@ async function retain(content, ctx, options = {}) {
|
|
|
16562
16581
|
return {
|
|
16563
16582
|
action: "create",
|
|
16564
16583
|
memoryId: created.uniqueId,
|
|
16565
|
-
proofCount: 1
|
|
16584
|
+
proofCount: 1,
|
|
16585
|
+
...consolidationDecidedCreate && { consolidation: "create" }
|
|
16566
16586
|
};
|
|
16567
16587
|
}
|
|
16568
16588
|
function unionStrings(a, b) {
|
|
@@ -16592,7 +16612,7 @@ async function findTombstoneMatch(embedding, embeddingModel, scope, ctx, opts) {
|
|
|
16592
16612
|
bestId = row.uniqueId;
|
|
16593
16613
|
}
|
|
16594
16614
|
}
|
|
16595
|
-
return bestId;
|
|
16615
|
+
return bestId === null ? null : { id: bestId, similarity: bestSim };
|
|
16596
16616
|
}
|
|
16597
16617
|
function pickEventTimeUpdate(existing, incoming) {
|
|
16598
16618
|
if (incoming === void 0 || incoming === null) return void 0;
|
|
@@ -16634,7 +16654,7 @@ async function tryConsolidate(trimmed, ctx, options, prepared) {
|
|
|
16634
16654
|
}));
|
|
16635
16655
|
const { consolidateMemory: doConsolidate } = await Promise.resolve().then(() => (init_consolidate(), consolidate_exports));
|
|
16636
16656
|
const decision = await doConsolidate(trimmed, candidates, consolidateOptions);
|
|
16637
|
-
if (decision.action === "create") return null;
|
|
16657
|
+
if (decision.action === "create") return decision.fallbackReason ? null : { create: true };
|
|
16638
16658
|
if (decision.action === "supersede" && decision.content) {
|
|
16639
16659
|
const requestedIds = decision.targetIds?.length ? decision.targetIds : decision.targetId ? [decision.targetId] : [];
|
|
16640
16660
|
if (requestedIds.length === 0) return null;
|
|
@@ -16693,7 +16713,8 @@ async function tryConsolidate(trimmed, ctx, options, prepared) {
|
|
|
16693
16713
|
action: "merge",
|
|
16694
16714
|
memoryId: decision.targetId,
|
|
16695
16715
|
targetId: decision.targetId,
|
|
16696
|
-
proofCount: updated.proofCount ?? (existing.proofCount ?? 1) + 1
|
|
16716
|
+
proofCount: updated.proofCount ?? (existing.proofCount ?? 1) + 1,
|
|
16717
|
+
consolidation: "noop"
|
|
16697
16718
|
}
|
|
16698
16719
|
};
|
|
16699
16720
|
}
|
|
@@ -16746,7 +16767,8 @@ async function tryConsolidate(trimmed, ctx, options, prepared) {
|
|
|
16746
16767
|
action: "update",
|
|
16747
16768
|
memoryId: decision.targetId,
|
|
16748
16769
|
targetId: decision.targetId,
|
|
16749
|
-
proofCount: updated.proofCount ?? (existing.proofCount ?? 1) + 1
|
|
16770
|
+
proofCount: updated.proofCount ?? (existing.proofCount ?? 1) + 1,
|
|
16771
|
+
consolidation: "update"
|
|
16750
16772
|
}
|
|
16751
16773
|
};
|
|
16752
16774
|
}
|
|
@@ -16888,6 +16910,11 @@ Extract durable user facts.`,
|
|
|
16888
16910
|
fallbackSourceId,
|
|
16889
16911
|
options.userIdentity ?? []
|
|
16890
16912
|
);
|
|
16913
|
+
const rawCandidates = parsed.candidates;
|
|
16914
|
+
options.onCandidatesParsed?.({
|
|
16915
|
+
rawCount: Array.isArray(rawCandidates) ? rawCandidates.length : 0,
|
|
16916
|
+
validCount: candidates.length
|
|
16917
|
+
});
|
|
16891
16918
|
if (!redactor) return candidates;
|
|
16892
16919
|
const restored = restoreCandidates(candidates, redactor, options.userIdentity ?? []);
|
|
16893
16920
|
if (candidates.length > 0 && restored.length === 0) {
|
|
@@ -16924,8 +16951,12 @@ async function extractAndRetain(messages, retainCtx, options) {
|
|
|
16924
16951
|
let exhaustedEmpty = false;
|
|
16925
16952
|
let exhaustedFailure;
|
|
16926
16953
|
let droppedAfterRedaction = false;
|
|
16954
|
+
let rawCandidateCount = 0;
|
|
16955
|
+
let validCandidateCount = 0;
|
|
16927
16956
|
const callerOnExhaustedEmpty = options.extract.onExhaustedEmpty;
|
|
16928
16957
|
const callerOnCandidatesDropped = options.extract.onCandidatesDropped;
|
|
16958
|
+
const callerOnCandidatesParsed = options.extract.onCandidatesParsed;
|
|
16959
|
+
const tExtract = Date.now();
|
|
16929
16960
|
const candidates = await extractFacts(messages, {
|
|
16930
16961
|
...options.extract,
|
|
16931
16962
|
onExhaustedEmpty: (failure) => {
|
|
@@ -16936,8 +16967,14 @@ async function extractAndRetain(messages, retainCtx, options) {
|
|
|
16936
16967
|
onCandidatesDropped: () => {
|
|
16937
16968
|
droppedAfterRedaction = true;
|
|
16938
16969
|
callerOnCandidatesDropped?.();
|
|
16970
|
+
},
|
|
16971
|
+
onCandidatesParsed: (stats) => {
|
|
16972
|
+
rawCandidateCount = stats.rawCount;
|
|
16973
|
+
validCandidateCount = stats.validCount;
|
|
16974
|
+
callerOnCandidatesParsed?.(stats);
|
|
16939
16975
|
}
|
|
16940
16976
|
});
|
|
16977
|
+
const extractMs = Date.now() - tExtract;
|
|
16941
16978
|
const filtered = candidates.filter((c) => c.confidence >= minConfidence);
|
|
16942
16979
|
const log = getLogger();
|
|
16943
16980
|
const screened = screenCandidatesForInjection(filtered);
|
|
@@ -16985,6 +17022,7 @@ async function extractAndRetain(messages, retainCtx, options) {
|
|
|
16985
17022
|
const results = [];
|
|
16986
17023
|
const quarantinedInfo = [];
|
|
16987
17024
|
let failedWrites = 0;
|
|
17025
|
+
const tRetain = Date.now();
|
|
16988
17026
|
for (const { candidate, isQuarantined, reason, signature } of toRetain) {
|
|
16989
17027
|
try {
|
|
16990
17028
|
const result = await retain(candidate.content, retainCtx, {
|
|
@@ -17051,6 +17089,21 @@ async function extractAndRetain(messages, retainCtx, options) {
|
|
|
17051
17089
|
failedCount: failedWrites,
|
|
17052
17090
|
outcome,
|
|
17053
17091
|
quarantined: quarantinedInfo,
|
|
17092
|
+
funnel: {
|
|
17093
|
+
rawCandidateCount,
|
|
17094
|
+
validCandidateCount,
|
|
17095
|
+
afterRedactionCount: candidates.length,
|
|
17096
|
+
aboveConfidenceCount: filtered.length,
|
|
17097
|
+
// The PERSISTED quarantines (`quarantinedInfo`), not the screened list: a
|
|
17098
|
+
// screened candidate whose retain() throws is counted in `failedCount`,
|
|
17099
|
+
// and counting it here too would double it and break the identity below.
|
|
17100
|
+
// This also keeps the count equal to `quarantined.length` on the result.
|
|
17101
|
+
quarantinedCount: quarantinedInfo.length,
|
|
17102
|
+
retainedCount: results.length,
|
|
17103
|
+
failedCount: failedWrites
|
|
17104
|
+
},
|
|
17105
|
+
timings: { extractMs, retainMs: Date.now() - tRetain },
|
|
17106
|
+
model: options.extract.model ?? DEFAULT_EXTRACTION_MODEL,
|
|
17054
17107
|
// Only meaningful alongside `outcome: "empty-after-retry"`. Returned as well
|
|
17055
17108
|
// as pushed through the callback so a consumer that only inspects the result
|
|
17056
17109
|
// (rather than wiring a hook) can still report WHY.
|
|
@@ -17306,27 +17359,23 @@ function createAutoExtractor(options) {
|
|
|
17306
17359
|
const t0 = Date.now();
|
|
17307
17360
|
void (async () => {
|
|
17308
17361
|
try {
|
|
17309
|
-
const { candidates, results, failedCount, outcome, failure } = await extractAndRetain(
|
|
17310
|
-
|
|
17311
|
-
|
|
17312
|
-
{
|
|
17313
|
-
|
|
17314
|
-
|
|
17315
|
-
|
|
17316
|
-
|
|
17317
|
-
|
|
17318
|
-
|
|
17319
|
-
|
|
17320
|
-
|
|
17321
|
-
|
|
17322
|
-
|
|
17323
|
-
|
|
17324
|
-
},
|
|
17325
|
-
...options.onMemoryQuarantined && {
|
|
17326
|
-
onQuarantined: (info) => options.onMemoryQuarantined?.({ ...info, conversationId })
|
|
17327
|
-
}
|
|
17362
|
+
const { candidates, results, failedCount, outcome, failure, funnel, timings, model } = await extractAndRetain(window2, retainCtx, {
|
|
17363
|
+
extract,
|
|
17364
|
+
...options.minConfidence !== void 0 && { minConfidence: options.minConfidence },
|
|
17365
|
+
...options.entityCtx !== void 0 && { entityCtx: options.entityCtx },
|
|
17366
|
+
...options.scope !== void 0 && { scope: options.scope },
|
|
17367
|
+
...options.folderId !== void 0 && { folderId: options.folderId },
|
|
17368
|
+
...consolidateOptions !== void 0 && { consolidateOptions },
|
|
17369
|
+
...injectionClassifierOptions !== void 0 && {
|
|
17370
|
+
injectionClassifier: injectionClassifierOptions
|
|
17371
|
+
},
|
|
17372
|
+
...options.onCandidateFailed && {
|
|
17373
|
+
onCandidateFailed: (candidate, error) => options.onCandidateFailed?.({ candidate, error, conversationId })
|
|
17374
|
+
},
|
|
17375
|
+
...options.onMemoryQuarantined && {
|
|
17376
|
+
onQuarantined: (info) => options.onMemoryQuarantined?.({ ...info, conversationId })
|
|
17328
17377
|
}
|
|
17329
|
-
);
|
|
17378
|
+
});
|
|
17330
17379
|
if (outcome !== "empty-after-retry") {
|
|
17331
17380
|
const advancedTo = window2[window2.length - 1].id;
|
|
17332
17381
|
stateFor(conversationId).watermark = advancedTo;
|
|
@@ -17347,6 +17396,9 @@ function createAutoExtractor(options) {
|
|
|
17347
17396
|
durationMs: Date.now() - t0,
|
|
17348
17397
|
conversationId,
|
|
17349
17398
|
outcome,
|
|
17399
|
+
funnel,
|
|
17400
|
+
timings,
|
|
17401
|
+
model,
|
|
17350
17402
|
// Only set alongside `outcome: "empty-after-retry"`. Spread so the key
|
|
17351
17403
|
// is absent rather than explicitly undefined on a healthy turn —
|
|
17352
17404
|
// analytics backends store an explicit undefined as a real value.
|
package/dist/expo/index.d.mts
CHANGED
|
@@ -5940,6 +5940,15 @@ interface RecallDiagnostics {
|
|
|
5940
5940
|
degraded: RecallDegradation[];
|
|
5941
5941
|
}
|
|
5942
5942
|
type RetainAction = "create" | "merge" | "update" | "skip" | "suppressed" | "supersede";
|
|
5943
|
+
/**
|
|
5944
|
+
* The consolidation LLM's decision for a candidate, when it made one. Reported
|
|
5945
|
+
* on {@link RetainResult.consolidation} so a host can tell an LLM `noop` (the
|
|
5946
|
+
* fact already exists) from a cosine auto-merge — both arrive as
|
|
5947
|
+
* `action: "merge"` — and can read how often the model reaches for `supersede`
|
|
5948
|
+
* or `update` versus `create`. A degraded fallback create (LLM error, bad
|
|
5949
|
+
* response) carries no decision; `onFallback` reports those.
|
|
5950
|
+
*/
|
|
5951
|
+
type ConsolidationAction = "create" | "update" | "noop" | "supersede";
|
|
5943
5952
|
type RetainSource = "manual" | "auto-extracted" | "capsule";
|
|
5944
5953
|
/**
|
|
5945
5954
|
* Why a retain returned "create" instead of applying a consolidation decision.
|
|
@@ -6079,6 +6088,33 @@ interface RetainResult {
|
|
|
6079
6088
|
tombstoneId?: string;
|
|
6080
6089
|
/** Updated proof_count after this write. 0 when nothing was written (suppressed). */
|
|
6081
6090
|
proofCount: number;
|
|
6091
|
+
/**
|
|
6092
|
+
* How close the write was to the threshold that allowed it. Absent on the
|
|
6093
|
+
* actions that have no such score (`create`, `update`, `supersede`, `skip`).
|
|
6094
|
+
*
|
|
6095
|
+
* The two paths report DIFFERENT things and a dashboard has to know which:
|
|
6096
|
+
*
|
|
6097
|
+
* - `suppressed` — an exact cosine against the tombstone, computed in
|
|
6098
|
+
* `findTombstoneMatch`.
|
|
6099
|
+
* - `merge` — the RANKER's score for the target, not a pure cosine. The
|
|
6100
|
+
* cosine is what cleared `minSimilarity`, but the supersession pass may
|
|
6101
|
+
* then adjust it (`oldScore - delta` / `newScore + delta`) before this
|
|
6102
|
+
* value is read, and can in principle reorder the winner. Read it as
|
|
6103
|
+
* "the score the merge was chosen on", within the supersession delta of
|
|
6104
|
+
* the cosine — not as the raw pairwise similarity.
|
|
6105
|
+
*/
|
|
6106
|
+
similarity?: number;
|
|
6107
|
+
/**
|
|
6108
|
+
* What the consolidation LLM decided for this candidate, when consolidation
|
|
6109
|
+
* ran — see {@link ConsolidationAction}.
|
|
6110
|
+
*
|
|
6111
|
+
* Reported for the DECISION, not for what the write ended up doing, so the
|
|
6112
|
+
* two can disagree and be read as such: a `merge` carrying
|
|
6113
|
+
* `consolidation: "create"` is the model saying "new fact" and the strict
|
|
6114
|
+
* cosine stage merging anyway. Absent when consolidation did not run, and
|
|
6115
|
+
* absent on a degraded fallback create (`onFallback` owns that signal).
|
|
6116
|
+
*/
|
|
6117
|
+
consolidation?: ConsolidationAction;
|
|
6082
6118
|
}
|
|
6083
6119
|
|
|
6084
6120
|
/**
|
|
@@ -6305,6 +6341,61 @@ interface ExtractFactsOptions extends PortalLlmAuth {
|
|
|
6305
6341
|
* callers may leave it unset.
|
|
6306
6342
|
*/
|
|
6307
6343
|
onAttempt?: (attempt: PortalLlmAttempt) => void;
|
|
6344
|
+
/**
|
|
6345
|
+
* Fired once per successful completion with how many candidates the model
|
|
6346
|
+
* emitted (`rawCount`) and how many survived {@link validateCandidates}
|
|
6347
|
+
* (`validCount`) — the non-string / empty / over-cap / low-signal / bad-
|
|
6348
|
+
* confidence drops that until now were a bare `continue` nobody counted.
|
|
6349
|
+
*
|
|
6350
|
+
* Without it a `no-facts` turn cannot be split into "the model found nothing"
|
|
6351
|
+
* and "the model found things we threw away", which is the difference between
|
|
6352
|
+
* a prompt problem and a validator problem. Counts only; never content.
|
|
6353
|
+
*/
|
|
6354
|
+
onCandidatesParsed?: (stats: {
|
|
6355
|
+
rawCount: number;
|
|
6356
|
+
validCount: number;
|
|
6357
|
+
}) => void;
|
|
6358
|
+
}
|
|
6359
|
+
/**
|
|
6360
|
+
* Where a turn's candidates went between the model's completion and the vault —
|
|
6361
|
+
* every stage that can drop one, as a count. Returned by {@link extractAndRetain}
|
|
6362
|
+
* and forwarded on `TurnCompleteEvent` so a host can emit it; nothing here is
|
|
6363
|
+
* content.
|
|
6364
|
+
*
|
|
6365
|
+
* Reads as a funnel: `raw ≥ valid ≥ afterRedaction ≥ aboveConfidence`, then
|
|
6366
|
+
* `aboveConfidence = quarantined + retained + failed`.
|
|
6367
|
+
* @public
|
|
6368
|
+
*/
|
|
6369
|
+
interface ExtractionFunnel {
|
|
6370
|
+
/** Candidates in the model's completion, before any validation. */
|
|
6371
|
+
rawCandidateCount: number;
|
|
6372
|
+
/** Survivors of {@link validateCandidates} (shape, length, low-signal, confidence-is-a-number). */
|
|
6373
|
+
validCandidateCount: number;
|
|
6374
|
+
/** Survivors of PII de-anonymization (equals `validCandidateCount` when redaction is off). */
|
|
6375
|
+
afterRedactionCount: number;
|
|
6376
|
+
/** Survivors of the `minConfidence` floor — the candidates that reached the injection screen. */
|
|
6377
|
+
aboveConfidenceCount: number;
|
|
6378
|
+
/**
|
|
6379
|
+
* Held for review by the injection screen and SUCCESSFULLY persisted — the
|
|
6380
|
+
* same set as `extractAndRetain`'s `quarantined`. A screened candidate whose
|
|
6381
|
+
* `retain()` threw is in `failedCount` instead, never both.
|
|
6382
|
+
*/
|
|
6383
|
+
quarantinedCount: number;
|
|
6384
|
+
/** Written through `retain()` (any disposition). */
|
|
6385
|
+
retainedCount: number;
|
|
6386
|
+
/** `retain()` threw. */
|
|
6387
|
+
failedCount: number;
|
|
6388
|
+
}
|
|
6389
|
+
/**
|
|
6390
|
+
* Wall-clock split of one {@link extractAndRetain} call. The worker's
|
|
6391
|
+
* `durationMs` is the sum plus the screen; these say which half is slow.
|
|
6392
|
+
* @public
|
|
6393
|
+
*/
|
|
6394
|
+
interface ExtractionTimings {
|
|
6395
|
+
/** The extraction LLM call, all attempts and backoff included. */
|
|
6396
|
+
extractMs: number;
|
|
6397
|
+
/** The retain loop — embeddings, consolidation LLM calls, writes — over every candidate. */
|
|
6398
|
+
retainMs: number;
|
|
6308
6399
|
}
|
|
6309
6400
|
/**
|
|
6310
6401
|
* Stage 1 — call the LLM to extract candidate facts from the recent
|
|
@@ -6422,6 +6513,12 @@ declare function extractAndRetain(messages: AutoExtractMessage[], retainCtx: Ret
|
|
|
6422
6513
|
* the give-up, so "extraction is failing" can be reported as *why* it failed.
|
|
6423
6514
|
*/
|
|
6424
6515
|
failure?: PortalLlmFailure;
|
|
6516
|
+
/** Where the candidates went, stage by stage — see {@link ExtractionFunnel}. */
|
|
6517
|
+
funnel: ExtractionFunnel;
|
|
6518
|
+
/** Extract vs. retain wall-clock — see {@link ExtractionTimings}. */
|
|
6519
|
+
timings: ExtractionTimings;
|
|
6520
|
+
/** The extraction model this call asked for (the resolved default when unset). */
|
|
6521
|
+
model: string;
|
|
6425
6522
|
}>;
|
|
6426
6523
|
|
|
6427
6524
|
/**
|
|
@@ -7485,6 +7582,16 @@ interface TurnCompleteEvent {
|
|
|
7485
7582
|
* carries content.
|
|
7486
7583
|
*/
|
|
7487
7584
|
failure?: PortalLlmFailure;
|
|
7585
|
+
/**
|
|
7586
|
+
* Where the candidates went between the model and the vault, as counts — the
|
|
7587
|
+
* drops before `retain()` that `candidates`/`results` cannot show. See
|
|
7588
|
+
* {@link ExtractionFunnel}.
|
|
7589
|
+
*/
|
|
7590
|
+
funnel?: ExtractionFunnel;
|
|
7591
|
+
/** Extract vs. retain wall-clock split of `durationMs`. See {@link ExtractionTimings}. */
|
|
7592
|
+
timings?: ExtractionTimings;
|
|
7593
|
+
/** The extraction model this turn asked for. */
|
|
7594
|
+
model?: string;
|
|
7488
7595
|
}
|
|
7489
7596
|
/** @public */
|
|
7490
7597
|
/**
|
|
@@ -10753,4 +10860,4 @@ declare function refreshNotionAccessToken(params: NotionRefreshTokenParams): Pro
|
|
|
10753
10860
|
*/
|
|
10754
10861
|
declare function createNotionTools(getAccessToken: () => string | null, requestNotionAccess: () => Promise<string>): ToolConfig[];
|
|
10755
10862
|
|
|
10756
|
-
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkVectorCache, type ChunkingOptions, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMessageOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, ENTITY_FANOUT, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type FactType, type FileMetadata, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type ManualFactType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryToVerify, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageRedactionResult, type MessageSkeleton, NEVER_TTL_MS, NODE_BUDGET, NOTION_OAUTH_CONFIG, type NeighborRefiner, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, type NowSource, type ObservationTrend, type ObservationTrendInput, PAST_EVENT_GRACE_MS, PII_PATTERNS, PROFILE_DOC_VERSION, type PhotoIngestResult, type PhotoMediaRef, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type PromptPreProcessor, type PromptPreProcessorContext, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, QueueManager, type QueueStatus, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankableVaultMemory, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SHORT_TTL_MS, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, type SearchSource, type SendMessageWithStorageArgs, type SendMessageWithStorageDetachedResult, type SendMessageWithStorageResult, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type StockPriceClassification, type StockPricePreProcessorOptions, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredMessage, type StoredMessageWithSimilarity, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type SynthesizeProfileOptions, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, addConversationMemoriesOp, archiveVaultMemoryOp, backfillMemoryTopicsOp, buildNotionAuthUrl, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createLlmDecayClassifier, createLlmNeighborRefiner, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionTools, createPlatformCursorStore, createRecallTool, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getLogger, getMemoriesNeedingTopicExtractionOp, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, hardDeleteDecayedOp, hasEncryptionKey, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isDegradedTopicSkip, isPiiRedactor, isRerankerAvailable, maskScopedEmbeddingCache, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|
|
10863
|
+
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkVectorCache, type ChunkingOptions, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMessageOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, ENTITY_FANOUT, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionTimings, type FactType, type FileMetadata, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type ManualFactType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryToVerify, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageRedactionResult, type MessageSkeleton, NEVER_TTL_MS, NODE_BUDGET, NOTION_OAUTH_CONFIG, type NeighborRefiner, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, type NowSource, type ObservationTrend, type ObservationTrendInput, PAST_EVENT_GRACE_MS, PII_PATTERNS, PROFILE_DOC_VERSION, type PhotoIngestResult, type PhotoMediaRef, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type PromptPreProcessor, type PromptPreProcessorContext, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, QueueManager, type QueueStatus, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankableVaultMemory, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SHORT_TTL_MS, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, type SearchSource, type SendMessageWithStorageArgs, type SendMessageWithStorageDetachedResult, type SendMessageWithStorageResult, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type StockPriceClassification, type StockPricePreProcessorOptions, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredMessage, type StoredMessageWithSimilarity, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type SynthesizeProfileOptions, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, addConversationMemoriesOp, archiveVaultMemoryOp, backfillMemoryTopicsOp, buildNotionAuthUrl, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createLlmDecayClassifier, createLlmNeighborRefiner, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionTools, createPlatformCursorStore, createRecallTool, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getLogger, getMemoriesNeedingTopicExtractionOp, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, hardDeleteDecayedOp, hasEncryptionKey, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isDegradedTopicSkip, isPiiRedactor, isRerankerAvailable, maskScopedEmbeddingCache, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|
package/dist/expo/index.d.ts
CHANGED
|
@@ -5940,6 +5940,15 @@ interface RecallDiagnostics {
|
|
|
5940
5940
|
degraded: RecallDegradation[];
|
|
5941
5941
|
}
|
|
5942
5942
|
type RetainAction = "create" | "merge" | "update" | "skip" | "suppressed" | "supersede";
|
|
5943
|
+
/**
|
|
5944
|
+
* The consolidation LLM's decision for a candidate, when it made one. Reported
|
|
5945
|
+
* on {@link RetainResult.consolidation} so a host can tell an LLM `noop` (the
|
|
5946
|
+
* fact already exists) from a cosine auto-merge — both arrive as
|
|
5947
|
+
* `action: "merge"` — and can read how often the model reaches for `supersede`
|
|
5948
|
+
* or `update` versus `create`. A degraded fallback create (LLM error, bad
|
|
5949
|
+
* response) carries no decision; `onFallback` reports those.
|
|
5950
|
+
*/
|
|
5951
|
+
type ConsolidationAction = "create" | "update" | "noop" | "supersede";
|
|
5943
5952
|
type RetainSource = "manual" | "auto-extracted" | "capsule";
|
|
5944
5953
|
/**
|
|
5945
5954
|
* Why a retain returned "create" instead of applying a consolidation decision.
|
|
@@ -6079,6 +6088,33 @@ interface RetainResult {
|
|
|
6079
6088
|
tombstoneId?: string;
|
|
6080
6089
|
/** Updated proof_count after this write. 0 when nothing was written (suppressed). */
|
|
6081
6090
|
proofCount: number;
|
|
6091
|
+
/**
|
|
6092
|
+
* How close the write was to the threshold that allowed it. Absent on the
|
|
6093
|
+
* actions that have no such score (`create`, `update`, `supersede`, `skip`).
|
|
6094
|
+
*
|
|
6095
|
+
* The two paths report DIFFERENT things and a dashboard has to know which:
|
|
6096
|
+
*
|
|
6097
|
+
* - `suppressed` — an exact cosine against the tombstone, computed in
|
|
6098
|
+
* `findTombstoneMatch`.
|
|
6099
|
+
* - `merge` — the RANKER's score for the target, not a pure cosine. The
|
|
6100
|
+
* cosine is what cleared `minSimilarity`, but the supersession pass may
|
|
6101
|
+
* then adjust it (`oldScore - delta` / `newScore + delta`) before this
|
|
6102
|
+
* value is read, and can in principle reorder the winner. Read it as
|
|
6103
|
+
* "the score the merge was chosen on", within the supersession delta of
|
|
6104
|
+
* the cosine — not as the raw pairwise similarity.
|
|
6105
|
+
*/
|
|
6106
|
+
similarity?: number;
|
|
6107
|
+
/**
|
|
6108
|
+
* What the consolidation LLM decided for this candidate, when consolidation
|
|
6109
|
+
* ran — see {@link ConsolidationAction}.
|
|
6110
|
+
*
|
|
6111
|
+
* Reported for the DECISION, not for what the write ended up doing, so the
|
|
6112
|
+
* two can disagree and be read as such: a `merge` carrying
|
|
6113
|
+
* `consolidation: "create"` is the model saying "new fact" and the strict
|
|
6114
|
+
* cosine stage merging anyway. Absent when consolidation did not run, and
|
|
6115
|
+
* absent on a degraded fallback create (`onFallback` owns that signal).
|
|
6116
|
+
*/
|
|
6117
|
+
consolidation?: ConsolidationAction;
|
|
6082
6118
|
}
|
|
6083
6119
|
|
|
6084
6120
|
/**
|
|
@@ -6305,6 +6341,61 @@ interface ExtractFactsOptions extends PortalLlmAuth {
|
|
|
6305
6341
|
* callers may leave it unset.
|
|
6306
6342
|
*/
|
|
6307
6343
|
onAttempt?: (attempt: PortalLlmAttempt) => void;
|
|
6344
|
+
/**
|
|
6345
|
+
* Fired once per successful completion with how many candidates the model
|
|
6346
|
+
* emitted (`rawCount`) and how many survived {@link validateCandidates}
|
|
6347
|
+
* (`validCount`) — the non-string / empty / over-cap / low-signal / bad-
|
|
6348
|
+
* confidence drops that until now were a bare `continue` nobody counted.
|
|
6349
|
+
*
|
|
6350
|
+
* Without it a `no-facts` turn cannot be split into "the model found nothing"
|
|
6351
|
+
* and "the model found things we threw away", which is the difference between
|
|
6352
|
+
* a prompt problem and a validator problem. Counts only; never content.
|
|
6353
|
+
*/
|
|
6354
|
+
onCandidatesParsed?: (stats: {
|
|
6355
|
+
rawCount: number;
|
|
6356
|
+
validCount: number;
|
|
6357
|
+
}) => void;
|
|
6358
|
+
}
|
|
6359
|
+
/**
|
|
6360
|
+
* Where a turn's candidates went between the model's completion and the vault —
|
|
6361
|
+
* every stage that can drop one, as a count. Returned by {@link extractAndRetain}
|
|
6362
|
+
* and forwarded on `TurnCompleteEvent` so a host can emit it; nothing here is
|
|
6363
|
+
* content.
|
|
6364
|
+
*
|
|
6365
|
+
* Reads as a funnel: `raw ≥ valid ≥ afterRedaction ≥ aboveConfidence`, then
|
|
6366
|
+
* `aboveConfidence = quarantined + retained + failed`.
|
|
6367
|
+
* @public
|
|
6368
|
+
*/
|
|
6369
|
+
interface ExtractionFunnel {
|
|
6370
|
+
/** Candidates in the model's completion, before any validation. */
|
|
6371
|
+
rawCandidateCount: number;
|
|
6372
|
+
/** Survivors of {@link validateCandidates} (shape, length, low-signal, confidence-is-a-number). */
|
|
6373
|
+
validCandidateCount: number;
|
|
6374
|
+
/** Survivors of PII de-anonymization (equals `validCandidateCount` when redaction is off). */
|
|
6375
|
+
afterRedactionCount: number;
|
|
6376
|
+
/** Survivors of the `minConfidence` floor — the candidates that reached the injection screen. */
|
|
6377
|
+
aboveConfidenceCount: number;
|
|
6378
|
+
/**
|
|
6379
|
+
* Held for review by the injection screen and SUCCESSFULLY persisted — the
|
|
6380
|
+
* same set as `extractAndRetain`'s `quarantined`. A screened candidate whose
|
|
6381
|
+
* `retain()` threw is in `failedCount` instead, never both.
|
|
6382
|
+
*/
|
|
6383
|
+
quarantinedCount: number;
|
|
6384
|
+
/** Written through `retain()` (any disposition). */
|
|
6385
|
+
retainedCount: number;
|
|
6386
|
+
/** `retain()` threw. */
|
|
6387
|
+
failedCount: number;
|
|
6388
|
+
}
|
|
6389
|
+
/**
|
|
6390
|
+
* Wall-clock split of one {@link extractAndRetain} call. The worker's
|
|
6391
|
+
* `durationMs` is the sum plus the screen; these say which half is slow.
|
|
6392
|
+
* @public
|
|
6393
|
+
*/
|
|
6394
|
+
interface ExtractionTimings {
|
|
6395
|
+
/** The extraction LLM call, all attempts and backoff included. */
|
|
6396
|
+
extractMs: number;
|
|
6397
|
+
/** The retain loop — embeddings, consolidation LLM calls, writes — over every candidate. */
|
|
6398
|
+
retainMs: number;
|
|
6308
6399
|
}
|
|
6309
6400
|
/**
|
|
6310
6401
|
* Stage 1 — call the LLM to extract candidate facts from the recent
|
|
@@ -6422,6 +6513,12 @@ declare function extractAndRetain(messages: AutoExtractMessage[], retainCtx: Ret
|
|
|
6422
6513
|
* the give-up, so "extraction is failing" can be reported as *why* it failed.
|
|
6423
6514
|
*/
|
|
6424
6515
|
failure?: PortalLlmFailure;
|
|
6516
|
+
/** Where the candidates went, stage by stage — see {@link ExtractionFunnel}. */
|
|
6517
|
+
funnel: ExtractionFunnel;
|
|
6518
|
+
/** Extract vs. retain wall-clock — see {@link ExtractionTimings}. */
|
|
6519
|
+
timings: ExtractionTimings;
|
|
6520
|
+
/** The extraction model this call asked for (the resolved default when unset). */
|
|
6521
|
+
model: string;
|
|
6425
6522
|
}>;
|
|
6426
6523
|
|
|
6427
6524
|
/**
|
|
@@ -7485,6 +7582,16 @@ interface TurnCompleteEvent {
|
|
|
7485
7582
|
* carries content.
|
|
7486
7583
|
*/
|
|
7487
7584
|
failure?: PortalLlmFailure;
|
|
7585
|
+
/**
|
|
7586
|
+
* Where the candidates went between the model and the vault, as counts — the
|
|
7587
|
+
* drops before `retain()` that `candidates`/`results` cannot show. See
|
|
7588
|
+
* {@link ExtractionFunnel}.
|
|
7589
|
+
*/
|
|
7590
|
+
funnel?: ExtractionFunnel;
|
|
7591
|
+
/** Extract vs. retain wall-clock split of `durationMs`. See {@link ExtractionTimings}. */
|
|
7592
|
+
timings?: ExtractionTimings;
|
|
7593
|
+
/** The extraction model this turn asked for. */
|
|
7594
|
+
model?: string;
|
|
7488
7595
|
}
|
|
7489
7596
|
/** @public */
|
|
7490
7597
|
/**
|
|
@@ -10753,4 +10860,4 @@ declare function refreshNotionAccessToken(params: NotionRefreshTokenParams): Pro
|
|
|
10753
10860
|
*/
|
|
10754
10861
|
declare function createNotionTools(getAccessToken: () => string | null, requestNotionAccess: () => Promise<string>): ToolConfig[];
|
|
10755
10862
|
|
|
10756
|
-
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkVectorCache, type ChunkingOptions, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMessageOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, ENTITY_FANOUT, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type FactType, type FileMetadata, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type ManualFactType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryToVerify, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageRedactionResult, type MessageSkeleton, NEVER_TTL_MS, NODE_BUDGET, NOTION_OAUTH_CONFIG, type NeighborRefiner, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, type NowSource, type ObservationTrend, type ObservationTrendInput, PAST_EVENT_GRACE_MS, PII_PATTERNS, PROFILE_DOC_VERSION, type PhotoIngestResult, type PhotoMediaRef, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type PromptPreProcessor, type PromptPreProcessorContext, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, QueueManager, type QueueStatus, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankableVaultMemory, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SHORT_TTL_MS, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, type SearchSource, type SendMessageWithStorageArgs, type SendMessageWithStorageDetachedResult, type SendMessageWithStorageResult, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type StockPriceClassification, type StockPricePreProcessorOptions, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredMessage, type StoredMessageWithSimilarity, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type SynthesizeProfileOptions, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, addConversationMemoriesOp, archiveVaultMemoryOp, backfillMemoryTopicsOp, buildNotionAuthUrl, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createLlmDecayClassifier, createLlmNeighborRefiner, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionTools, createPlatformCursorStore, createRecallTool, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getLogger, getMemoriesNeedingTopicExtractionOp, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, hardDeleteDecayedOp, hasEncryptionKey, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isDegradedTopicSkip, isPiiRedactor, isRerankerAvailable, maskScopedEmbeddingCache, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|
|
10863
|
+
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkVectorCache, type ChunkingOptions, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMessageOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, ENTITY_FANOUT, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionTimings, type FactType, type FileMetadata, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type ManualFactType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryToVerify, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageRedactionResult, type MessageSkeleton, NEVER_TTL_MS, NODE_BUDGET, NOTION_OAUTH_CONFIG, type NeighborRefiner, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, type NowSource, type ObservationTrend, type ObservationTrendInput, PAST_EVENT_GRACE_MS, PII_PATTERNS, PROFILE_DOC_VERSION, type PhotoIngestResult, type PhotoMediaRef, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type PromptPreProcessor, type PromptPreProcessorContext, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, QueueManager, type QueueStatus, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankableVaultMemory, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SHORT_TTL_MS, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, type SearchSource, type SendMessageWithStorageArgs, type SendMessageWithStorageDetachedResult, type SendMessageWithStorageResult, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type StockPriceClassification, type StockPricePreProcessorOptions, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredMessage, type StoredMessageWithSimilarity, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type SynthesizeProfileOptions, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, addConversationMemoriesOp, archiveVaultMemoryOp, backfillMemoryTopicsOp, buildNotionAuthUrl, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createLlmDecayClassifier, createLlmNeighborRefiner, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionTools, createPlatformCursorStore, createRecallTool, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getLogger, getMemoriesNeedingTopicExtractionOp, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, hardDeleteDecayedOp, hasEncryptionKey, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isDegradedTopicSkip, isPiiRedactor, isRerankerAvailable, maskScopedEmbeddingCache, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|