From f75bcd459e271ae7d0bb764e1f338c155f2c320a Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Wed, 11 Mar 2026 22:50:59 -0400 Subject: [PATCH] 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. --- packages/data-provider/src/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/data-provider/src/config.ts b/packages/data-provider/src/config.ts index 4fc3a9d824..f7f6de22d4 100644 --- a/packages/data-provider/src/config.ts +++ b/packages/data-provider/src/config.ts @@ -951,7 +951,7 @@ export const memorySchema = z.object({ export type TMemoryConfig = DeepPartial>; export const summarizationTriggerSchema = z.object({ - type: z.string(), + type: z.enum(['token_count']), value: z.number().positive(), });