Ephemeral

@SerialName(value = "ephemeral")
data class Ephemeral(val ttl: CacheTtl? = null) : AnthropicCacheControl(source)

Ephemeral cache type.

Caches the prompt prefix up to and including the block this is attached to. Cache entries are reused across requests that share the same prefix within the TTL window.

Constructors

Link copied to clipboard
constructor(ttl: CacheTtl? = null)

Properties

Link copied to clipboard

Optional time-to-live for the cache entry.