Skip to content
1 min read · 60 words

Variable: storeMemoryTool

ts
const storeMemoryTool: Tool<SpooledJsonArtifact<unknown>>;

Create a new @nhtio/adk!Memory record and persist it via the context's storeMemory callback.

Remarks

When id is omitted, a UUID v6 is generated. When createdAt / updatedAt are omitted, the current time is used. The model authors content, confidence, and importance directly. The resulting record is added to ctx.turnMemories and flushed to the consumer's persistence layer.