VerifyMemoriesForPublishOptions
Defined in: src/lib/memory/verifySupport.ts:145
Auth + tuning for verifyMemoriesForPublish. Auth is the dual pattern
— one of apiKey / getToken is required at runtime (see
PortalLlmAuth); without it nothing is verified.
Extends
Properties
apiKey?
optionalapiKey:string
Defined in: src/lib/memory/portalLlm.ts:72
Direct API key — sent as x-api-key (server-side / CLI usage). Wins when both are provided.
Inherited from
backoffMs()?
optionalbackoffMs: (attempt:number) =>number
Defined in: src/lib/memory/verifySupport.ts:155
Backoff before each retry (ms). Tests pass () => 0.
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
number
baseUrl?
optionalbaseUrl:string
Defined in: src/lib/memory/verifySupport.ts:146
fetchFn()?
optionalfetchFn: {(input:RequestInfo|URL,init?:RequestInit):Promise<Response>; (input:string|Request|URL,init?:RequestInit):Promise<Response>; }
Defined in: src/lib/memory/verifySupport.ts:149
Override fetch (tests).
Call Signature
(
input:RequestInfo|URL,init?:RequestInit):Promise<Response>
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
|
|
Returns
Promise<Response>
Call Signature
(
input:string|Request|URL,init?:RequestInit):Promise<Response>
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
|
|
Returns
Promise<Response>
getToken()?
optionalgetToken: () =>Promise<string|null>
Defined in: src/lib/memory/portalLlm.ts:74
Function to get an auth token (e.g., Privy’s getIdentityToken). Token is sent as Authorization: Bearer.
Returns
Promise<string | null>
Inherited from
maxAttempts?
optionalmaxAttempts:number
Defined in: src/lib/memory/verifySupport.ts:151
Max portal attempts on a TRANSIENT failure. Default 2.
maxEvidenceChars?
optionalmaxEvidenceChars:number
Defined in: src/lib/memory/verifySupport.ts:178
Per-memory cap on joined evidence characters. Default 2000.
maxItems?
optionalmaxItems:number
Defined in: src/lib/memory/verifySupport.ts:176
Max memories verified in one call; the rest come back unchecked
(over-budget). Default 20.
model?
optionalmodel:string
Defined in: src/lib/memory/verifySupport.ts:147
piiRedaction?
optionalpiiRedaction:boolean|PiiRedactor
Defined in: src/lib/memory/verifySupport.ts:173
PII redaction for the outbound fact + evidence.
OPT-OUT: defaults to ON (a fresh per-call redactor) when omitted, the same
posture as the LLM decay classifier. This is a standalone entry point — there
is no extract.piiRedaction upstream of it to inherit from the way the
injection classifier and consolidation inherit theirs — so an off-by-
default switch would mean the widest memory egress in the SDK (fact text
PLUS raw conversation) shipping raw unless a client remembered a flag.
Pass false to deliberately disable it.
Pass a shared PiiRedactor to keep placeholder numbering consistent with other calls in the same session. Either way ONE instance covers a whole call, so the same value redacts to the same placeholder in the fact and in the evidence — with two instances entailment would break on every redacted value.
totalTimeoutMs?
optionaltotalTimeoutMs:number
Defined in: src/lib/memory/verifySupport.ts:153
Absolute wall-clock budget across attempts. Default 20s.