Skip to Content
Anuma SDKReactInternalInterfacesVerifyMemoriesForPublishOptions

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?

optional apiKey: 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

PortalLlmAuth.apiKey


backoffMs()?

optional backoffMs: (attempt: number) => number

Defined in: src/lib/memory/verifySupport.ts:155 

Backoff before each retry (ms). Tests pass () => 0.

Parameters

ParameterType

attempt

number

Returns

number


baseUrl?

optional baseUrl: string

Defined in: src/lib/memory/verifySupport.ts:146 


fetchFn()?

optional fetchFn: {(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>

MDN Reference 

Parameters

ParameterType

input

RequestInfo | URL

init?

RequestInit

Returns

Promise<Response>

Call Signature

(input: string | Request | URL, init?: RequestInit): Promise<Response>

MDN Reference 

Parameters

ParameterType

input

string | Request | URL

init?

RequestInit

Returns

Promise<Response>


getToken()?

optional getToken: () => 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

PortalLlmAuth.getToken


maxAttempts?

optional maxAttempts: number

Defined in: src/lib/memory/verifySupport.ts:151 

Max portal attempts on a TRANSIENT failure. Default 2.


maxEvidenceChars?

optional maxEvidenceChars: number

Defined in: src/lib/memory/verifySupport.ts:178 

Per-memory cap on joined evidence characters. Default 2000.


maxItems?

optional maxItems: 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?

optional model: string

Defined in: src/lib/memory/verifySupport.ts:147 


piiRedaction?

optional piiRedaction: 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?

optional totalTimeoutMs: number

Defined in: src/lib/memory/verifySupport.ts:153 

Absolute wall-clock budget across attempts. Default 20s.

Last updated on