refactor(config): update summarizationTriggerSchema to use enum for type validation

Changed the type of the `type` field in the summarizationTriggerSchema from a string to an enum with a single value 'token_count'. This modification enhances type safety and ensures that only valid types are accepted in the configuration, improving overall clarity and maintainability of the schema.
This commit is contained in:
Danny Avila 2026-03-11 22:50:59 -04:00
parent d61689e84c
commit f75bcd459e
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956

View file

@ -951,7 +951,7 @@ export const memorySchema = z.object({
export type TMemoryConfig = DeepPartial<z.infer<typeof memorySchema>>;
export const summarizationTriggerSchema = z.object({
type: z.string(),
type: z.enum(['token_count']),
value: z.number().positive(),
});