CapabilityWire
// event · sdk

Anthropic Python SDK v1.2.0 promotes files/skills to GA and hardens agent tools

sdk
vendor: anthropicpublished: 1d agoconfidence: 0.90id: 6ba779b7-2786-429a-956c-0572471955d4

The Anthropic Python SDK 1.2.0 moves the beta files and skills namespaces onto GA shapes (dropping dated beta header pins), fixes AWS Bedrock signing for binary file uploads, lets the read tool return a view_range for files over the size cap, preserves exact file bytes (no newline translation) in the agent toolset and memory tool, makes session event accumulators forward-compatible with new event types, and tightens webhook `unwrap()` header handling.

capability delta

An agent can now call Anthropic's files and skills APIs via GA shapes without dated beta headers, upload binary files through Bedrock, and read oversized files by view_range while the memory/agent toolset preserves exact bytes.

curator note

Minor version bump but meaningful: files/skills GA promotion removes friction for agent builders, and multiple agent-toolset bug fixes (byte preservation, oversized read via view_range) matter for coding/memory agents.

// install
pip install anthropic==1.2.0
pypi · anthropic @ 1.2.0
// example
python
from anthropic import Anthropic

client = Anthropic()

# Files namespace is now GA — no dated beta header required
with open("report.pdf", "rb") as f:
    uploaded = client.files.upload(file=f)

resp = client.messages.create(
    model="claude-sonnet-4-5",
    max_tokens=512,
    messages=[{
        "role": "user",
        "content": [
            {"type": "document", "source": {"type": "file", "file_id": uploaded.id}},
            {"type": "text", "text": "Summarize this document."},
        ],
    }],
)
print(resp.content[0].text)
// links
anthropicpythonclaudefiles-apiskillsbedrockagent-toolsmemory-tool
source: github_release · https://github.com/anthropics/anthropic-sdk-python/releases/tag/v1.2.0