Skip to Content
Anuma SDKReactInternalInterfacesMemoryVaultToolOptions

MemoryVaultToolOptions

Defined in: src/lib/memoryVault/tool.ts:37 

Options for creating a memory vault tool.

Properties

folderMap?

optional folderMap: Map<string, string>

Defined in: src/lib/memoryVault/tool.ts:58 

Map of folder names to folder IDs for auto-classification. When provided, the LLM can specify a folderName argument.


onSave()?

optional onSave: (operation: VaultSaveOperation) => Promise<boolean>

Defined in: src/lib/memoryVault/tool.ts:46 

Callback invoked before each save operation. Return true to confirm the save, false to cancel it.

When provided, the confirmation is built into the executor. When not provided, the tool has no executor and is emitted via onToolCall so the host app can handle it.

Parameters

ParameterType

operation

VaultSaveOperation

Returns

Promise<boolean>


scope?

optional scope: string

Defined in: src/lib/memoryVault/tool.ts:52 

Scope to assign to new memories. Defaults to “private”. This is injected by the client, not controlled by the LLM.

Last updated on