SAP AI SDK for JavaScript - v2.12.0
    Preparing search index...

    Type Alias CacheControl

    Cache control directive for Anthropic prompt caching. Only applicable to Anthropic Claude models. When set, marks the content block as a cache breakpoint.

    type CacheControl = {
        ttl?: "5m" | "1h";
        type: "ephemeral";
    }
    Index

    Properties

    Properties

    ttl?: "5m" | "1h"

    Time-to-live for the cache entry. Default is "5m" (5 minutes). "1h" (1 hour) is supported on select models (e.g. Claude Opus 4.5, Haiku 4.5, Sonnet 4.5).

    Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.

    type: "ephemeral"