Memory data model

Updated:

View field support, webhooks, and list parameters for each integration on the Supported Integrations page.

FieldTypeRequiredDescription
idstringNo
created_atstring (date-time)No(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atstring (date-time)No(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
typeenumNoFOLDER for a memory store or a sub-folder in one, MEMORY for a memory. Values: FOLDER, MEMORY
parent_idstringNoid of the parent genai_memory folder. Empty on root-level nodes.
user_identifierstringNoThe customer's own identifier for the end user that the memory belongs to.
namestringNoThe folder name, or the memory's file name where the integration organizes memories by path.
contentstringNoThe memory text. MEMORY nodes only.
descriptionstringNoThe memory store's description. Store-level folders only.
metadataGenaiMetadata[]No
metadata[].idstringNo
metadata[].slugstringNo
metadata[].valueobjectNo
metadata[].namespacestringNo
metadata[].formatenumNoValues: TEXT, NUMBER, DATE, BOOLEAN, FILE, TEXTAREA, SINGLE_SELECT, MULTIPLE_SELECT, MEASUREMENT, PRICE, YES_NO, CURRENCY, URL
metadata[].extra_dataobjectNo

TypeScript

TypeScript
export type GenaiMemory = {
	id?: string;
	created_at?: string-time; // (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	updated_at?: string-time; // (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	type?: 'FOLDER' | 'MEMORY'; // FOLDER for a memory store or a sub-folder in one, MEMORY for a memory.
	parent_id?: string; // id of the parent genai_memory folder. Empty on root-level nodes.
	user_identifier?: string; // The customer's own identifier for the end user that the memory belongs to.
	name?: string; // The folder name, or the memory's file name where the integration organizes memories by path.
	content?: string; // The memory text. MEMORY nodes only.
	description?: string; // The memory store's description. Store-level folders only.
	metadata?: [];
	raw?: any;
} 

Zod

Zod
import { z } from 'zod';

export const ZodGenaiMemory = z.object({
	id: z.string().optional(),
	created_at: z.string-time().optional().describe("(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	updated_at: z.string-time().optional().describe("(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	type: z.enum("FOLDER", "MEMORY").optional().describe("FOLDER for a memory store or a sub-folder in one, MEMORY for a memory."),
	parent_id: z.string().optional().describe("id of the parent genai_memory folder. Empty on root-level nodes."),
	user_identifier: z.string().optional().describe("The customer's own identifier for the end user that the memory belongs to."),
	name: z.string().optional().describe("The folder name, or the memory's file name where the integration organizes memories by path."),
	content: z.string().optional().describe("The memory text. MEMORY nodes only."),
	description: z.string().optional().describe("The memory store's description. Store-level folders only."),
	metadata: z.array().optional(),

});

Python

Python
import dataclasses

@dataclasses.dataclass
class GenaiMemoryType(str, Enum):
	FOLDER = 'FOLDER'
	MEMORY = 'MEMORY'

@dataclasses.dataclass
class GenaiMemory:
	id: Optional[str]
	"""(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	created_at: Optional[str]
	"""(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	updated_at: Optional[str]
	"""FOLDER for a memory store or a sub-folder in one, MEMORY for a memory."""
	type: Optional[GenaiMemoryType]
	"""id of the parent genai_memory folder. Empty on root-level nodes."""
	parent_id: Optional[str]
	"""The customer's own identifier for the end user that the memory belongs to."""
	user_identifier: Optional[str]
	"""The folder name, or the memory's file name where the integration organizes memories by path."""
	name: Optional[str]
	"""The memory text. MEMORY nodes only."""
	content: Optional[str]
	"""The memory store's description. Store-level folders only."""
	description: Optional[str]
	metadata: Optional[PropertyGenaiMemoryMetadata]
Are we missing anything? Let us know
Was this page helpful?