---
url: 'https://adk.nht.io/api/@nhtio/adk/batteries/interfaces/MemoryAttrs.md'
description: Attribute bag rendered onto a memory block.
---

# Interface: MemoryAttrs

Defined in: [src/batteries/llm/chat\_common/types.ts:159](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/batteries/llm/chat_common/types.ts#L159)

Attribute bag rendered onto a memory block.

## Properties

| Property                                     | Type     | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | Defined in                                                                                                                                    |
| -------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
|  `createdAt?` | `string` | ISO-8601 creation timestamp of the memory.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | [src/batteries/llm/chat\_common/types.ts:173](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/batteries/llm/chat_common/types.ts#L173) |
|  `kind?`           | `string` | Memory classifier.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | [src/batteries/llm/chat\_common/types.ts:175](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/batteries/llm/chat_common/types.ts#L175) |
|  `nonce`          | `string` | Nonce binding the block's open and close markers together — it becomes part of the tag NAME (`<..._<nonce>>`) so a model mirroring the block cannot forge a sibling's closer. FOOTGUN: this nonce MUST be unguessable AND non-path-shaped. It is typically the source record's id; a path-shaped id (e.g. `chunk-assembly-events-9`) is copied by small models as a CITATION (`/assembly/events-9`), which a doc-path validator then rejects → re-cite loop. Mint record ids with `crypto.randomUUID()`; carry page/human provenance in `source=` (rendered before `nonce=`), never in the id. | [src/batteries/llm/chat\_common/types.ts:169](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/batteries/llm/chat_common/types.ts#L169) |
|  `score?`         | `number` | Relevance/recall score, when the memory was retrieved by similarity.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | [src/batteries/llm/chat\_common/types.ts:177](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/batteries/llm/chat_common/types.ts#L177) |
|  `source?`       | `string` | Origin of the memory (e.g. the producing subsystem).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | [src/batteries/llm/chat\_common/types.ts:171](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/batteries/llm/chat_common/types.ts#L171) |
