memory: ({ runtimeContext }) =>
new Memory({
storage: store,
processors: [
new ToolCallFilter({
exclude: ["giteaOps", "fileOps", "repoInventory", "outdatedPackages"],
}),
new TokenLimiter(32000),
],
options: {
lastMessages: 50,
threads: {
generateTitle: {
model: ({ runtimeContext }) => {
return getTitleModel();
},
instructions:
"Generate a SHORT, punchy title for this chat. Max 6 words. DO NOT just rephrase the user's question.\n\nBAD: 'What is Walker Package', 'Outdated Packages Query', 'Package Information Request'\nGOOD: 'Walker Deep Dive', 'Package Update Hunt', 'Hyprland Bump', 'Finding Stale Packages'\n\nDrop filler words (what/is/the/a). Use package names. Use action words like: Hunt, Bump, Fix, Check, Explore, Debug.",
},
},
},
}),
memory: ({ runtimeContext }) =>
new Memory({
storage: store,
processors: [
new ToolCallFilter({
exclude: ["giteaOps", "fileOps", "repoInventory", "outdatedPackages"],
}),
new TokenLimiter(32000),
],
options: {
lastMessages: 50,
threads: {
generateTitle: {
model: ({ runtimeContext }) => {
return getTitleModel();
},
instructions:
"Generate a SHORT, punchy title for this chat. Max 6 words. DO NOT just rephrase the user's question.\n\nBAD: 'What is Walker Package', 'Outdated Packages Query', 'Package Information Request'\nGOOD: 'Walker Deep Dive', 'Package Update Hunt', 'Hyprland Bump', 'Finding Stale Packages'\n\nDrop filler words (what/is/the/a). Use package names. Use action words like: Hunt, Bump, Fix, Check, Explore, Debug.",
},
},
},
}),