Skip to main content

Function: coalesceCacheControl()

coalesceCacheControl(opts): CacheControlOption | undefined

Defined in: packages/core/src/prompt-cache.ts:80

Coalesce the three caller knobs. Precedence: cache (including false), then cacheControl (including false), then construction-time model config, then the enableCaching: true shorthand.

Parameters​

opts​

cache?​

CacheControlOption

cacheControl?​

CacheControlOption

enableCaching?​

boolean

modelCacheControl?​

CacheControlOption

Returns​

CacheControlOption | undefined