PortalLlmAuth
Defined in: src/lib/memory/portalLlm.ts:70
Auth for portal LLM calls (extraction, consolidation, decomposition,
reflection). Mirrors memoryEngine’s EmbeddingOptions dual-auth:
apiKey: For direct API keys (uses x-api-key header)getToken: For Privy identity tokens (uses Authorization: Bearer header)
At least one of apiKey or getToken must be provided (enforced at
runtime); apiKey takes precedence when both are set.
Extended by
ExtractFactsOptionsInjectionClassifierOptionsLlmDecayClassifierOptionsLlmNeighborRefinerOptionsReflectOptionsSynthesizeProfileOptionsTopicExtractOptionsVerifyMemoriesForPublishOptions
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.
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>
Last updated on