Interface: MemoryProviderHookOptions
Defined in: packages/agentos/src/api/runtime/memoryProviderHooks.ts:34
Optional caller overrides for the memory-hook budget guards. Both fields default to the module constants when omitted, preserving the historical behavior for existing callers.
Properties
timeoutMs?
optionaltimeoutMs:number
Defined in: packages/agentos/src/api/runtime/memoryProviderHooks.ts:41
Timeout (ms) applied to each getContext call. When the provider loses
the race the turn ships without memory context and a memory.hook_failed
event is written.
Defaults to MEMORY_TIMEOUT_MS.
tokenBudget?
optionaltokenBudget:number
Defined in: packages/agentos/src/api/runtime/memoryProviderHooks.ts:48
Token budget forwarded to getContext as the ceiling of the recalled
text. The <memory_recall> block it is sent in adds its tags, its note,
each record's keys and the escapes of <, > and & beyond it.
Defaults to DEFAULT_MEMORY_TOKEN_BUDGET.