update_long_term_memory
Modify existing long-term memories by updating trigger conditions, content, or context to maintain accurate and relevant stored information over time.
Instructions
Update an existing long-term memory. You can update the trigger condition, prompt content, or add update context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| trigger | No | ||
| prompt | No | ||
| updatedContext | No | ||
| recentMessages | No |
Input Schema (JSON Schema)
{
"properties": {
"name": {
"_def": {
"checks": [],
"coerce": false,
"description": "Name of the memory to update",
"typeName": "ZodString"
},
"~standard": {
"vendor": "zod",
"version": 1
}
},
"prompt": {
"_def": {
"description": "New memory content",
"innerType": {
"_def": {
"checks": [],
"coerce": false,
"typeName": "ZodString"
},
"~standard": {
"vendor": "zod",
"version": 1
}
},
"typeName": "ZodOptional"
},
"~standard": {
"vendor": "zod",
"version": 1
}
},
"recentMessages": {
"_def": {
"description": "Optional recent messages to auto-generate updatedContext",
"innerType": {
"_def": {
"exactLength": null,
"maxLength": null,
"minLength": null,
"type": {
"_cached": null,
"_def": {
"catchall": {
"_def": {
"typeName": "ZodNever"
},
"~standard": {
"vendor": "zod",
"version": 1
}
},
"typeName": "ZodObject",
"unknownKeys": "strip"
},
"~standard": {
"vendor": "zod",
"version": 1
}
},
"typeName": "ZodArray"
},
"~standard": {
"vendor": "zod",
"version": 1
}
},
"typeName": "ZodOptional"
},
"~standard": {
"vendor": "zod",
"version": 1
}
},
"trigger": {
"_def": {
"description": "New trigger condition (JavaScript code)",
"innerType": {
"_def": {
"checks": [],
"coerce": false,
"typeName": "ZodString"
},
"~standard": {
"vendor": "zod",
"version": 1
}
},
"typeName": "ZodOptional"
},
"~standard": {
"vendor": "zod",
"version": 1
}
},
"updatedContext": {
"_def": {
"description": "Context about this update",
"innerType": {
"_def": {
"checks": [],
"coerce": false,
"typeName": "ZodString"
},
"~standard": {
"vendor": "zod",
"version": 1
}
},
"typeName": "ZodOptional"
},
"~standard": {
"vendor": "zod",
"version": 1
}
}
},
"required": [
"name"
],
"type": "object"
}