#!/usr/bin/env bash # STATUS: LIVE_VERIFIED 2026-09-18 — same sequence run via scripts/live.py (create → retrieve → list → poll → results → delete; cancel path). # Model: claude-haiku-4-5-20251001, 2 requests of 8 max_tokens (~$0.0001 at batch prices). # Usage: source scripts/lib.sh && bash examples/anthropic/batch/batch_lifecycle.sh # Requires: jq set -eo pipefail cd "$(dirname "$0")/../../.." # shellcheck disable=SC1091 source scripts/lib.sh OUTF=$(mktemp); trap 'rm -f "$OUTF"' EXIT call() { ant "$@" > "$OUTF"; OUT="$(cat "$OUTF")"; } # runs a request, keeps body in $OUT and status in $ANT_STATUS MODEL="claude-haiku-4-5-20251001" body=$(cat <