Python 88.3%
TypeScript 7.6%
Shell 4.1%
1#!/usr/bin/env bash2# System prompt as array of text blocks (with cache_control) + top-level cache_control3# STATUS: LIVE_VERIFIED 2026-09-18 (curl via scripts/lib.sh `ant` wrapper; key injected from .env, never printed)4# Run: bash examples/anthropic/messages/system.sh5set -eo pipefail6source "$(dirname "$0")/../../../scripts/lib.sh"; out="$(mktemp)"; trap 'rm -f "$out"' EXIT7ant POST /v1/messages -d '{"model":"claude-haiku-4-5-20251001","max_tokens":16,8 "system":[{"type":"text","text":"You are terse. Answer in one word.","cache_control":{"type":"ephemeral"}}],9 "messages":[{"role":"user","content":"Reply with OK."}]}' > "$out"; mask < "$out"10echo; echo "HTTP $ANT_STATUS"; log_request anthropic POST /v1/messages "$ANT_STATUS" 0.00004 "example system.sh"11