Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

fix: Bug: Zod Schema Incompatible with OpenAI Structured Outputs API (#3462)

Aditya Paulc39d5ada4dc1
diff --git a/mem0-ts/src/oss/src/prompts/index.ts b/mem0-ts/src/oss/src/prompts/index.ts
index c39ac25db..96cd762dd 100644
--- a/mem0-ts/src/oss/src/prompts/index.ts
+++ b/mem0-ts/src/oss/src/prompts/index.ts
@@ -31,6 +31,7 @@ export const MemoryUpdateSchema = z.object({
old_memory: z
.string()
.optional()
+ .nullable()
.describe(
"The previous content of the memory item if the event was UPDATE.",
),