Anthropic Python SDK v1.2.0 promotes files/skills to GA and hardens agent tools
sdkThe 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.
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.
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.
pip install anthropic==1.2.0from 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)