Skip to content

CachePointBlock

Defined in: src/types/messages.ts:353

Cache point block for prompt caching. Marks a position in a message or system prompt where caching should occur.

new CachePointBlock(data): CachePointBlock;

Defined in: src/types/messages.ts:364

ParameterType
dataCachePointBlockData

CachePointBlock

readonly type: "cachePointBlock";

Defined in: src/types/messages.ts:357

Discriminator for cache point.


readonly cacheType: "default";

Defined in: src/types/messages.ts:362

The cache type. Currently only ‘default’ is supported.

CachePointBlockData.cacheType