Skip to main content

Function: resolvePromptCache()

resolvePromptCache(cacheControl): ResolvedPromptCache | undefined

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

Turn a caller option into a concrete plan, or undefined when nothing should be stamped.

  • true → chat shorthand: last-tool + system + last 4 (still capped later)
  • false / undefined → off
  • object without scope / lastMessages → prefix-only (last-tool + system)

Parameters

cacheControl

CacheControlOption | undefined

Returns

ResolvedPromptCache | undefined