claude-api
Originally fromjezweb/claude-skills
Installation
SKILL.md
Claude API - Structured Outputs & Error Prevention Guide
Package: @anthropic-ai/sdk@0.70.1 (Nov 20, 2025) Breaking Changes: Oct 2025 - Claude 3.5/3.7 models retired, Nov 2025 - Structured outputs beta Last Updated: 2025-11-22
What's New in v0.69.0+ (Nov 2025)
Major Features:
1. Structured Outputs (v0.69.0, Nov 14, 2025) - CRITICAL ⭐
Guaranteed JSON schema conformance - Claude's responses strictly follow your JSON schema with two modes:
JSON Outputs (output_format) - For data extraction and formatting:
import Anthropic from '@anthropic-ai/sdk';