22
33from __future__ import annotations
44
5- from typing import Dict , Union
5+ from typing import Dict , Union , Optional
66
77import httpx
88
@@ -105,7 +105,10 @@ def update_memory(
105105 new_content : str ,
106106 id : str | Omit = omit ,
107107 content : str | Omit = omit ,
108+ forget_after : Optional [str ] | Omit = omit ,
109+ forget_reason : Optional [str ] | Omit = omit ,
108110 metadata : Dict [str , Union [str , float , bool , SequenceNotStr [str ]]] | Omit = omit ,
111+ temporal_context : memory_update_memory_params .TemporalContext | Omit = omit ,
109112 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
110113 # The extra values given here take precedence over values defined on the client or passed to this method.
111114 extra_headers : Headers | None = None ,
@@ -128,8 +131,18 @@ def update_memory(
128131 content: Exact content match of the memory entry to operate on. Use this when you don't
129132 have the ID.
130133
134+ forget_after: ISO 8601 datetime string. The memory will be auto-forgotten after this time.
135+ Pass null to clear an existing expiry. Omit to inherit from the previous
136+ version.
137+
138+ forget_reason: Optional reason for the scheduled forgetting. Cleared automatically when
139+ forgetAfter is set to null.
140+
131141 metadata: Optional metadata. If not provided, inherits from the previous version.
132142
143+ temporal_context: Structured temporal metadata. Merged into the metadata JSON column. If omitted,
144+ existing temporalContext is preserved.
145+
133146 extra_headers: Send extra headers
134147
135148 extra_query: Add additional query parameters to the request
@@ -146,7 +159,10 @@ def update_memory(
146159 "new_content" : new_content ,
147160 "id" : id ,
148161 "content" : content ,
162+ "forget_after" : forget_after ,
163+ "forget_reason" : forget_reason ,
149164 "metadata" : metadata ,
165+ "temporal_context" : temporal_context ,
150166 },
151167 memory_update_memory_params .MemoryUpdateMemoryParams ,
152168 ),
@@ -238,7 +254,10 @@ async def update_memory(
238254 new_content : str ,
239255 id : str | Omit = omit ,
240256 content : str | Omit = omit ,
257+ forget_after : Optional [str ] | Omit = omit ,
258+ forget_reason : Optional [str ] | Omit = omit ,
241259 metadata : Dict [str , Union [str , float , bool , SequenceNotStr [str ]]] | Omit = omit ,
260+ temporal_context : memory_update_memory_params .TemporalContext | Omit = omit ,
242261 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
243262 # The extra values given here take precedence over values defined on the client or passed to this method.
244263 extra_headers : Headers | None = None ,
@@ -261,8 +280,18 @@ async def update_memory(
261280 content: Exact content match of the memory entry to operate on. Use this when you don't
262281 have the ID.
263282
283+ forget_after: ISO 8601 datetime string. The memory will be auto-forgotten after this time.
284+ Pass null to clear an existing expiry. Omit to inherit from the previous
285+ version.
286+
287+ forget_reason: Optional reason for the scheduled forgetting. Cleared automatically when
288+ forgetAfter is set to null.
289+
264290 metadata: Optional metadata. If not provided, inherits from the previous version.
265291
292+ temporal_context: Structured temporal metadata. Merged into the metadata JSON column. If omitted,
293+ existing temporalContext is preserved.
294+
266295 extra_headers: Send extra headers
267296
268297 extra_query: Add additional query parameters to the request
@@ -279,7 +308,10 @@ async def update_memory(
279308 "new_content" : new_content ,
280309 "id" : id ,
281310 "content" : content ,
311+ "forget_after" : forget_after ,
312+ "forget_reason" : forget_reason ,
282313 "metadata" : metadata ,
314+ "temporal_context" : temporal_context ,
283315 },
284316 memory_update_memory_params .MemoryUpdateMemoryParams ,
285317 ),
0 commit comments