Update Memory
AI-generatedSummary
Update an existing memory by its unique ID, modifying its type, confidence score, optional content, and metadata.
Inputs
- Memory ID (required) — The unique identifier of the memory to update.
- Memory Type (required) — The category of the memory, such as Fact, Preference, Observation, Habit, Skill, Goal, or Insight.
- Confidence (required) — A confidence score for the memory, between 0 and 1.
- New Content — Optional updated content for the memory.
- Metadata — Additional metadata in JSON format to associate with the memory.
Output shape
A single object representing the updated memory, returned in the node's JSON output.
Returns the updated memory record as JSON. If the provided metadata is a non-empty JSON string, it is parsed and updated accordingly. The operation requires the unique Memory ID. Errors will be returned if update fails.
Examples
Example 1: Update an existing memory with ID '12345', changing its type to 'insight', confidence to 0.9, updating its content, and adding metadata.
Memory ID=12345, Memory Type=Insight, Confidence=0.9, New Content='Updated memory details here', Metadata='{"source":"user input"}'