Memory
Optimize User Memories
Optimize all memories for a given user using the default summarize strategy. This operation combines all memories into a single comprehensive summary, achieving maximum token reduction while preserving all key information. To use a custom model, specify the model parameter in 'provider:model_id' format (e.g., 'openai:gpt-4o-mini', 'anthropic:claude-3-5-sonnet-20241022'). If not specified, uses MemoryManager's default model (gpt-4o). Set apply=false to preview optimization results without saving to database.
post/optimize-memories
Request
- The document declares no server URL.
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
db_idstring nullable
Database ID to use for optimization
tablestring nullable
Table to use for optimization
Request body
Response
Memories optimized successfully
Changes
No recorded changes to this operation across all 1 revision of this API.