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-cachecontrol-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CacheControl",
  "title": "CacheControl",
  "type": "object",
  "description": "Cache control settings for prompt caching.",
  "required": [
    "type"
  ],
  "properties": {
    "type": {
      "type": "string",
      "const": "ephemeral",
      "example": "example_value"
    },
    "ttl": {
      "type": "string",
      "description": "Time-to-live for the cache entry.",
      "enum": [
        "5m",
        "1h"
      ],
      "example": "5m"
    }
  }
}