Releases: anthropics/anthropic-sdk-go
Releases · anthropics/anthropic-sdk-go
v1.6.0
1.6.0 (2025-07-18)
Full Changelog: v1.5.0...v1.6.0
Features
- client: expand max streaming buffer size (8b206e2)
Bug Fixes
- api: revert change to NewToolResultBlock (b4167e7)
- client: fix default timeout logic to match other languages (47e47f5)
- tests: make sure to build examples in scripts/lint (69bcb13)
Chores
- api: update BetaCitationSearchResultLocation (5d040a7)
- internal: fix lint script for tests (f54301d)
- internal: restructure things to avoid conflicts (5f1bead)
- lint tests (4a64d14)
- lint tests in subpackages (4ae61a6)
Documentation
v1.5.0
1.5.0 (2025-07-03)
Full Changelog: v1.4.0...v1.5.0
Features
- add RequestID to API errors (884f13b)
- api: add support for Search Result Content Blocks (1f6ab8a)
- api: api update (27a18f2)
- api: manual updates (926b094)
- client: add debug log helper (e427bb3)
- client: add escape hatch for null slice & maps (9e3ded0)
- vertex: support global region endpoint (3c0b86d)
Bug Fixes
- client: deprecate BetaBase64PDFBlock in favor of BetaRequestDocumentBlock (5d8fd96)
- don't try to deserialize as json when ResponseBodyInto is []byte (0e7ce7b)
- pagination: check if page data is empty in GetNextPage (d64dc0a)
Chores
- api: mark claude-3-opus-20240229 as deprecated (1472af8)
- ci: enable for pull requests (cdb1340)
- ci: only run for pushes and fork pull requests (d7d44ff)
- fix documentation of null map (c79ab28)
- internal: add breaking change detection (49a1855)
Documentation
- simplify message creation syntax in README example (#203) (c4aef2e)
- update models and non-beta (a7bc60e)
Refactors
- improve Error() method to avoid code duplication (43651c2)
v1.4.0
1.4.0 (2025-06-04)
Full Changelog: v1.3.0...v1.4.0
Features
- client: allow overriding unions (079149c)
Chores
- internal: codegen related update (853ba1f)
v1.3.0
1.3.0 (2025-06-03)
Full Changelog: v1.2.2...v1.3.0
Features
- client: add support for new text_editor_20250429 tool (b33c543)
v1.2.2
1.2.2 (2025-06-02)
Full Changelog: v1.2.1...v1.2.2
Bug Fixes
Chores
- make go mod tidy continue on error (ac184b4)
v1.2.1
v1.2.0
1.2.0 (2025-05-22)
Full Changelog: v1.1.0...v1.2.0
Features
- api: add claude 4 models, files API, code execution tool, MCP connector and more (b2e5cbf)
Bug Fixes
- tests: fix model testing for anthropic.CalculateNonStreamingTimeout (9956842)
v1.1.0
1.1.0 (2025-05-22)
Full Changelog: v1.0.0...v1.1.0
Features
- api: add claude 4 models, files API, code execution tool, MCP connector and more (2740935)
Bug Fixes
- tests: fix model testing for anthropic.CalculateNonStreamingTimeout (f1aa0a1)
v1.0.0
1.0.0 (2025-05-21)
Full Changelog: v0.2.0-beta.4...v1.0.0
⚠ BREAKING CHANGES
- client: rename variant constructors
- client: remove is present
Features
Bug Fixes
- client: correctly set stream key for multipart (f17bfe0)
- client: don't panic on marshal with extra null field (d67a151)
- client: elide nil citations array (09cadec)
- client: fix bug with empty tool inputs and citation deltas in Accumulate (f4ac348)
- client: increase max stream buffer size (18a6ccf)
- client: remove is present (385d99f)
- client: resolve naming collisions in union variants (2cb6904)
- client: use scanner for streaming (82a2840)
Chores
Documentation
v0.2.0-beta.4
0.2.0-beta.4 (2025-05-18)
Full Changelog: v0.2.0-beta.3...v0.2.0-beta.4
⚠ BREAKING CHANGES
- client: clearer array variant names
- client: rename resp package
- client: improve core function names
- client: improve union variant names
- client: improve param subunions & deduplicate types
Features
- api: adds web search capabilities to the Claude API (9ca314a)
- api: extract ContentBlockDelta events into their own schemas (#165) (6d75486)
- api: manual updates (d405f97)
- api: manual updates (e1326cd)
- api: manual updates (a92a382)
- api: manual updates (59bd507)
- client: add dynamic streaming buffer to handle large lines (510e099)
- client: add escape hatch to omit required param fields (#175) (6df8184)
- client: add helper method to generate constant structs (015e8bc)
- client: add support for endpoint-specific base URLs in python (44645c9)
- client: add support for reading base URL from environment variable (835e632)
- client: clearer array variant names (1fdea8f)
- client: experimental support for unmarshalling into param structs (94c8fa4)
- client: improve param subunions & deduplicate types (8daacf6)
- client: make response union's AsAny method type safe (#174) (f410ed0)
- client: rename resp package (8e7d278)
- client: support custom http clients (#177) (ff7a793)
- client: support more time formats (af2df86)
- client: support param struct overrides (#167) (e0d5eb0)
- client: support unions in query and forms (#171) (6bf1ce3)
Bug Fixes
- client: clean up reader resources (2234386)
- client: correctly update body in WithJSONSet (f531c77)
- client: deduplicate stop reason type (#155) (0f985ad)
- client: fix bug where types occasionally wouldn't generate (8988713)
- client: improve core function names (0a2777f)
- client: improve union variant names (92718fd)
- client: include path for type names in example code (5bbe836)
- client: resolve issue with optional multipart files (e2af94c)
- client: return error on bad custom url instead of panic (#169) (b086b55)
- client: support multipart encoding array formats (#170) (611a25a)
- client: time format encoding fix (d589846)
- client: unmarshal responses properly (8344a1c)
- client: unmarshal stream events into fresh memory (#168) (9cc1257)
- handle empty bodies in WithJSONSet (0bad01e)
- internal: fix type changes (d8ef353)
- pagination: handle errors when applying options (2381476)
Chores
- ci: add timeout thresholds for CI jobs (335e9f0)
- ci: only use depot for staging repos (6818451)
- ci: run on more branches and use depot runners (b0ca09d)
- client: use new opt conversion (#184) (58dc74f)
- docs: doc improvements (#173) (aebe8f6)
- docs: document pre-request options (8f5eb18)
- docs: readme improvements (#176) (b5769ff)
- docs: update file uploads in README (#166) (a4a36bf)
- docs: update respjson package name (28910b5)
- internal: expand CI branch coverage (#178) (900e2df)
- internal: reduce CI branch coverage (343f6c6)
- internal: remove CI condition (#160) (adfa1e2)
- internal: update config (#157) (46f0194)
- readme: improve formatting (66be9bb)