Variable contextCacheConfigSchemaConst

contextCacheConfigSchema: ZodObject<{
    cacheIntervals: ZodDefault<ZodNumber>;
    ttlSeconds: ZodDefault<ZodNumber>;
    minTokens: ZodDefault<ZodNumber>;
}, $strip> = ...

Type declaration

  • cacheIntervals: ZodDefault<ZodNumber>

    Maximum number of invocations to reuse the same cache before refreshing it. Must be between 1 and 100.

    10
    
  • ttlSeconds: ZodDefault<ZodNumber>

    Time-to-live for cache in seconds. Must be greater than 0. Default: 1800 (30 minutes).

    1800
    
  • minTokens: ZodDefault<ZodNumber>

    Minimum estimated request tokens required to enable caching. Set higher to avoid caching small requests where overhead may exceed benefits.

    0