Claude · Schema

CacheControl

Cache control settings for prompt caching.

Artificial IntelligenceChatbotConversational AIGenerative AILarge Language ModelsMachine LearningNatural Language Processing

Properties

Name Type Description
type string
ttl string Time-to-live for the cache entry.
View JSON Schema on GitHub

JSON Schema

claude-messages-cache-control-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "CacheControl",
  "type": "object",
  "description": "Cache control settings for prompt caching.",
  "properties": {
    "type": {
      "type": "string"
    },
    "ttl": {
      "type": "string",
      "description": "Time-to-live for the cache entry."
    }
  }
}