src / config.ts
import { createConfigSchematics } from "@lmstudio/sdk";
export const configSchematics = createConfigSchematics()
.field(
"memoryInjectionEnabled",
"boolean",
{
displayName: "Auto-inject relevant memories",
subtitle: "Search memory automatically on every message and add matches to context before the model responds.",
},
true,
)
.field(
"retrievalLimit",
"numeric",
{
int: true,
min: 1,
displayName: "Retrieval Limit",
subtitle: "Maximum number of stored memories to inject per message.",
slider: { min: 1, max: 10, step: 1 },
},
5,
)
.build();