github.com/anthropics/anthropic-sdk-go@v1.70.1/CHANGELOG.md (about) 1 # Changelog 2 3 ## 1.70.1 (2026-09-03) 4 5 Full Changelog: [v1.70.0...v1.70.1](https://github.com/anthropics/anthropic-sdk-go/compare/v1.70.0...v1.70.1) 6 7 ## 1.70.0 (2026-09-02) 8 9 Full Changelog: [v1.69.0...v1.70.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.69.0...v1.70.0) 10 11 ### Features 12 13 * **api:** add support for sending a workspace ID on more endpoints ([75477bf](https://github.com/anthropics/anthropic-sdk-go/commit/75477bf9202c59854d9f82fa6b55faeaaea78987)) 14 15 16 ### Bug Fixes 17 18 * **client:** surface non-JSON error response bodies in error messages ([7e89315](https://github.com/anthropics/anthropic-sdk-go/commit/7e8931517d165cf37f713e9184427b1b35135fe4)) 19 20 21 ### Chores 22 23 * **internal:** narrower codeowners scope ([24487eb](https://github.com/anthropics/anthropic-sdk-go/commit/24487eb8eef39a28cd4710af7e9e00e7049ddd14)) 24 * **internal:** revert codeowners change ([0717fba](https://github.com/anthropics/anthropic-sdk-go/commit/0717fbac8fff3802f52190b6472e44fc804598ef)) 25 26 27 ### Documentation 28 29 * **api:** update a few doc strings ([5c4b77b](https://github.com/anthropics/anthropic-sdk-go/commit/5c4b77b0563a03a1017d97a04ca103cbc023c799)) 30 31 ## 1.69.0 (2026-09-01) 32 33 Full Changelog: [v1.68.0...v1.69.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.68.0...v1.69.0) 34 35 ### Features 36 37 * **api:** beta user profiles: add external_user_onboarded_at, remove relationship in favor of access_type ([d8b0de6](https://github.com/anthropics/anthropic-sdk-go/commit/d8b0de6b1490f1b80b293104205cdcc88810dd6c)) 38 * **api:** manual updates ([b508af4](https://github.com/anthropics/anthropic-sdk-go/commit/b508af4edc3efbccb98eed4fda2854bf16977a8c)) 39 * **api:** organization compliance settings, user-profile order_by, memory-store and toolset schema updates ([ee32922](https://github.com/anthropics/anthropic-sdk-go/commit/ee32922c1a52580862d8e5c3a59a6f2076503b88)) 40 41 42 ### Bug Fixes 43 44 * **client:** send only the base name of a file's path as its multipart filename ([fd15b77](https://github.com/anthropics/anthropic-sdk-go/commit/fd15b776141d978f26f042f65c799ce604624f84)) 45 46 47 ### Documentation 48 49 * **changelog:** detail the beta files/skills GA-shape change ([#426](https://github.com/anthropics/anthropic-sdk-go/issues/426)) ([3612d4c](https://github.com/anthropics/anthropic-sdk-go/commit/3612d4c4da501cfe17c05ada3cbbdb50852556bb)) 50 51 ## 1.68.0 (2026-08-27) 52 53 Full Changelog: [v1.67.0...v1.68.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.67.0...v1.68.0) 54 55 ### Features 56 57 * **api:** beta files/skills namespaces use GA shapes; drop dated beta header pins ([90ee202](https://github.com/anthropics/anthropic-sdk-go/commit/90ee2021beb22c765c81fa958e6e48c4d65de756)) 58 59 The beta Files and Skills services (`client.Beta.Files`, `client.Beta.Skills`) no longer send the `files-api-2025-04-14` / `skills-2025-10-02` headers and return the same shapes as `client.Files` / `client.Skills` (with `Beta`-prefixed type names). Requests that still send those headers on raw HTTP keep receiving the beta shapes. 60 61 Changes in the beta services: 62 - `client.Beta.Skills.Delete()` now deletes a Skill together with all of its versions (previously refused while any version existed). It returns `BetaDeletedSkill` (was `BetaSkillDeleteResponse`). 63 - Beta Messages type `BetaSkill` (container skill reference with `SkillID`, `Type`, `Version`) is renamed `BetaContainerSkill`, and `BetaSkillType` is renamed `BetaContainerSkillType`; the request-side `BetaSkillParams` keeps its name. `BetaSkill` now names the Skill object returned by `client.Beta.Skills.New()` / `Get()` / `List()` (replacing `BetaSkillNewResponse` / `BetaSkillGetResponse` / `BetaSkillListResponse`), and skill versions are `BetaSkillVersion` / `BetaDeletedSkillVersion` (replacing `BetaSkillVersion*Response`). 64 - `client.Beta.Files.List()` returns `pagination.PageCursor[BetaFileMetadata]` (with `Data` / `NextPage`) and `BetaFileListParams` paginates with `Page` / `IDs` (was `pagination.Page[BetaFileMetadata]` with `Data`, `HasMore`, `FirstID`, `LastID` and `BeforeID` / `AfterID`); `ListAutoPaging()` now returns `pagination.PageCursorAutoPager[BetaFileMetadata]`. `BetaSkill` uses `DisplayName` (was `DisplayTitle`, also on `BetaSkillNewParams`) and `LatestVersionID` (was `LatestVersion`), and `BetaSkillVersion` is addressed by its `skver_…` `ID` (the Unix-timestamp `Version` field is gone). 65 66 Migration guides: [Migrate from `files-api-2025-04-14`](https://platform.claude.com/docs/en/build-with-claude/files#migrate-from-files-api-2025-04-14) · [Migrate from `skills-2025-10-02`](https://platform.claude.com/docs/en/build-with-claude/skills-guide#migrate-from-skills-2025-10-02) 67 68 69 ### Bug Fixes 70 71 * **bedrock:** leave non-JSON request bodies untouched ([#337](https://github.com/anthropics/anthropic-sdk-go/issues/337)) ([3a2e758](https://github.com/anthropics/anthropic-sdk-go/commit/3a2e7588b3a7b4097f40d749f09f0d866f626b96)) 72 * **client:** report Windows correctly in X-Stainless-OS header ([ceb299f](https://github.com/anthropics/anthropic-sdk-go/commit/ceb299f7374d266f2d4c5d782d7a6dc6c5e0065b)) 73 * **client:** retry attempts that hit the per-request timeout ([49b9527](https://github.com/anthropics/anthropic-sdk-go/commit/49b952780a9c20e9a70d598beef31e99269b4e46)) 74 * **sessions:** deliver completed tool calls when the runner terminates ([#322](https://github.com/anthropics/anthropic-sdk-go/issues/322)) ([642d6a0](https://github.com/anthropics/anthropic-sdk-go/commit/642d6a049eca71161125d23f8d6772f76f339f05)) 75 * **sessions:** read event fields via variant accessors in session helpers ([#336](https://github.com/anthropics/anthropic-sdk-go/issues/336)) ([fb7ec8a](https://github.com/anthropics/anthropic-sdk-go/commit/fb7ec8a1331ddd1712a260a1d68a7b9662e884f8)) 76 * **tools:** let read return a view_range of a file over the size cap ([#341](https://github.com/anthropics/anthropic-sdk-go/issues/341)) ([33d4f9d](https://github.com/anthropics/anthropic-sdk-go/commit/33d4f9da6ed4249b8b09e608ad5fef4bad69031b)) 77 * **webhooks:** require headers to be passed to `unwrap()` ([9a1023a](https://github.com/anthropics/anthropic-sdk-go/commit/9a1023a9d92b95ea642d1dd49758f797f3fa1af2)) 78 79 80 ### Documentation 81 82 * **api:** clarify pagination on the organization rate-limit list endpoints ([0b6ba47](https://github.com/anthropics/anthropic-sdk-go/commit/0b6ba47c8008566ba0ba8a900cf3ac033ef2fa2b)) 83 84 ## 1.67.0 (2026-08-26) 85 86 Full Changelog: [v1.66.0...v1.67.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.66.0...v1.67.0) 87 88 ### Features 89 90 * **api:** add `updates` thinking display mode (beta) ([44fa7a6](https://github.com/anthropics/anthropic-sdk-go/commit/44fa7a6b087cb1b4355647b7ecb42c46eb6f1dba)) 91 * **api:** add missing anthropic-beta values ([118b499](https://github.com/anthropics/anthropic-sdk-go/commit/118b499229b44363152577e2bbf45d2f90ef3983)) 92 * **api:** add support for Organization API endpoints ([713c567](https://github.com/anthropics/anthropic-sdk-go/commit/713c567ef716aa62f9b0fadb24b3aaf8fb506095)) 93 94 95 ### Bug Fixes 96 97 * **messages:** add missing ToParam methods and exhaustiveness test ([#245](https://github.com/anthropics/anthropic-sdk-go/issues/245)) ([e385915](https://github.com/anthropics/anthropic-sdk-go/commit/e385915879ab975b0c31476088bdac6d59a9fc4f)) 98 * **tools:** keep the tool runner going on pause_turn ([#250](https://github.com/anthropics/anthropic-sdk-go/issues/250)) ([2fa015b](https://github.com/anthropics/anthropic-sdk-go/commit/2fa015bb89d7a07bbeb416aec85246f353eb4c98)) 99 100 101 ### Chores 102 103 * **docs:** clarify skill version `latest` support and memory version retention ([c5d5ac4](https://github.com/anthropics/anthropic-sdk-go/commit/c5d5ac46543c149dfd9ec5948ab99421104572aa)) 104 * **internal:** cancel superseded CI runs ([5413684](https://github.com/anthropics/anthropic-sdk-go/commit/541368421db45277ee3cea803c1a1705fdcfe2f2)) 105 106 107 ### Documentation 108 109 * **api:** clarify session thread agent and usage.iterations compaction descriptions (beta) ([e017f63](https://github.com/anthropics/anthropic-sdk-go/commit/e017f63e48aad5fef6f98ebdd5f9cbf93db33845)) 110 111 ## 1.66.0 (2026-08-19) 112 113 Full Changelog: [v1.65.0...v1.66.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.65.0...v1.66.0) 114 115 ### Features 116 117 * **api:** managed agents web search config and self hosted sandbox memory ([694b03a](https://github.com/anthropics/anthropic-sdk-go/commit/694b03a4a6e3318b0a6175ff988f635049187f29)) 118 119 ## 1.65.0 (2026-08-19) 120 121 Full Changelog: [v1.64.0...v1.65.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.64.0...v1.65.0) 122 123 ### Features 124 125 * **api:** Files and Skills APIs are now GA; add computer use and browser use toolsets ([e7be7af](https://github.com/anthropics/anthropic-sdk-go/commit/e7be7af468408ca98adae858777d47a71487c4f8)) 126 127 ## 1.64.0 (2026-08-18) 128 129 Full Changelog: [v1.63.1...v1.64.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.63.1...v1.64.0) 130 131 ### Features 132 133 * **api:** additions to files and memory stores ([5c105da](https://github.com/anthropics/anthropic-sdk-go/commit/5c105daf4a37f0731775cbd7ec273d54b743ad40)) 134 * **api:** updates to skill, files, and user profiles ([a0061d6](https://github.com/anthropics/anthropic-sdk-go/commit/a0061d65983357dc4957eed0d3db767a565ba806)) 135 136 137 ### Bug Fixes 138 139 * **api:** remove unsupported mid_conv_system content block ([bced0f9](https://github.com/anthropics/anthropic-sdk-go/commit/bced0f9ac92c24943141bb3b12c93b3bd4f6416e)) 140 * **session-runner:** retry tool-result sends for at least the lease TTL ([#299](https://github.com/anthropics/anthropic-sdk-go/issues/299)) ([ebc9533](https://github.com/anthropics/anthropic-sdk-go/commit/ebc9533f6f2769d77621e9baabbcc32600b7b050)) 141 * **tool-runner:** forward the server-assigned container on follow-up requests ([#277](https://github.com/anthropics/anthropic-sdk-go/issues/277)) ([860620c](https://github.com/anthropics/anthropic-sdk-go/commit/860620c47a6a38bb6156321e29faa9fd4462c0b1)) 142 * **toolrunner:** don't yield the final message twice from All() ([#314](https://github.com/anthropics/anthropic-sdk-go/issues/314)) ([1e418f0](https://github.com/anthropics/anthropic-sdk-go/commit/1e418f091d043f68e252bfef91b1e1e37a95cb6d)) 143 144 145 ### Chores 146 147 * **internal:** remove leftover prism references ([a1d9eab](https://github.com/anthropics/anthropic-sdk-go/commit/a1d9eabf77975e8242f5b7623e202abae7547fe5)) 148 149 ## 1.63.1 (2026-08-13) 150 151 Full Changelog: [v1.63.0...v1.63.1](https://github.com/anthropics/anthropic-sdk-go/compare/v1.63.0...v1.63.1) 152 153 ### Bug Fixes 154 155 * **auth:** pin token exchange to the configured base URL and skip auth for other origins ([#258](https://github.com/anthropics/anthropic-sdk-go/issues/258)) ([6e4141c](https://github.com/anthropics/anthropic-sdk-go/commit/6e4141c68b5da647436ec07f76b69efd3cb87ed4)) 156 * **client:** apply stop_details from every message_delta when accumulating ([#253](https://github.com/anthropics/anthropic-sdk-go/issues/253)) ([c197a64](https://github.com/anthropics/anthropic-sdk-go/commit/c197a64a24952321446ca9353dfa5c6b4744d53f)) 157 * **client:** properly render maxLength and maxItems in generated schemas ([84a57f5](https://github.com/anthropics/anthropic-sdk-go/commit/84a57f524e1ff5a861a1a4a94f7f2b80fde7cd10)) 158 * **sessions:** post "(no output)" for empty text tool results instead of an empty text block ([#236](https://github.com/anthropics/anthropic-sdk-go/issues/236)) ([a588842](https://github.com/anthropics/anthropic-sdk-go/commit/a5888424590b0e02304fb70e4f35fdeeb9dceb93)) 159 160 161 ### Chores 162 163 * **ci:** run breaking-change detection as a ci.yml job on every push ([29aebdb](https://github.com/anthropics/anthropic-sdk-go/commit/29aebdb5be201df32a4a3a71352f1a2f69ed2768)) 164 165 166 ### Documentation 167 168 * **api:** clarify that user profile name is optional for resold profiles ([1039f95](https://github.com/anthropics/anthropic-sdk-go/commit/1039f956732621fb1d533d9ea277291e4dec4bee)) 169 170 ## 1.63.0 (2026-08-10) 171 172 Full Changelog: [v1.62.0...v1.63.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.62.0...v1.63.0) 173 174 ### Features 175 176 * **api:** add output_behavior to dream creation (create a new memory store or update the input store in place) ([ba999d5](https://github.com/anthropics/anthropic-sdk-go/commit/ba999d5edc6711e43e35ee2c2eb25c75fa478ebf)) 177 178 179 ### Bug Fixes 180 181 * **client:** add models ([a662a31](https://github.com/anthropics/anthropic-sdk-go/commit/a662a3168902606ef12dfc0bafbe68c04cbe21a1)) 182 * symlink-loop paths, special archive members, and 409 retry in the agent toolset and environment worker ([#226](https://github.com/anthropics/anthropic-sdk-go/issues/226)) ([82aa034](https://github.com/anthropics/anthropic-sdk-go/commit/82aa034b6cc238b2edbd88c451899f9f7bf1b02b)) 183 * **vertex:** preserve a user-supplied HTTP client by wrapping its transport with Google auth ([#242](https://github.com/anthropics/anthropic-sdk-go/issues/242)) ([8e85a8e](https://github.com/anthropics/anthropic-sdk-go/commit/8e85a8e7a522138521d7a0091b7bad9da131f4f2)) 184 185 ## 1.62.0 (2026-08-06) 186 187 Full Changelog: [v1.61.0...v1.62.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.61.0...v1.62.0) 188 189 ### Features 190 191 * **api:** add `mid-conversation-tool-changes-2026-07-01` beta ([f53c3d3](https://github.com/anthropics/anthropic-sdk-go/commit/f53c3d36b9bca3ea057b25b85be2ac62c0d18125)) 192 * **api:** add support for session budgets, advisor tool, pinned inference location and skills auto-loading from GitHub ([89c04c2](https://github.com/anthropics/anthropic-sdk-go/commit/89c04c2e2b10a5a7c3b6601a52c280c12b5fda41)) 193 194 195 ### Bug Fixes 196 197 * **client:** preserve wire-faithful JSON in accumulated streaming messages ([#197](https://github.com/anthropics/anthropic-sdk-go/issues/197)) ([9a01ac0](https://github.com/anthropics/anthropic-sdk-go/commit/9a01ac02821ec5e5b4d248121a8518eafb10389d)) 198 * **jsonl:** prevent silent truncation of large results, and don't panic on close ([#203](https://github.com/anthropics/anthropic-sdk-go/issues/203)) ([77dd33d](https://github.com/anthropics/anthropic-sdk-go/commit/77dd33d1ee59db8a02cab29c91f746671152c566)) 199 * **tools:** name tool refusals and a dead shell so they can be matched ([#213](https://github.com/anthropics/anthropic-sdk-go/issues/213)) ([da87d4d](https://github.com/anthropics/anthropic-sdk-go/commit/da87d4dc2782efe7f73a502a65375820aaed226e)) 200 201 202 ### Chores 203 204 * **api:** remove retired Claude Opus 4.1 models ([85fdf3b](https://github.com/anthropics/anthropic-sdk-go/commit/85fdf3b214891bcd0f14a08fdf4aca7b884e1132)) 205 * **docs:** small updates to descriptions ([487e6ea](https://github.com/anthropics/anthropic-sdk-go/commit/487e6ea4e4e0ca8faf20c999f127ac8a0578e9a6)) 206 * **docs:** updates to a few documentation strings ([03dc511](https://github.com/anthropics/anthropic-sdk-go/commit/03dc511df2319f61a2988a73bfce54262d0ced6d)) 207 208 ## 1.61.0 (2026-07-24) 209 210 Full Changelog: [v1.60.0...v1.61.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.60.0...v1.61.0) 211 212 ### Features 213 214 * **api:** add claude-opus-5 model ([bb7dc83](https://github.com/anthropics/anthropic-sdk-go/commit/bb7dc8379e9acf920d865c3a63eedfdbabf8f976)) 215 * **api:** add tool addition/removal blocks and tool_change events ([bb7dc83](https://github.com/anthropics/anthropic-sdk-go/commit/bb7dc8379e9acf920d865c3a63eedfdbabf8f976)) 216 * **api:** expand client-side fallback credit token types and add server-side fallbacks default option ([bb7dc83](https://github.com/anthropics/anthropic-sdk-go/commit/bb7dc8379e9acf920d865c3a63eedfdbabf8f976)) 217 218 ## 1.60.0 (2026-07-23) 219 220 Full Changelog: [v1.59.0...v1.60.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.59.0...v1.60.0) 221 222 ### Features 223 224 * **api:** add new stop reason 'model_context_window_exceeded' ([94caa5d](https://github.com/anthropics/anthropic-sdk-go/commit/94caa5dd2c259b4fac101f4ee44632157669fa23)) 225 226 227 ### Bug Fixes 228 229 * **apijson:** correct unmarshaling for param types ([#73](https://github.com/anthropics/anthropic-sdk-go/issues/73)) ([661be2e](https://github.com/anthropics/anthropic-sdk-go/commit/661be2e4d0e956585ca0d5474675d55dfc6a079a)) 230 * **client:** escape HTML in RawJSON overrides of nested properties ([3b163e2](https://github.com/anthropics/anthropic-sdk-go/commit/3b163e2c1453b127801abe67745d6109c6ee0b2c)) 231 * refer to the CLI as `ant` in auth error messages ([#194](https://github.com/anthropics/anthropic-sdk-go/issues/194)) ([d6508c7](https://github.com/anthropics/anthropic-sdk-go/commit/d6508c729ea131600b758bd140a49548c6d30946)) 232 233 ## 1.59.0 (2026-07-22) 234 235 Full Changelog: [v1.58.1...v1.59.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.58.1...v1.59.0) 236 237 ### Features 238 239 * **api:** add support for Managed Agents model effort, initial session events, and threads delta streaming ([abca19a](https://github.com/anthropics/anthropic-sdk-go/commit/abca19a766bd7dadcd3cdb12a97d62c4861b29dd)) 240 241 ## 1.58.1 (2026-07-21) 242 243 Full Changelog: [v1.58.0...v1.58.1](https://github.com/anthropics/anthropic-sdk-go/compare/v1.58.0...v1.58.1) 244 245 ### Bug Fixes 246 247 * **client:** copy all citation fields in ToParam conversions ([#191](https://github.com/anthropics/anthropic-sdk-go/issues/191)) ([26ac1f9](https://github.com/anthropics/anthropic-sdk-go/commit/26ac1f9c150b980b5df4c0b3c826ecde38f2affe)) 248 * **vertex:** default to the cloud-platform scope in WithGoogleAuth ([#190](https://github.com/anthropics/anthropic-sdk-go/issues/190)) ([7931e70](https://github.com/anthropics/anthropic-sdk-go/commit/7931e705abad1f245d7362cbc17ef281647b0bb9)) 249 250 251 ### Chores 252 253 * **api:** add support for new refusal category ([f77159c](https://github.com/anthropics/anthropic-sdk-go/commit/f77159cf64b7965f6c6be42ae2d25fb690c134c2)) 254 * **docs:** small updates ([576dc36](https://github.com/anthropics/anthropic-sdk-go/commit/576dc36ce84f1a842a728fcb11636342407b3f63)) 255 * **docs:** small updates ([f618082](https://github.com/anthropics/anthropic-sdk-go/commit/f6180825ac983aebfb0d0e09e3784145698d4cdc)) 256 * **internal:** codegen related update ([03fee5d](https://github.com/anthropics/anthropic-sdk-go/commit/03fee5d99295612792d12d60e5fca0a798e723d5)) 257 258 ## 1.58.0 (2026-07-16) 259 260 Full Changelog: [v1.57.0...v1.58.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.57.0...v1.58.0) 261 262 ### Features 263 264 * **api:** add support for MCP Tunnels ([3465b89](https://github.com/anthropics/anthropic-sdk-go/commit/3465b897f12872663b0f61c0c3edb277e2efbe44)) 265 266 ## 1.57.0 (2026-07-10) 267 268 Full Changelog: [v1.56.0...v1.57.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.56.0...v1.57.0) 269 270 ### Features 271 272 * **api:** add support for dreaming ([3736bf0](https://github.com/anthropics/anthropic-sdk-go/commit/3736bf0740c2b88d72f478df5fb7f13856f4beaa)) 273 * **tools:** gate session tool calls on evaluated_permission ([#151](https://github.com/anthropics/anthropic-sdk-go/issues/151)) ([4d85a6f](https://github.com/anthropics/anthropic-sdk-go/commit/4d85a6f2b0629b35630cf7560bc24d9d8cc8fa45)) 274 275 276 ### Bug Fixes 277 278 * **helpers:** distinguish canonical agent.message events from open previews ([#118](https://github.com/anthropics/anthropic-sdk-go/issues/118)) ([c49c17c](https://github.com/anthropics/anthropic-sdk-go/commit/c49c17c06ba2e646d5dd54c7614a7fa05becabd1)) 279 280 281 ### Chores 282 283 * **docs:** small updates to field descriptions ([61bc396](https://github.com/anthropics/anthropic-sdk-go/commit/61bc39690bc241eb4747626c0f0344e9b9e1b11f)) 284 * **docs:** update model example ([937a29c](https://github.com/anthropics/anthropic-sdk-go/commit/937a29cb229173f5009bda6a1b71889ed6a8103a)) 285 * **docs:** updates to descriptions and examples ([2c59f79](https://github.com/anthropics/anthropic-sdk-go/commit/2c59f7908e86a5dfc1f702120b56bbe2a07ae020)) 286 287 ## 1.56.0 (2026-07-02) 288 289 Full Changelog: [v1.55.1...v1.56.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.55.1...v1.56.0) 290 291 ### Features 292 293 * **api:** add agent-memory-2026-07-22 beta header ([5bcfda4](https://github.com/anthropics/anthropic-sdk-go/commit/5bcfda43d70d05ea124f6b6efa678807b8aba064)) 294 295 ## 1.55.1 (2026-07-01) 296 297 Full Changelog: [v1.55.0...v1.55.1](https://github.com/anthropics/anthropic-sdk-go/compare/v1.55.0...v1.55.1) 298 299 ### Chores 300 301 * **api:** remove some nonfunctional types from the SDKs ([9bd3d09](https://github.com/anthropics/anthropic-sdk-go/commit/9bd3d099c5c5cb69f7011376a63a882216d30fcb)) 302 303 ## 1.55.0 (2026-06-30) 304 305 Full Changelog: [v1.54.0...v1.55.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.54.0...v1.55.0) 306 307 ### Features 308 309 * **api:** add support for Managed Agents event delta streaming, agent overrides, reverse pagination, vault credential injection scoping, and agent and deployment webhook events ([021ef45](https://github.com/anthropics/anthropic-sdk-go/commit/021ef45adcc13691ce8e8f234b9b5ae387a565ae)) 310 311 ## 1.54.0 (2026-06-30) 312 313 Full Changelog: [v1.53.0...v1.54.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.53.0...v1.54.0) 314 315 ### Features 316 317 * **api:** add support for claude-sonnet-5 ([232cfe6](https://github.com/anthropics/anthropic-sdk-go/commit/232cfe6f8889dc30dd759a4027e95f5c9ece46d1)) 318 319 320 ### Bug Fixes 321 322 * **agenttoolset:** allow absolute paths that resolve inside workdir ([#93](https://github.com/anthropics/anthropic-sdk-go/issues/93)) ([3735258](https://github.com/anthropics/anthropic-sdk-go/commit/3735258e449804336781339ef25fa7008fc8717f)) 323 324 ## 1.53.0 (2026-06-29) 325 326 Full Changelog: [v1.52.0...v1.53.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.52.0...v1.53.0) 327 328 ### Features 329 330 * **api:** add support for 20260318 web fetch and support tools ([6396455](https://github.com/anthropics/anthropic-sdk-go/commit/6396455a220b3e37cc87ce44b6d1e615d6386c74)) 331 332 333 ### Chores 334 335 * **api:** accept user profile ID's when counting tokens ([d31ba27](https://github.com/anthropics/anthropic-sdk-go/commit/d31ba27f74d9a39dcaaabe8dc0d37b5b811c150c)) 336 * **docs:** updates to descriptions and example values ([cb00f34](https://github.com/anthropics/anthropic-sdk-go/commit/cb00f34a3c75e9f183d569321ff2de6da8efc29c)) 337 338 ## 1.52.0 (2026-06-24) 339 340 Full Changelog: [v1.51.1...v1.52.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.51.1...v1.52.0) 341 342 ### Features 343 344 * **client:** add support for system.message streaming events ([7bb296d](https://github.com/anthropics/anthropic-sdk-go/commit/7bb296db56de13140605495642cf72889f829ed8)) 345 346 347 ### Chores 348 349 * **api:** add support for new refusal category ([46f8625](https://github.com/anthropics/anthropic-sdk-go/commit/46f86259a94c1d43a21b3d44dd5eb40e9d4b3e13)) 350 * **api:** add support for sending User Profile ID in request headers ([5cab486](https://github.com/anthropics/anthropic-sdk-go/commit/5cab486af669c06349d03bb66f0214557422561c)) 351 352 ## 1.51.1 (2026-06-18) 353 354 Full Changelog: [v1.51.0...v1.51.1](https://github.com/anthropics/anthropic-sdk-go/compare/v1.51.0...v1.51.1) 355 356 ### Bug Fixes 357 358 * **helpers:** single source for x-stainless-helper, append semantics, and tag the fallback middleware ([#88](https://github.com/anthropics/anthropic-sdk-go/issues/88)) ([ebbdb7d](https://github.com/anthropics/anthropic-sdk-go/commit/ebbdb7dea37b15cdd055c53806a51e06422847fe)) 359 360 ## 1.51.0 (2026-06-18) 361 362 Full Changelog: [v1.50.2...v1.51.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.50.2...v1.51.0) 363 364 ### Features 365 366 * **api:** add support for new code_execution_20260120 tool ([f54a4a8](https://github.com/anthropics/anthropic-sdk-go/commit/f54a4a8e6f9c271b2b31e0cf504cdab8005f28c4)) 367 368 ## 1.50.2 (2026-06-15) 369 370 Full Changelog: [v1.50.1...v1.50.2](https://github.com/anthropics/anthropic-sdk-go/compare/v1.50.1...v1.50.2) 371 372 ### Chores 373 374 * **api:** remove retired models from API and SDKs ([11f5c82](https://github.com/anthropics/anthropic-sdk-go/commit/11f5c8239cb11351c5f42aac6bb12c0dc8fdccd2)) 375 376 ## 1.50.1 (2026-06-09) 377 378 Full Changelog: [v1.50.0...v1.50.1](https://github.com/anthropics/anthropic-sdk-go/compare/v1.50.0...v1.50.1) 379 380 ### Bug Fixes 381 382 * **api:** add `frontier_llm` refusal category ([9ebbaf7](https://github.com/anthropics/anthropic-sdk-go/commit/9ebbaf76a334618a062f787bd4937e3370cb117c)) 383 384 ## 1.50.0 (2026-06-09) 385 386 Full Changelog: [v1.49.0...v1.50.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.49.0...v1.50.0) 387 388 ### Features 389 390 * **api:** add support for Managed Agents deployments and environment variable credentials ([f72e1d8](https://github.com/anthropics/anthropic-sdk-go/commit/f72e1d84cf3b6d2319c083d8ae814dcae236f217)) 391 392 ## 1.49.0 (2026-06-09) 393 394 Full Changelog: [v1.48.0...v1.49.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.48.0...v1.49.0) 395 396 ### Features 397 398 * **api:** add support for claude-mythos-5 and claude-fable-5, with support for server-side fallbacks on refusal ([782f223](https://github.com/anthropics/anthropic-sdk-go/commit/782f2239803f6c0b65a9b23a7efe7e12059ac8a0)) 399 * **client:** adds client-side fallbacks middleware for API providers that do not support server-side fallbacks ([782f223](https://github.com/anthropics/anthropic-sdk-go/commit/782f2239803f6c0b65a9b23a7efe7e12059ac8a0)) 400 401 402 ### Bug Fixes 403 404 * 3p middleware ordering ([#38](https://github.com/anthropics/anthropic-sdk-go/issues/38)) ([8f47086](https://github.com/anthropics/anthropic-sdk-go/commit/8f47086cb6094c7c6ba06a7b9d94d56ead5ba295)) 405 406 ## 1.48.0 (2026-06-06) 407 408 Full Changelog: [v1.47.0...v1.48.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.47.0...v1.48.0) 409 410 ### Features 411 412 * **api:** small updates to Managed Agents types ([3ebeea5](https://github.com/anthropics/anthropic-sdk-go/commit/3ebeea5856ea9a024ff77d22847f0109da2dd334)) 413 414 ## 1.47.0 (2026-06-05) 415 416 Full Changelog: [v1.46.0...v1.47.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.46.0...v1.47.0) 417 418 ### Features 419 420 * **api:** mark Claude Opus 4.1 as deprecated ([64b20dc](https://github.com/anthropics/anthropic-sdk-go/commit/64b20dc87c2062ece15e2a46904eac00e6eae737)) 421 * require Go 1.24 ([#11](https://github.com/anthropics/anthropic-sdk-go/issues/11)) ([00fae19](https://github.com/anthropics/anthropic-sdk-go/commit/00fae190db05135e3de11acd30c5ed30f2f94811)) 422 423 424 ### Bug Fixes 425 426 * **streaming:** accumulate content block events by index ([#6](https://github.com/anthropics/anthropic-sdk-go/issues/6)) ([2161a38](https://github.com/anthropics/anthropic-sdk-go/commit/2161a381e70df6e5a00c00f841711151ab170ef9)) 427 * **streaming:** carry encrypted_content through beta compaction accumulator ([#875](https://github.com/anthropics/anthropic-sdk-go/issues/875)) ([13fa611](https://github.com/anthropics/anthropic-sdk-go/commit/13fa61165159653ee1f3cc63a4df2d1c5dab7970)) 428 * **streaming:** carry stop_details and usage fields through beta message_delta ([#879](https://github.com/anthropics/anthropic-sdk-go/issues/879)) ([d432c9f](https://github.com/anthropics/anthropic-sdk-go/commit/d432c9fb538442ccce72bfbee4f4d69d18d1acf2)) 429 * **streaming:** carry stop_details and usage fields through message_delta ([#877](https://github.com/anthropics/anthropic-sdk-go/issues/877)) ([e2fcc35](https://github.com/anthropics/anthropic-sdk-go/commit/e2fcc3583f9a9fa37ce5b1a1fc5f55391c2e9199)) 430 * support invopop/jsonschema v0.14.0 (switch to pb33f/ordered-map) ([#10](https://github.com/anthropics/anthropic-sdk-go/issues/10)) ([af018a7](https://github.com/anthropics/anthropic-sdk-go/commit/af018a7c71e0edc0c84561f0fe2a68e81627b38c)) 431 432 433 ### Chores 434 435 * **internal:** fix artifact url ([fd4cde3](https://github.com/anthropics/anthropic-sdk-go/commit/fd4cde3e00290d169e6435ae098dd73f57ac8991)) 436 * **internal:** fix branch names ([e1730cd](https://github.com/anthropics/anthropic-sdk-go/commit/e1730cd3865db09b5be7e5a32d9c57a94ba6e27f)) 437 * **internal:** update private repo name ([29f7468](https://github.com/anthropics/anthropic-sdk-go/commit/29f7468ec0d2bda6fe9c84e00be04e3d7ad34d25)) 438 439 440 ### Documentation 441 442 * point security reports to Anthropic's HackerOne program ([#9](https://github.com/anthropics/anthropic-sdk-go/issues/9)) ([c143385](https://github.com/anthropics/anthropic-sdk-go/commit/c143385a80838daaa3d416ce553c23f6a18f7657)) 443 444 ## 1.46.0 (2026-05-28) 445 446 Full Changelog: [v1.45.0...v1.46.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.45.0...v1.46.0) 447 448 ### Features 449 450 * **api:** Add support for claude-opus-4-8, mid-conversation system blocks, and usage.output_tokens_details ([4cd860b](https://github.com/anthropics/anthropic-sdk-go/commit/4cd860b8bd5365709f7f86466f449797a5f01875)) 451 * support custom file size caps ([#876](https://github.com/anthropics/anthropic-sdk-go/issues/876)) ([99634e8](https://github.com/anthropics/anthropic-sdk-go/commit/99634e85815be2215a8beb05f2deeec895133b3b)) 452 453 454 ### Chores 455 456 * **examples:** rename managed-agents private-sandbox-worker to self-hosted-sandbox-worker ([#873](https://github.com/anthropics/anthropic-sdk-go/issues/873)) ([07d3e46](https://github.com/anthropics/anthropic-sdk-go/commit/07d3e461f094d40a1bcf25fa8cefee7a90835193)) 457 458 459 ### Documentation 460 461 * replace literal newlines ([cbb7ea5](https://github.com/anthropics/anthropic-sdk-go/commit/cbb7ea55b131f492753ce9fdcfc73df2847daafd)) 462 463 ## 1.45.0 (2026-05-21) 464 465 Full Changelog: [v1.44.1...v1.45.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.44.1...v1.45.0) 466 467 ### Features 468 469 * **api:** Add support for thinking-token-count beta for estimated tokens in thinking block deltas when streaming ([dedeb6d](https://github.com/anthropics/anthropic-sdk-go/commit/dedeb6d263a651d63c95bd360befbd53dd26ec12)) 470 471 ## 1.44.1 (2026-05-19) 472 473 Full Changelog: [v1.44.0...v1.44.1](https://github.com/anthropics/anthropic-sdk-go/compare/v1.44.0...v1.44.1) 474 475 ### Bug Fixes 476 477 * **runner:** skip tool calls SessionToolRunner does not own ([93afc65](https://github.com/anthropics/anthropic-sdk-go/commit/93afc65f2f1b811d760f2e5149e13dd5eb328f79)) 478 479 ## 1.44.0 (2026-05-19) 480 481 Full Changelog: [v1.43.0...v1.44.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.43.0...v1.44.0) 482 483 ### Features 484 485 * **client:** Add support for self-hosted sandboxes in CMA with sandbox helpers ([34354c4](https://github.com/anthropics/anthropic-sdk-go/commit/34354c43f329852a88682bb6665a1453754d61be)) 486 487 ## 1.43.0 (2026-05-13) 488 489 Full Changelog: [v1.42.0...v1.43.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.42.0...v1.43.0) 490 491 ### Features 492 493 * **api:** Add BetaManagedAgentsSearchResultBlock types ([498fafc](https://github.com/anthropics/anthropic-sdk-go/commit/498fafcadd46be3a53e24ca2e7c40d00da6361bd)) 494 * **api:** Add support for cache diagnostics beta ([eac032f](https://github.com/anthropics/anthropic-sdk-go/commit/eac032f440e19fe9407d856dc4494029c606cd3d)) 495 * **client:** add compatibility aliases for old type names ([38e1f89](https://github.com/anthropics/anthropic-sdk-go/commit/38e1f89eeffeb40295a5796c97d9966ab1a8703b)) 496 * **client:** add compatibility aliases for old type names ([a98b0fb](https://github.com/anthropics/anthropic-sdk-go/commit/a98b0fb44693ee6c4bcd7575414b1cab0fc114c7)) 497 * **client:** optimize json encoder for internal types ([f379c42](https://github.com/anthropics/anthropic-sdk-go/commit/f379c4255c6485a02afb8136d84f1cf995794a08)) 498 499 500 ### Bug Fixes 501 502 * **structured outputs:** allowlist enum, const, pattern, allOf in transformSchema ([#823](https://github.com/anthropics/anthropic-sdk-go/issues/823)) ([d368786](https://github.com/anthropics/anthropic-sdk-go/commit/d3687868eb9c40427c731b12e9291ddeeb74f557)) 503 504 505 ### Chores 506 507 * **api:** spec updates ([502b9f1](https://github.com/anthropics/anthropic-sdk-go/commit/502b9f13f72a691c3b440c66d964a25caf2db8e1)) 508 * fix standard webhooks version ([#842](https://github.com/anthropics/anthropic-sdk-go/issues/842)) ([1fdda46](https://github.com/anthropics/anthropic-sdk-go/commit/1fdda46d63004bfec8c977319554cb609a0b4041)) 509 * **internal:** simplify release-please config ([69da3d6](https://github.com/anthropics/anthropic-sdk-go/commit/69da3d60e46540256c75fc2a0d1b1814ed608dfc)) 510 511 ## 1.42.0 (2026-05-11) 512 513 Full Changelog: [v1.41.0...v1.42.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.41.0...v1.42.0) 514 515 ### Features 516 517 * **aws:** Add AWS client for Claude Platform on AWS ([596baf4](https://github.com/anthropics/anthropic-sdk-go/commit/596baf4d3811bc48d24f3e298573581c861384b1)) 518 519 520 ### Bug Fixes 521 522 * **examples:** update examples dependencies ([e832b79](https://github.com/anthropics/anthropic-sdk-go/commit/e832b79299ddee8c48cc8f77c83203f58e17b9ec)) 523 * **go:** avoid panic when http.DefaultTransport is wrapped ([6b75bef](https://github.com/anthropics/anthropic-sdk-go/commit/6b75bef5a2cd15a969b5d787498e550f6f039719)) 524 525 526 ### Chores 527 528 * **client:** update dependency checksums ([64c1d95](https://github.com/anthropics/anthropic-sdk-go/commit/64c1d9502775801539ea492f29784a89535226bd)) 529 * go mod tidy ([#816](https://github.com/anthropics/anthropic-sdk-go/issues/816)) ([09b5f9c](https://github.com/anthropics/anthropic-sdk-go/commit/09b5f9cc4965ed3ca5b458996db3c030d66482c4)) 530 * **internal:** codegen related update ([6e83495](https://github.com/anthropics/anthropic-sdk-go/commit/6e83495da8dfb2efb905213204627483b4afc3e2)) 531 * **internal:** codegen related update ([34d1379](https://github.com/anthropics/anthropic-sdk-go/commit/34d1379207570fd26f7a262a960c424adf8d265d)) 532 * **internal:** codegen related update ([c068475](https://github.com/anthropics/anthropic-sdk-go/commit/c068475a5c67c7b0d544195b4a62187c4e35c578)) 533 * redact api-key headers in debug logs ([46a074f](https://github.com/anthropics/anthropic-sdk-go/commit/46a074f588c30c2a88e6f46093be606b37dd3fef)) 534 * redact api-key headers in debug logs ([1fe2ebb](https://github.com/anthropics/anthropic-sdk-go/commit/1fe2ebbb5d1f458f7013aec5c61e31ae2b52e619)) 535 536 ## 1.41.0 (2026-05-06) 537 538 Full Changelog: [v1.40.0...v1.41.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.40.0...v1.41.0) 539 540 ### Features 541 542 * **api:** add support for Managed Agents multiagents and outcomes, webhooks, vault validation ([33762b0](https://github.com/anthropics/anthropic-sdk-go/commit/33762b055b2ef20d09a3764bb69d183fcf283b18)) 543 * **mcp:** add mcp tool helpers ([#752](https://github.com/anthropics/anthropic-sdk-go/issues/752)) ([4edf9f5](https://github.com/anthropics/anthropic-sdk-go/commit/4edf9f5cbc10f0acc7e11ae6b248c20be606ac63)) 544 545 546 ### Bug Fixes 547 548 * **api:** Adjust webhook configuration ([8b2f194](https://github.com/anthropics/anthropic-sdk-go/commit/8b2f194315cc5bc9d723ea682e94a2a216ed57cd)) 549 550 ## 1.40.0 (2026-05-05) 551 552 Full Changelog: [v1.39.0...v1.40.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.39.0...v1.40.0) 553 554 ### Features 555 556 * **client:** allow targeting a workspace for OIDC federation token exchange ([6bf66ac](https://github.com/anthropics/anthropic-sdk-go/commit/6bf66ac19fa598800549ea188e849d0d45f632ea)) 557 558 ## 1.39.0 (2026-05-04) 559 560 Full Changelog: [v1.38.0...v1.39.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.38.0...v1.39.0) 561 562 ### Features 563 564 * **api:** improve Managed Agents APIs ([eadf509](https://github.com/anthropics/anthropic-sdk-go/commit/eadf509d8ea79d3f0db7cbdbf3ade6f24aaeb76f)) 565 * **client:** add Workload Identity Federation, interactive OAuth, and auth profiles ([0f0cc01](https://github.com/anthropics/anthropic-sdk-go/commit/0f0cc0191f3bc059f22939644a0584662c469305)) 566 * **go:** add default http client with timeout ([b81c287](https://github.com/anthropics/anthropic-sdk-go/commit/b81c28758ee76db006216b771ff3803adf4cbefb)) 567 * support setting headers via env ([641015d](https://github.com/anthropics/anthropic-sdk-go/commit/641015da9ea17c4ef2696857d6b4eb4cdb4f854e)) 568 569 570 ### Bug Fixes 571 572 * **client:** add 10 min timeout ([#770](https://github.com/anthropics/anthropic-sdk-go/issues/770)) ([917fe19](https://github.com/anthropics/anthropic-sdk-go/commit/917fe19c2591586d9c14fd5916bb95f713ab0c8f)) 573 574 575 ### Chores 576 577 * avoid embedding reflect.Type for dead code elimination ([11168b4](https://github.com/anthropics/anthropic-sdk-go/commit/11168b403a3b3ab2d7b3edc023faf214d9eededd)) 578 579 ## 1.38.0 (2026-04-23) 580 581 Full Changelog: [v1.37.0...v1.38.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.37.0...v1.38.0) 582 583 ### Features 584 585 * add Type() method to API errors for error kind identification ([#676](https://github.com/anthropics/anthropic-sdk-go/issues/676)) ([0db1712](https://github.com/anthropics/anthropic-sdk-go/commit/0db1712b237930416461c2411d263e6d1150d957)) 586 * **api:** CMA Memory public beta ([180e00c](https://github.com/anthropics/anthropic-sdk-go/commit/180e00cdc4863a6a64986e03fed9eb4a04117f40)) 587 * structured outputs via Schema any with auto-parse ([#759](https://github.com/anthropics/anthropic-sdk-go/issues/759)) ([46073d8](https://github.com/anthropics/anthropic-sdk-go/commit/46073d8f489a88fdf5ebf33163e4f0d364759eae)) 588 589 590 ### Bug Fixes 591 592 * **api:** fix errors in api spec ([e47c178](https://github.com/anthropics/anthropic-sdk-go/commit/e47c178b3ee1b5c47834239635b5a3abdff9a432)) 593 * **api:** restore missing features ([0fc6fac](https://github.com/anthropics/anthropic-sdk-go/commit/0fc6fac141980cfce023ce2d0b30175980741db0)) 594 595 596 ### Chores 597 598 * **internal:** more robust bootstrap script ([5bde204](https://github.com/anthropics/anthropic-sdk-go/commit/5bde204d267187622a5228330235c9c048abeae1)) 599 * **tests:** bump steady to v0.22.1 ([4578c15](https://github.com/anthropics/anthropic-sdk-go/commit/4578c15e9a2f6ed05a05acfa608083c3a893d6dd)) 600 601 ## 1.37.0 (2026-04-16) 602 603 Full Changelog: [v1.36.0...v1.37.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.36.0...v1.37.0) 604 605 ### Features 606 607 * **api:** add claude-opus-4-7, token budgets and user_profiles ([6e758a9](https://github.com/anthropics/anthropic-sdk-go/commit/6e758a9e9ebde8298100869e9fb60c276aeb2572)) 608 609 ## 1.36.0 (2026-04-14) 610 611 Full Changelog: [v1.35.1...v1.36.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.35.1...v1.36.0) 612 613 ### Features 614 615 * **api:** mark Sonnet and Opus 4 as deprecated ([fc49d21](https://github.com/anthropics/anthropic-sdk-go/commit/fc49d213a3de80dd37836ef3ede4199943a81b12)) 616 * **bedrock:** use auth header for mantle client ([#734](https://github.com/anthropics/anthropic-sdk-go/issues/734)) ([629eec1](https://github.com/anthropics/anthropic-sdk-go/commit/629eec1290d19ccfb529eca411324bc9a8673e00)) 617 618 ## 1.35.1 (2026-04-13) 619 620 Full Changelog: [v1.35.0...v1.35.1](https://github.com/anthropics/anthropic-sdk-go/compare/v1.35.0...v1.35.1) 621 622 ### Bug Fixes 623 624 * **streaming:** add missing events ([227b83e](https://github.com/anthropics/anthropic-sdk-go/commit/227b83eeb617185d16547f466e1a0b8c120d2f79)) 625 626 ## 1.35.0 (2026-04-10) 627 628 Full Changelog: [v1.34.0...v1.35.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.34.0...v1.35.0) 629 630 ### Features 631 632 * vertex eu region ([#740](https://github.com/anthropics/anthropic-sdk-go/issues/740)) ([e8bda03](https://github.com/anthropics/anthropic-sdk-go/commit/e8bda03b9488abe87a9bc819dfb090fa3d72f554)) 633 634 635 ### Bug Fixes 636 637 * **tools:** convert tool response type to array ([#748](https://github.com/anthropics/anthropic-sdk-go/issues/748)) ([3a18787](https://github.com/anthropics/anthropic-sdk-go/commit/3a18787a46fb9188752240a4730a17eb3eb72cb8)) 638 639 640 ### Documentation 641 642 * update examples ([aff7b24](https://github.com/anthropics/anthropic-sdk-go/commit/aff7b24064036f9b8c069f3587d4992aaecd685a)) 643 644 ## 1.34.0 (2026-04-09) 645 646 Full Changelog: [v1.33.0...v1.34.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.33.0...v1.34.0) 647 648 ### Features 649 650 * **api:** Add beta advisor tool ([3a6ddba](https://github.com/anthropics/anthropic-sdk-go/commit/3a6ddba23f7763d502c0bdd0842f0f90bb662c7e)) 651 652 ## 1.33.0 (2026-04-08) 653 654 Full Changelog: [v1.32.0...v1.33.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.32.0...v1.33.0) 655 656 ### Features 657 658 * **api:** add support for Claude Managed Agents ([722b2ac](https://github.com/anthropics/anthropic-sdk-go/commit/722b2accb2ad73715639dd03339e14345304d5fc)) 659 660 ## 1.32.0 (2026-04-07) 661 662 Full Changelog: [v1.31.0...v1.32.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.31.0...v1.32.0) 663 664 ### Features 665 666 * **bedrock:** add AnthropicBedrockMantle client ([#704](https://github.com/anthropics/anthropic-sdk-go/issues/704)) ([058e8fa](https://github.com/anthropics/anthropic-sdk-go/commit/058e8fa51bcdaf3eaa8d9c4dfb51606647eb6fae)) 667 668 ## 1.31.0 (2026-04-07) 669 670 Full Changelog: [v1.30.0...v1.31.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.30.0...v1.31.0) 671 672 ### Features 673 674 * **api:** Add support for claude-mythos-preview ([7144a65](https://github.com/anthropics/anthropic-sdk-go/commit/7144a657108e2194c0ac1a667aef49c0a06e6af3)) 675 676 ## 1.30.0 (2026-04-03) 677 678 Full Changelog: [v1.29.0...v1.30.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.29.0...v1.30.0) 679 680 ### Features 681 682 * **vertex:** add support for US multi-region endpoint ([6f40457](https://github.com/anthropics/anthropic-sdk-go/commit/6f404579492f3502a818118797557678b703cefa)) 683 684 ## 1.29.0 (2026-04-01) 685 686 Full Changelog: [v1.28.0...v1.29.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.28.0...v1.29.0) 687 688 ### Features 689 690 * **api:** add structured stop_details to message responses ([1053799](https://github.com/anthropics/anthropic-sdk-go/commit/1053799aca55f0986a2e7728a4490e0cc0b99f50)) 691 692 693 ### Chores 694 695 * **internal:** client updates ([531283d](https://github.com/anthropics/anthropic-sdk-go/commit/531283d7a49e249062dd5e095774ce163550c3ae)) 696 697 ## 1.28.0 (2026-03-31) 698 699 Full Changelog: [v1.27.1...v1.28.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.27.1...v1.28.0) 700 701 ### Features 702 703 * **internal:** support comma format in multipart form encoding ([97ed8a1](https://github.com/anthropics/anthropic-sdk-go/commit/97ed8a14ccbe7e37464a2932a57ce986da967f08)) 704 705 706 ### Bug Fixes 707 708 * bump buger/jsonparser to v1.1.2 (GO-2026-4514) ([#665](https://github.com/anthropics/anthropic-sdk-go/issues/665)) ([96565eb](https://github.com/anthropics/anthropic-sdk-go/commit/96565ebd58e078a60eacd4437dfc3f1f599a7a1e)) 709 * prevent duplicate ? in query params ([0afa75c](https://github.com/anthropics/anthropic-sdk-go/commit/0afa75c82abdf5a34f4ca129457f8078c0c483a4)) 710 * **types:** generate shared enum types that are not referenced by other schemas ([5dc86f2](https://github.com/anthropics/anthropic-sdk-go/commit/5dc86f2b8369ff472a9bbbc6c4ff701006f1f72f)) 711 712 713 ### Chores 714 715 * **ci:** run builds on CI even if only spec metadata changed ([010a16f](https://github.com/anthropics/anthropic-sdk-go/commit/010a16f68d58c7d1187393f77a3c26cc92d5af65)) 716 * **ci:** skip lint on metadata-only changes ([8cc7cec](https://github.com/anthropics/anthropic-sdk-go/commit/8cc7cec0512d4b1298beacf11b23d0eebdabe468)) 717 * **ci:** support opting out of skipping builds on metadata-only commits ([adc7184](https://github.com/anthropics/anthropic-sdk-go/commit/adc71844b3b3e5773d213ec0751fdbe48976a537)) 718 * **client:** fix multipart serialisation of Default() fields ([3fc3613](https://github.com/anthropics/anthropic-sdk-go/commit/3fc36133b89aa264b2c94407e10596d20251695a)) 719 * **internal:** bump go toolchain to go1.25.8 to address std lib vulnerabilities ([e3feecb](https://github.com/anthropics/anthropic-sdk-go/commit/e3feecb7d0bf74892dd5a4fd13911bda38fead2a)) 720 * **internal:** support default value struct tag ([fc68556](https://github.com/anthropics/anthropic-sdk-go/commit/fc68556dad8696182ebb519be3bc2cba598bd9a8)) 721 * **internal:** update gitignore ([e2a5dd1](https://github.com/anthropics/anthropic-sdk-go/commit/e2a5dd16ed98b30e2b08c3856f8255c5653adac1)) 722 * remove unnecessary error check for url parsing ([6d42216](https://github.com/anthropics/anthropic-sdk-go/commit/6d422163c7e240045339b16a0b9b2a6d6231a123)) 723 * **tests:** bump steady to v0.19.4 ([3ca1569](https://github.com/anthropics/anthropic-sdk-go/commit/3ca1569b286f1e138b4517a77ee25b379707ce35)) 724 * **tests:** bump steady to v0.19.5 ([7364e49](https://github.com/anthropics/anthropic-sdk-go/commit/7364e49eeeb34e4750dbdad7bd5d50e518025355)) 725 * **tests:** bump steady to v0.19.6 ([28ebd01](https://github.com/anthropics/anthropic-sdk-go/commit/28ebd015e3eb072f571937322b938dd0ea39713d)) 726 * **tests:** bump steady to v0.19.7 ([77fc869](https://github.com/anthropics/anthropic-sdk-go/commit/77fc869429038406b543b60d8c39fee09f2aa5c7)) 727 * **tests:** bump steady to v0.20.1 ([e52beb5](https://github.com/anthropics/anthropic-sdk-go/commit/e52beb539f44912d839ba9f95b407c5bb9a42bd8)) 728 * **tests:** bump steady to v0.20.2 ([3a20191](https://github.com/anthropics/anthropic-sdk-go/commit/3a20191368126e38d1cb47cd737cd8642c311a33)) 729 * update docs for api:"required" ([aa0a03a](https://github.com/anthropics/anthropic-sdk-go/commit/aa0a03aa573cc1565dcffae2d079bbd18aa4c69b)) 730 731 ## 1.27.1 (2026-03-18) 732 733 Full Changelog: [v1.27.0...v1.27.1](https://github.com/anthropics/anthropic-sdk-go/compare/v1.27.0...v1.27.1) 734 735 ### Chores 736 737 * **internal:** regenerate SDK with no functional changes ([c963fd0](https://github.com/anthropics/anthropic-sdk-go/commit/c963fd0fd1e591bfd572f100a3a444ba40fe4ad4)) 738 * **internal:** tweak CI branches ([95e3410](https://github.com/anthropics/anthropic-sdk-go/commit/95e3410a6892afae8b1b4631d05b5bfd4bf12eb2)) 739 740 ## 1.27.0 (2026-03-16) 741 742 Full Changelog: [v1.26.0...v1.27.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.26.0...v1.27.0) 743 744 ### Features 745 746 * **api:** change array_format to brackets ([ca5ae6e](https://github.com/anthropics/anthropic-sdk-go/commit/ca5ae6eaf8243aece877d33eb88653db2e439a36)) 747 * **api:** chore(config): clean up model enum list ([#31](https://github.com/anthropics/anthropic-sdk-go/issues/31)) ([1db4ea7](https://github.com/anthropics/anthropic-sdk-go/commit/1db4ea7956259bb217bc2523a5244b6029c4bd15)) 748 * **api:** GA thinking-display-setting ([1924af2](https://github.com/anthropics/anthropic-sdk-go/commit/1924af22e00fad68ccf31a3809c8cab8d442c048)) 749 * **api:** remove publishing section from cli target ([514282e](https://github.com/anthropics/anthropic-sdk-go/commit/514282e1728881f7ef4c6782f3000ca0ec632d53)) 750 * **tests:** update mock server ([cf24ced](https://github.com/anthropics/anthropic-sdk-go/commit/cf24ced2844da5d0f645e7a2afbabb936c891892)) 751 752 753 ### Bug Fixes 754 755 * allow canceling a request while it is waiting to retry ([32ee053](https://github.com/anthropics/anthropic-sdk-go/commit/32ee05317970d99df3147c65c2055efabe354472)) 756 * **client:** update model reference from claude-3-7-sonnet-latest to claude-sonnet-4-5 ([2f42e73](https://github.com/anthropics/anthropic-sdk-go/commit/2f42e7336295d898d18c66ddd6f9f70bab108cc6)) 757 758 759 ### Chores 760 761 * **client:** reorganize code in Messages files to lead to less conflicts ([c677bb5](https://github.com/anthropics/anthropic-sdk-go/commit/c677bb58a3da8f17f0dbc630b5b28faed995aa6b)) 762 * **internal:** codegen related update ([c978aac](https://github.com/anthropics/anthropic-sdk-go/commit/c978aacf53bbcf6555ba97bdc6bdfc9be9d8f98d)) 763 * **internal:** codegen related update ([4ac31a2](https://github.com/anthropics/anthropic-sdk-go/commit/4ac31a2fb9dc45a41bcbaa25dfbf8848119768ec)) 764 * **internal:** codegen related update ([5b2b2fa](https://github.com/anthropics/anthropic-sdk-go/commit/5b2b2fa276ad9365ddcb53270f307db05e5b6363)) 765 * **internal:** codegen related update ([9678c6c](https://github.com/anthropics/anthropic-sdk-go/commit/9678c6c5d375f66cb569a537a0766a5ed4d8f7f0)) 766 * **internal:** codegen related update ([f6035d2](https://github.com/anthropics/anthropic-sdk-go/commit/f6035d2bb0c50cf97cea78fb3fe854289b11a34c)) 767 * **internal:** codegen related update ([9246bbb](https://github.com/anthropics/anthropic-sdk-go/commit/9246bbb15553cee531b5caef2c7876e84a8fe8f2)) 768 * **internal:** move custom custom `json` tags to `api` ([4392627](https://github.com/anthropics/anthropic-sdk-go/commit/4392627107c43726c242923c16b0f5ac2b432082)) 769 * **tests:** unskip tests that are now supported in steady ([b0ca374](https://github.com/anthropics/anthropic-sdk-go/commit/b0ca37403486c65ae171d2b330ff82c938fe9b58)) 770 771 772 ### Documentation 773 774 * streamline README, centralize documentation at docs.anthropic.com ([33f6943](https://github.com/anthropics/anthropic-sdk-go/commit/33f69431abd96025134d8967c20a1f313af3382d)), closes [#587](https://github.com/anthropics/anthropic-sdk-go/issues/587) 775 776 ## 1.26.0 (2026-02-19) 777 778 Full Changelog: [v1.25.1...v1.26.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.25.1...v1.26.0) 779 780 ### Features 781 782 * **api:** Add top-level cache control (automatic caching) ([75f9f70](https://github.com/anthropics/anthropic-sdk-go/commit/75f9f70045587c458ec2e3491b4eb88bc3329e9e)) 783 * **client:** add BetaToolRunner for automatic tool use loops ([#603](https://github.com/anthropics/anthropic-sdk-go/issues/603)) ([e44128a](https://github.com/anthropics/anthropic-sdk-go/commit/e44128a1a3c1d9b4710b4a024ace8121258b32b6)) 784 785 786 ### Chores 787 788 * **internal:** codegen related update ([6247d2f](https://github.com/anthropics/anthropic-sdk-go/commit/6247d2febe87242ee9d3ba49875ff62a5be9a626)) 789 790 ## 1.25.1 (2026-02-19) 791 792 Full Changelog: [v1.25.0...v1.25.1](https://github.com/anthropics/anthropic-sdk-go/compare/v1.25.0...v1.25.1) 793 794 ### Bug Fixes 795 796 * **client:** use correct format specifier for header serialization ([9115a61](https://github.com/anthropics/anthropic-sdk-go/commit/9115a6154d0b1ba94370911822986b2ef8584e9a)) 797 798 ## 1.25.0 (2026-02-18) 799 800 Full Changelog: [v1.24.0...v1.25.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.24.0...v1.25.0) 801 802 ### Features 803 804 * **api:** fix shared UserLocation and error code types ([cb98cd0](https://github.com/anthropics/anthropic-sdk-go/commit/cb98cd00c359c0181d7b39bdb057e7b06015aa33)) 805 806 ## 1.24.0 (2026-02-18) 807 808 Full Changelog: [v1.23.0...v1.24.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.23.0...v1.24.0) 809 810 ### Features 811 812 * **api:** manual updates ([54d01f5](https://github.com/anthropics/anthropic-sdk-go/commit/54d01f5187ef9ec49f803edfe643bf1bf1e91072)) 813 814 ## 1.23.0 (2026-02-17) 815 816 Full Changelog: [v1.22.1...v1.23.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.22.1...v1.23.0) 817 818 ### Features 819 820 * **api:** Releasing claude-sonnet-4-6 ([782d5a5](https://github.com/anthropics/anthropic-sdk-go/commit/782d5a5dc4c1f63cfef3afc5d257b08f8cf3fadc)) 821 822 823 ### Bug Fixes 824 825 * **api:** fix spec errors ([15e6a5a](https://github.com/anthropics/anthropic-sdk-go/commit/15e6a5a0b4fb426f126f7b26b087709ea7ba00ac)) 826 * remove duplicate ServerToolUseBlock struct declaration ([#595](https://github.com/anthropics/anthropic-sdk-go/issues/595)) ([d4ece8a](https://github.com/anthropics/anthropic-sdk-go/commit/d4ece8ae310dd0369a5ea05671295ae2c23a53d9)) 827 828 ## 1.22.1 (2026-02-10) 829 830 Full Changelog: [v1.22.0...v1.22.1](https://github.com/anthropics/anthropic-sdk-go/compare/v1.22.0...v1.22.1) 831 832 ### Bug Fixes 833 834 * **encoder:** correctly serialize NullStruct ([1435f8a](https://github.com/anthropics/anthropic-sdk-go/commit/1435f8ac4d272561c7e689cc6bb4e3794414ba57)) 835 836 ## 1.22.0 (2026-02-07) 837 838 Full Changelog: [v1.21.0...v1.22.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.21.0...v1.22.0) 839 840 ### Features 841 842 * **api:** enabling fast-mode in claude-opus-4-6 ([ebe6433](https://github.com/anthropics/anthropic-sdk-go/commit/ebe6433768cab86dcc02b71159aaa347a8d473ec)) 843 844 ## 1.21.0 (2026-02-05) 845 846 Full Changelog: [v1.20.0...v1.21.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.20.0...v1.21.0) 847 848 ### Features 849 850 * **api:** Release Claude Opus 4.6, adaptive thinking, and other features ([e899e64](https://github.com/anthropics/anthropic-sdk-go/commit/e899e64cd402eb004909d632e68acc4b0587f53c)) 851 852 853 ### Chores 854 855 * **ci:** remove claude-code-review workflow ([31db702](https://github.com/anthropics/anthropic-sdk-go/commit/31db70249f691b161f326f550dc26cdcce54dd30)) 856 857 ## 1.20.0 (2026-01-29) 858 859 Full Changelog: [v1.19.0...v1.20.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.19.0...v1.20.0) 860 861 ### Features 862 863 * **api:** add support for Structured Outputs in the Messages API ([10c3821](https://github.com/anthropics/anthropic-sdk-go/commit/10c382188df98d7b045aec525bdc47f3df25d576)) 864 * **api:** migrate sending message format in output_config rather than output_format ([f996db4](https://github.com/anthropics/anthropic-sdk-go/commit/f996db402bc1f868b11d877014a6c51d977c557f)) 865 * **client:** add a convenient param.SetJSON helper ([427514e](https://github.com/anthropics/anthropic-sdk-go/commit/427514ea6dde81f4eb374967577b5a4cf380f627)) 866 * **encoder:** support bracket encoding form-data object members ([eaaeadf](https://github.com/anthropics/anthropic-sdk-go/commit/eaaeadf6dd67119ca4406f0fb0337c16d9011b8f)) 867 868 869 ### Bug Fixes 870 871 * **accumulator:** revert to marshal accumulator on stop events ([#563](https://github.com/anthropics/anthropic-sdk-go/issues/563)) ([096a8a8](https://github.com/anthropics/anthropic-sdk-go/commit/096a8a8b20b530359c214e06272938bcf8a98c59)) 872 * **client:** retain streaming when user sets request body ([6d073fe](https://github.com/anthropics/anthropic-sdk-go/commit/6d073fe49f351c26c7f3fa8337e661c6a3600c68)) 873 * **docs:** add missing pointer prefix to api.md return types ([23aaf6d](https://github.com/anthropics/anthropic-sdk-go/commit/23aaf6de59f0c13c79dbe4fc1d764b47cfd83834)) 874 * **mcp:** correct code tool API endpoint ([6c8a083](https://github.com/anthropics/anthropic-sdk-go/commit/6c8a0831e6f084d316179a9288c4fa1c5420ea59)) 875 * rename param to avoid collision ([6d1cf75](https://github.com/anthropics/anthropic-sdk-go/commit/6d1cf75d5a407d5eb19c70e3778ab82bca74d0d5)) 876 * streaming endpoints should pass through errors correctly ([e584c87](https://github.com/anthropics/anthropic-sdk-go/commit/e584c87ec001ee8991ca17b8236a6ef3deb78ea7)) 877 * **to-param:** remove panics and add cases ([#524](https://github.com/anthropics/anthropic-sdk-go/issues/524)) ([f689816](https://github.com/anthropics/anthropic-sdk-go/commit/f6898163047854d39cec7c08ec5ab993bab463fc)) 878 879 880 ### Chores 881 882 * add float64 to valid types for RegisterFieldValidator ([b6bec73](https://github.com/anthropics/anthropic-sdk-go/commit/b6bec73c5ed18698884b990fc3dc6398a3784177)) 883 * **ci:** Add Claude Code GitHub Workflow ([a151836](https://github.com/anthropics/anthropic-sdk-go/commit/a151836056343974d15eda64180fc776ba0f169d)) 884 * **client:** improve example values ([8af69b8](https://github.com/anthropics/anthropic-sdk-go/commit/8af69b851f4a60334ed75542c2eacbe69c01893c)) 885 * **client:** mark claude-3-5-haiku as deprecated ([dcac65c](https://github.com/anthropics/anthropic-sdk-go/commit/dcac65c8dd82f232c2997456319c16357874f37b)) 886 * elide duplicate aliases ([c8e2ee1](https://github.com/anthropics/anthropic-sdk-go/commit/c8e2ee14de53b5636eadccb2a890e4464e30b8d4)) 887 * **internal:** codegen related update ([931c976](https://github.com/anthropics/anthropic-sdk-go/commit/931c9769f1ff0557a8eff333463e1847b15f7953)) 888 * **internal:** update `actions/checkout` version ([3bd83ec](https://github.com/anthropics/anthropic-sdk-go/commit/3bd83eca53f1ec0b759c2568601286405821dcbc)) 889 * **internal:** use different example values for some enums ([f2d46b8](https://github.com/anthropics/anthropic-sdk-go/commit/f2d46b87de1a57ed1790cad3134b5e340f22fd73)) 890 891 ## 1.19.0 (2025-11-24) 892 893 Full Changelog: [v1.18.1...v1.19.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.18.1...v1.19.0) 894 895 ### Features 896 897 * **api:** adds support for Claude Opus 4.5, Effort, Advance Tool Use Features, Autocompaction, and Computer Use v5 ([a03391c](https://github.com/anthropics/anthropic-sdk-go/commit/a03391cb00b8c78c79fd8bfe447f00d78f37db25)) 898 899 ## 1.18.1 (2025-11-19) 900 901 Full Changelog: [v1.18.0...v1.18.1](https://github.com/anthropics/anthropic-sdk-go/compare/v1.18.0...v1.18.1) 902 903 ### Bug Fixes 904 905 * **structured outputs:** use correct beta header ([09ec0a6](https://github.com/anthropics/anthropic-sdk-go/commit/09ec0a647b1a108bb7c74e4c7b1016502ca781bb)) 906 907 ## 1.18.0 (2025-11-14) 908 909 Full Changelog: [v1.17.0...v1.18.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.17.0...v1.18.0) 910 911 ### Features 912 913 * **api:** add support for structured outputs beta ([fb9cfb4](https://github.com/anthropics/anthropic-sdk-go/commit/fb9cfb4e4b571d5fec7da9874610aa8820aee80c)) 914 915 916 ### Chores 917 918 * bump gjson version ([69b5e0e](https://github.com/anthropics/anthropic-sdk-go/commit/69b5e0e40757884bece66397fb6ca769f4e00118)) 919 920 ## 1.17.0 (2025-11-05) 921 922 Full Changelog: [v1.16.0...v1.17.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.16.0...v1.17.0) 923 924 ### Features 925 926 * **bedrock:** re-route beta headers through request body ([00a2bf3](https://github.com/anthropics/anthropic-sdk-go/commit/00a2bf35b34aa49f1514493cf0638b467c4f4eec)) 927 928 929 ### Chores 930 931 * **internal:** grammar fix (it's -> its) ([687bc29](https://github.com/anthropics/anthropic-sdk-go/commit/687bc299cacb84349eb2684df46994c06f9ba962)) 932 933 ## 1.16.0 (2025-10-29) 934 935 Full Changelog: [v1.15.0...v1.16.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.15.0...v1.16.0) 936 937 ### Features 938 939 * **api:** add ability to clear thinking in context management ([6082754](https://github.com/anthropics/anthropic-sdk-go/commit/6082754e9b6a04570a93efdb5339853c71f1fe94)) 940 941 ## 1.15.0 (2025-10-28) 942 943 Full Changelog: [v1.14.0...v1.15.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.14.0...v1.15.0) 944 945 ### Features 946 947 * **api:** adding support for agent skills ([5660b52](https://github.com/anthropics/anthropic-sdk-go/commit/5660b5252a4de07f3343c9089b148b16cda794d4)) 948 949 950 ### Chores 951 952 * **api:** mark older sonnet models as deprecated ([f13c5bd](https://github.com/anthropics/anthropic-sdk-go/commit/f13c5bd18ebb169c59913985537ca025634ef7eb)) 953 954 ## 1.14.0 (2025-10-15) 955 956 Full Changelog: [v1.13.0...v1.14.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.13.0...v1.14.0) 957 958 ### Features 959 960 * **api:** manual updates ([3eac8aa](https://github.com/anthropics/anthropic-sdk-go/commit/3eac8aaee0dbb3f4a5e30b039d60503614365a82)) 961 962 963 ### Chores 964 965 * **client:** add context-management-2025-06-27 beta header ([eeba6fa](https://github.com/anthropics/anthropic-sdk-go/commit/eeba6fa95ca9eedf16897b413950fc5f80d0d8cb)) 966 * **client:** add model-context-window-exceeded-2025-08-26 beta header ([7d5a37d](https://github.com/anthropics/anthropic-sdk-go/commit/7d5a37d895b769739d23b6e91f6c0a806cade710)) 967 968 ## 1.13.0 (2025-09-29) 969 970 Full Changelog: [v1.12.0...v1.13.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.12.0...v1.13.0) 971 972 ### Features 973 974 * **api:** adds support for Claude Sonnet 4.5 and context management features ([3d5d51a](https://github.com/anthropics/anthropic-sdk-go/commit/3d5d51ad6ee64b34c7cc361a9dfd6f45966987dd)) 975 976 977 ### Bug Fixes 978 979 * bugfix for setting JSON keys with special characters ([c868b92](https://github.com/anthropics/anthropic-sdk-go/commit/c868b921190f8d371cc93d12e019daf5a7463306)) 980 * **internal:** unmarshal correctly when there are multiple discriminators ([ecc3ce3](https://github.com/anthropics/anthropic-sdk-go/commit/ecc3ce31a9ed98b8f2b66b5e1489fce510528f77)) 981 * use slices.Concat instead of sometimes modifying r.Options ([88e7186](https://github.com/anthropics/anthropic-sdk-go/commit/88e7186cad944290498a3381c829df36d26a1cce)) 982 983 984 ### Chores 985 986 * bump minimum go version to 1.22 ([87af8f3](https://github.com/anthropics/anthropic-sdk-go/commit/87af8f397ae68ce72a76a07a735d21495aad8799)) 987 * do not install brew dependencies in ./scripts/bootstrap by default ([c689348](https://github.com/anthropics/anthropic-sdk-go/commit/c689348cc4b5ec7ab3512261e4e3cc50d208a02c)) 988 * **internal:** fix tests ([bfc6eaf](https://github.com/anthropics/anthropic-sdk-go/commit/bfc6eafeff58664f0d6f155f96286f3993e60f89)) 989 * update more docs for 1.22 ([d67c50d](https://github.com/anthropics/anthropic-sdk-go/commit/d67c50d49082b4b28bdabc44943853431cd5205c)) 990 991 ## 1.12.0 (2025-09-10) 992 993 Full Changelog: [v1.11.0...v1.12.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.11.0...v1.12.0) 994 995 ### Features 996 997 * **api:** adds support for web_fetch_20250910 tool ([6d5e237](https://github.com/anthropics/anthropic-sdk-go/commit/6d5e2370e14e1d125ebebcf741b721e88dc0e810)) 998 999 1000 ### Chores 1001 1002 * tmp ([07b65e9](https://github.com/anthropics/anthropic-sdk-go/commit/07b65e9b178a1c280fc96e3f2a7bf30bd9932329)) 1003 1004 ## 1.11.0 (2025-09-05) 1005 1006 Full Changelog: [v1.10.0...v1.11.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.10.0...v1.11.0) 1007 1008 ### Features 1009 1010 * **api:** adds support for Documents in tool results ([7161c2c](https://github.com/anthropics/anthropic-sdk-go/commit/7161c2ce9843b80374186dc83fd84a8dfebda45f)) 1011 1012 1013 ### Bug Fixes 1014 1015 * **client:** fix issue in Go with nested document content params ([b442cc3](https://github.com/anthropics/anthropic-sdk-go/commit/b442cc3fd41ee53a18f8ccec868ae1057dae53a8)) 1016 * use release please annotations on more places ([31a09b0](https://github.com/anthropics/anthropic-sdk-go/commit/31a09b07991cc92d38517c80320d154246779a76)) 1017 1018 ## 1.10.0 (2025-09-02) 1019 1020 Full Changelog: [v1.9.1...v1.10.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.9.1...v1.10.0) 1021 1022 ### Features 1023 1024 * **api:** makes 1 hour TTL Cache Control generally available ([c28a9a3](https://github.com/anthropics/anthropic-sdk-go/commit/c28a9a3272acb1973f2a2fb768157ab27a8f440d)) 1025 * **client:** adds support for code-execution-2025-08-26 tool ([066a126](https://github.com/anthropics/anthropic-sdk-go/commit/066a126a92a8e09f10742f13e0db36724a96c788)) 1026 * use custom decoder for []ContentBlockParamUnion ([#464](https://github.com/anthropics/anthropic-sdk-go/issues/464)) ([4731597](https://github.com/anthropics/anthropic-sdk-go/commit/473159792468018c709da311d7ac27139cf851e6)) 1027 1028 1029 ### Bug Fixes 1030 1031 * close body before retrying ([c970e10](https://github.com/anthropics/anthropic-sdk-go/commit/c970e10ff45c04c38a5a2c87fe85a8c191e06f80)) 1032 1033 1034 ### Chores 1035 1036 * deprecate older claude-3-5 sonnet models ([#453](https://github.com/anthropics/anthropic-sdk-go/issues/453)) ([e49d59b](https://github.com/anthropics/anthropic-sdk-go/commit/e49d59b14be89dcfb858b565e5183ecf9c1e246b)) 1037 1038 ## 1.9.1 (2025-08-12) 1039 1040 Full Changelog: [v1.9.0...v1.9.1](https://github.com/anthropics/anthropic-sdk-go/compare/v1.9.0...v1.9.1) 1041 1042 ## 1.9.0 (2025-08-12) 1043 1044 Full Changelog: [v1.8.0...v1.9.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.8.0...v1.9.0) 1045 1046 ### Features 1047 1048 * **betas:** add context-1m-2025-08-07 ([c086118](https://github.com/anthropics/anthropic-sdk-go/commit/c086118c9acd55ec711b29a08f165b358e56332b)) 1049 1050 1051 ### Chores 1052 1053 * **internal:** detect breaking changes when removing endpoints ([91ea519](https://github.com/anthropics/anthropic-sdk-go/commit/91ea5197646ffd3d807610f11bab8726092e7a4b)) 1054 * **internal:** update comment in script ([de412b0](https://github.com/anthropics/anthropic-sdk-go/commit/de412b007a097ce7d3231e0ccdf7d57572f78199)) 1055 * update @stainless-api/prism-cli to v5.15.0 ([555556f](https://github.com/anthropics/anthropic-sdk-go/commit/555556f4ce77d406e904733b30c782039dacb837)) 1056 1057 ## 1.8.0 (2025-08-08) 1058 1059 Full Changelog: [v1.7.0...v1.8.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.7.0...v1.8.0) 1060 1061 ### Features 1062 1063 * **api:** search result content blocks ([0907804](https://github.com/anthropics/anthropic-sdk-go/commit/0907804ae58405abc4f4c0acb76464da3abdd00b)) 1064 * **client:** support optional json html escaping ([8da877c](https://github.com/anthropics/anthropic-sdk-go/commit/8da877cb04c62d081d36a1f8cb5eea7922a396ce)) 1065 1066 ## 1.7.0 (2025-08-05) 1067 1068 Full Changelog: [v1.6.2...v1.7.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.6.2...v1.7.0) 1069 1070 ### Features 1071 1072 * **api:** add claude-opus-4-1-20250805 ([72c9d29](https://github.com/anthropics/anthropic-sdk-go/commit/72c9d29255cb59d11b132062df00889a63dd609e)) 1073 * **api:** adds support for text_editor_20250728 tool ([be56278](https://github.com/anthropics/anthropic-sdk-go/commit/be56278e456ff5eb034852e17a4642be612e30a2)) 1074 * **api:** removed older deprecated models ([88a397a](https://github.com/anthropics/anthropic-sdk-go/commit/88a397acb01a7557fbd6852f85ece295a7c2a2b7)) 1075 * **docs:** add File Upload example ([bade71b](https://github.com/anthropics/anthropic-sdk-go/commit/bade71b64850e8fa4410c404f263d4252cdbb82d)) 1076 * update streaming error message to say 'required' not 'recommended' ([0fb3d30](https://github.com/anthropics/anthropic-sdk-go/commit/0fb3d30814f8aead1237283a994f405c1103aff2)) 1077 * update streaming error message to say 'required' not 'recommended' ([b23f6df](https://github.com/anthropics/anthropic-sdk-go/commit/b23f6df73098c6fe3aa599beb73973b699c4b2a4)) 1078 1079 1080 ### Bug Fixes 1081 1082 * **client:** process custom base url ahead of time ([2165b1a](https://github.com/anthropics/anthropic-sdk-go/commit/2165b1ac1c78491be85fdc6b49c63ab027caeed6)) 1083 1084 1085 ### Chores 1086 1087 * **client:** add TextEditor_20250429 tool ([20424fc](https://github.com/anthropics/anthropic-sdk-go/commit/20424fc340b4f10b208f5ba8ee2d2b4a6f9e546d)) 1088 * **internal:** version bump ([e03b3bd](https://github.com/anthropics/anthropic-sdk-go/commit/e03b3bdd13e207925a9da2b12b830ce9bb6ed88b)) 1089 1090 ## 1.6.2 (2025-07-18) 1091 1092 Full Changelog: [v1.6.1...v1.6.2](https://github.com/anthropics/anthropic-sdk-go/compare/v1.6.1...v1.6.2) 1093 1094 ### Chores 1095 1096 * **internal:** version bump ([defc645](https://github.com/anthropics/anthropic-sdk-go/commit/defc6458496679762e07ce8dc9838335e4bd8268)) 1097 1098 ## 1.6.1 (2025-07-18) 1099 1100 Full Changelog: [v1.6.0...v1.6.1](https://github.com/anthropics/anthropic-sdk-go/compare/v1.6.0...v1.6.1) 1101 1102 ### Chores 1103 1104 * **internal:** version bump ([459dd39](https://github.com/anthropics/anthropic-sdk-go/commit/459dd391b281273af9027a23e39b78c422dace0b)) 1105 1106 ## 1.6.0 (2025-07-18) 1107 1108 Full Changelog: [v1.5.0...v1.6.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.5.0...v1.6.0) 1109 1110 ### Features 1111 1112 * **client:** expand max streaming buffer size ([8b206e2](https://github.com/anthropics/anthropic-sdk-go/commit/8b206e2267b83af7e9f7f56f029497bd403608fe)) 1113 1114 1115 ### Bug Fixes 1116 1117 * **api:** revert change to NewToolResultBlock ([b4167e7](https://github.com/anthropics/anthropic-sdk-go/commit/b4167e7b3bb80927b3f397c0b6fb00f7340272a0)) 1118 * **client:** fix default timeout logic to match other languages ([47e47f5](https://github.com/anthropics/anthropic-sdk-go/commit/47e47f54f8bd1a58413c82137713bedf88e2d4d2)) 1119 * **tests:** make sure to build examples in scripts/lint ([69bcb13](https://github.com/anthropics/anthropic-sdk-go/commit/69bcb139fcf661bff527d345e9876c26c784befc)) 1120 1121 1122 ### Chores 1123 1124 * **api:** update BetaCitationSearchResultLocation ([5d040a7](https://github.com/anthropics/anthropic-sdk-go/commit/5d040a7698b11ee059c175ce4a806509a9ae8e5b)) 1125 * **internal:** fix lint script for tests ([f54301d](https://github.com/anthropics/anthropic-sdk-go/commit/f54301d9f251fa6e409852605f2d301c50d3466d)) 1126 * **internal:** restructure things to avoid conflicts ([5f1bead](https://github.com/anthropics/anthropic-sdk-go/commit/5f1bead6fd696504d63ebbbf21c1a55c707a3df7)) 1127 * lint tests ([4a64d14](https://github.com/anthropics/anthropic-sdk-go/commit/4a64d14e7988ba0c2343d7abc65f15da41bafb24)) 1128 * lint tests in subpackages ([4ae61a6](https://github.com/anthropics/anthropic-sdk-go/commit/4ae61a601cf94e459bc431e07c9b7e25557af493)) 1129 1130 1131 ### Documentation 1132 1133 * model in examples ([da9d5af](https://github.com/anthropics/anthropic-sdk-go/commit/da9d5af61544a6f25d9284ee6eee25f5d1364e8a)) 1134 * model in examples ([fe2da16](https://github.com/anthropics/anthropic-sdk-go/commit/fe2da16e4bf05ee7029b1be33059bf3a4e76c300)) 1135 1136 ## 1.5.0 (2025-07-03) 1137 1138 Full Changelog: [v1.4.0...v1.5.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.4.0...v1.5.0) 1139 1140 ### Features 1141 1142 * add RequestID to API errors ([884f13b](https://github.com/anthropics/anthropic-sdk-go/commit/884f13b87969c94bd3ed1343c17c84e69b676de8)) 1143 * **api:** add support for Search Result Content Blocks ([1f6ab8a](https://github.com/anthropics/anthropic-sdk-go/commit/1f6ab8aa2f3a29ca92920545933fc028b4701d20)) 1144 * **api:** api update ([27a18f2](https://github.com/anthropics/anthropic-sdk-go/commit/27a18f25697da82de75d5800a9077353bb5319a6)) 1145 * **api:** manual updates ([926b094](https://github.com/anthropics/anthropic-sdk-go/commit/926b094724c0443e8c2d19fc2c885d296254c01a)) 1146 * **client:** add debug log helper ([e427bb3](https://github.com/anthropics/anthropic-sdk-go/commit/e427bb35859880729e16cca16499accc3bb19a1b)) 1147 * **client:** add escape hatch for null slice & maps ([9e3ded0](https://github.com/anthropics/anthropic-sdk-go/commit/9e3ded03652bfd8fc5e63095f0849995907537fb)) 1148 * **vertex:** support global region endpoint ([3c0b86d](https://github.com/anthropics/anthropic-sdk-go/commit/3c0b86dc60bd05d12e854b8ec0fac79418532c78)) 1149 1150 1151 ### Bug Fixes 1152 1153 * **client:** deprecate BetaBase64PDFBlock in favor of BetaRequestDocumentBlock ([5d8fd96](https://github.com/anthropics/anthropic-sdk-go/commit/5d8fd9661585c1894aeb4e80670d577ab1cc3582)) 1154 * don't try to deserialize as json when ResponseBodyInto is []byte ([0e7ce7b](https://github.com/anthropics/anthropic-sdk-go/commit/0e7ce7b16f5af7afc94333cdef6958a08875a71d)) 1155 * **pagination:** check if page data is empty in GetNextPage ([d64dc0a](https://github.com/anthropics/anthropic-sdk-go/commit/d64dc0a334da95f82a665f9cef9f6a2f58f39878)) 1156 1157 1158 ### Chores 1159 1160 * **api:** mark claude-3-opus-20240229 as deprecated ([1472af8](https://github.com/anthropics/anthropic-sdk-go/commit/1472af8504ae2f48b562e4122e641b9207240d30)) 1161 * **ci:** enable for pull requests ([cdb1340](https://github.com/anthropics/anthropic-sdk-go/commit/cdb134079026cfa467d5f0299ee5e551fb50628a)) 1162 * **ci:** only run for pushes and fork pull requests ([d7d44ff](https://github.com/anthropics/anthropic-sdk-go/commit/d7d44ffb621e183f611fabe3ac6f0df06d99d459)) 1163 * fix documentation of null map ([c79ab28](https://github.com/anthropics/anthropic-sdk-go/commit/c79ab28a977f1bbda336bfffdd9fdc7ee6adccaf)) 1164 * **internal:** add breaking change detection ([49a1855](https://github.com/anthropics/anthropic-sdk-go/commit/49a1855d3d3f107ea69dc6c4e28a82dd36a9e2af)) 1165 1166 1167 ### Documentation 1168 1169 * simplify message creation syntax in README example ([#203](https://github.com/anthropics/anthropic-sdk-go/issues/203)) ([c4aef2e](https://github.com/anthropics/anthropic-sdk-go/commit/c4aef2e9c75a6cdfdfd8928bbc164b384051fc53)) 1170 * update models and non-beta ([a7bc60e](https://github.com/anthropics/anthropic-sdk-go/commit/a7bc60e1beb087c6cc0843e99d3d3e4b51b1859d)) 1171 1172 1173 ### Refactors 1174 1175 * improve Error() method to avoid code duplication ([43651c2](https://github.com/anthropics/anthropic-sdk-go/commit/43651c2804801454d24674baf62e05fc9e27e366)) 1176 1177 ## 1.4.0 (2025-06-04) 1178 1179 Full Changelog: [v1.3.0...v1.4.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.3.0...v1.4.0) 1180 1181 ### Features 1182 1183 * **client:** allow overriding unions ([079149c](https://github.com/anthropics/anthropic-sdk-go/commit/079149c673981891ecd35906cd610f8d4a4b69a9)) 1184 1185 1186 ### Chores 1187 1188 * **internal:** codegen related update ([853ba1f](https://github.com/anthropics/anthropic-sdk-go/commit/853ba1f46d2b6c476ee04d9c061368e708cc9e18)) 1189 1190 ## 1.3.0 (2025-06-03) 1191 1192 Full Changelog: [v1.2.2...v1.3.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.2.2...v1.3.0) 1193 1194 ### Features 1195 1196 * **client:** add support for new text_editor_20250429 tool ([b33c543](https://github.com/anthropics/anthropic-sdk-go/commit/b33c543f7dc3b74c3322b6f84c189b81f67b6154)) 1197 1198 ## 1.2.2 (2025-06-02) 1199 1200 Full Changelog: [v1.2.1...v1.2.2](https://github.com/anthropics/anthropic-sdk-go/compare/v1.2.1...v1.2.2) 1201 1202 ### Bug Fixes 1203 1204 * **client:** access subunions properly ([f29c162](https://github.com/anthropics/anthropic-sdk-go/commit/f29c1627fe94c6371937659d02f1af7b55583d60)) 1205 * fix error ([bbc002c](https://github.com/anthropics/anthropic-sdk-go/commit/bbc002ccbbf9df681201d9b8ba806c37338c0fd3)) 1206 1207 1208 ### Chores 1209 1210 * make go mod tidy continue on error ([ac184b4](https://github.com/anthropics/anthropic-sdk-go/commit/ac184b4f7afee4015d133a05ce819a8dac35be52)) 1211 1212 ## 1.2.1 (2025-05-23) 1213 1214 Full Changelog: [v1.2.0...v1.2.1](https://github.com/anthropics/anthropic-sdk-go/compare/v1.2.0...v1.2.1) 1215 1216 ### Chores 1217 1218 * **examples:** clean up MCP example ([66f406a](https://github.com/anthropics/anthropic-sdk-go/commit/66f406a04b9756281e7716e9b635c3e3f29397fb)) 1219 * **internal:** fix release workflows ([6a0ff4c](https://github.com/anthropics/anthropic-sdk-go/commit/6a0ff4cad1c1b4ab6435df80fccd945d6ce07be7)) 1220 1221 ## 1.2.0 (2025-05-22) 1222 1223 Full Changelog: [v1.1.0...v1.2.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.1.0...v1.2.0) 1224 1225 ### Features 1226 1227 * **api:** add claude 4 models, files API, code execution tool, MCP connector and more ([b2e5cbf](https://github.com/anthropics/anthropic-sdk-go/commit/b2e5cbffd9d05228c2c2569974a6fa260c3f46be)) 1228 1229 1230 ### Bug Fixes 1231 1232 * **tests:** fix model testing for anthropic.CalculateNonStreamingTimeout ([9956842](https://github.com/anthropics/anthropic-sdk-go/commit/995684240b77284a4590b1b9ae34a85e525d1e52)) 1233 1234 ## 1.1.0 (2025-05-22) 1235 1236 Full Changelog: [v1.0.0...v1.1.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.0.0...v1.1.0) 1237 1238 ### Features 1239 1240 * **api:** add claude 4 models, files API, code execution tool, MCP connector and more ([2740935](https://github.com/anthropics/anthropic-sdk-go/commit/2740935f444de2d46103a7c777ea75e7e214872e)) 1241 1242 1243 ### Bug Fixes 1244 1245 * **tests:** fix model testing for anthropic.CalculateNonStreamingTimeout ([f1aa0a1](https://github.com/anthropics/anthropic-sdk-go/commit/f1aa0a1a32d1ca87b87a7d688daab31f2a36071c)) 1246 1247 ## 1.0.0 (2025-05-21) 1248 1249 Full Changelog: [v0.2.0-beta.4...v1.0.0](https://github.com/anthropics/anthropic-sdk-go/compare/v0.2.0-beta.4...v1.0.0) 1250 1251 ### ⚠ BREAKING CHANGES 1252 1253 * **client:** rename variant constructors 1254 * **client:** remove is present 1255 1256 ### Features 1257 1258 * **client:** improve variant constructor names ([227c96b](https://github.com/anthropics/anthropic-sdk-go/commit/227c96bf50e14827e112c31ad0f512354477a409)) 1259 * **client:** rename variant constructors ([078fad6](https://github.com/anthropics/anthropic-sdk-go/commit/078fad6558642a20b5fb3e82186b03c2efc0ab47)) 1260 1261 1262 ### Bug Fixes 1263 1264 * **client:** correctly set stream key for multipart ([f17bfe0](https://github.com/anthropics/anthropic-sdk-go/commit/f17bfe0aac0fb8228d9cad87ccca0deb7449a824)) 1265 * **client:** don't panic on marshal with extra null field ([d67a151](https://github.com/anthropics/anthropic-sdk-go/commit/d67a151a6ef0870918c5eaf84ce996cb5b1860b7)) 1266 * **client:** elide nil citations array ([09cadec](https://github.com/anthropics/anthropic-sdk-go/commit/09cadec3c076d74bda74e67c345a1aee1fdb7ce4)) 1267 * **client:** fix bug with empty tool inputs and citation deltas in Accumulate ([f4ac348](https://github.com/anthropics/anthropic-sdk-go/commit/f4ac348658fb83485d6555c63f90920599c98d99)) 1268 * **client:** increase max stream buffer size ([18a6ccf](https://github.com/anthropics/anthropic-sdk-go/commit/18a6ccf1961922a342467800c737fa000bdd254e)) 1269 * **client:** remove is present ([385d99f](https://github.com/anthropics/anthropic-sdk-go/commit/385d99fa225c755d9af737425ad2ef4d66ad5ba9)) 1270 * **client:** resolve naming collisions in union variants ([2cb6904](https://github.com/anthropics/anthropic-sdk-go/commit/2cb69048a6b583954934bc2926186564b5c74bf6)) 1271 * **client:** use scanner for streaming ([82a2840](https://github.com/anthropics/anthropic-sdk-go/commit/82a2840ce0f8aa8bd63f7697c566f437c06bb132)) 1272 1273 1274 ### Chores 1275 1276 * **examples:** remove fmt ([872e055](https://github.com/anthropics/anthropic-sdk-go/commit/872e0550171942c405786c7eedb23b8270f6e8de)) 1277 * formatting ([1ce0ee8](https://github.com/anthropics/anthropic-sdk-go/commit/1ce0ee863c5df658909d81b138dc1ebedb78844a)) 1278 * improve devcontainer setup ([9021490](https://github.com/anthropics/anthropic-sdk-go/commit/90214901d77ba57901e77d6ea31aafb06c120f2c)) 1279 1280 1281 ### Documentation 1282 1283 * upgrade security note to warning ([#346](https://github.com/anthropics/anthropic-sdk-go/issues/346)) ([83e70de](https://github.com/anthropics/anthropic-sdk-go/commit/83e70decfb5da14a1ecf78402302f7f0600515ea)) 1284 1285 ## 0.2.0-beta.4 (2025-05-18) 1286 1287 Full Changelog: [v0.2.0-beta.3...v0.2.0-beta.4](https://github.com/anthropics/anthropic-sdk-go/compare/v0.2.0-beta.3...v0.2.0-beta.4) 1288 1289 ### ⚠ BREAKING CHANGES 1290 1291 * **client:** clearer array variant names 1292 * **client:** rename resp package 1293 * **client:** improve core function names 1294 * **client:** improve union variant names 1295 * **client:** improve param subunions & deduplicate types 1296 1297 ### Features 1298 1299 * **api:** adds web search capabilities to the Claude API ([9ca314a](https://github.com/anthropics/anthropic-sdk-go/commit/9ca314a74998f24b5f17427698a8fa709b103581)) 1300 * **api:** extract ContentBlockDelta events into their own schemas ([#165](https://github.com/anthropics/anthropic-sdk-go/issues/165)) ([6d75486](https://github.com/anthropics/anthropic-sdk-go/commit/6d75486e9f524f5511f787181106a679e3414498)) 1301 * **api:** manual updates ([d405f97](https://github.com/anthropics/anthropic-sdk-go/commit/d405f97373cd7ae863a7400441d1d79c85f0ddd5)) 1302 * **api:** manual updates ([e1326cd](https://github.com/anthropics/anthropic-sdk-go/commit/e1326cdd756beb871e939af8be8b45fd3d5fdc9a)) 1303 * **api:** manual updates ([a92a382](https://github.com/anthropics/anthropic-sdk-go/commit/a92a382976d595dd32208109b480bf26dbbdc00f)) 1304 * **api:** manual updates ([59bd507](https://github.com/anthropics/anthropic-sdk-go/commit/59bd5071282403373ddca9333fafc9efc90a16d6)) 1305 * **client:** add dynamic streaming buffer to handle large lines ([510e099](https://github.com/anthropics/anthropic-sdk-go/commit/510e099e19fa71411502650eb387f1fee79f5d0d)) 1306 * **client:** add escape hatch to omit required param fields ([#175](https://github.com/anthropics/anthropic-sdk-go/issues/175)) ([6df8184](https://github.com/anthropics/anthropic-sdk-go/commit/6df8184947d6568260fa0bc22a89a27d10eaacd0)) 1307 * **client:** add helper method to generate constant structs ([015e8bc](https://github.com/anthropics/anthropic-sdk-go/commit/015e8bc7f74582fb5a3d69021ad3d61e96d65b36)) 1308 * **client:** add support for endpoint-specific base URLs in python ([44645c9](https://github.com/anthropics/anthropic-sdk-go/commit/44645c9fd0b883db4deeb88bfee6922ec9845ace)) 1309 * **client:** add support for reading base URL from environment variable ([835e632](https://github.com/anthropics/anthropic-sdk-go/commit/835e6326b658cd40590cd8bbed0932ab219e6d2d)) 1310 * **client:** clearer array variant names ([1fdea8f](https://github.com/anthropics/anthropic-sdk-go/commit/1fdea8f9fedc470a917d12607b3b7ebe3f0f6439)) 1311 * **client:** experimental support for unmarshalling into param structs ([94c8fa4](https://github.com/anthropics/anthropic-sdk-go/commit/94c8fa41ecb4792cb7da043bde2c0f5ddafe84b0)) 1312 * **client:** improve param subunions & deduplicate types ([8daacf6](https://github.com/anthropics/anthropic-sdk-go/commit/8daacf6866e8bc706ec29e17046e53d4ed100364)) 1313 * **client:** make response union's AsAny method type safe ([#174](https://github.com/anthropics/anthropic-sdk-go/issues/174)) ([f410ed0](https://github.com/anthropics/anthropic-sdk-go/commit/f410ed025ee57a05b0cec8d72a1cb43d30e564a6)) 1314 * **client:** rename resp package ([8e7d278](https://github.com/anthropics/anthropic-sdk-go/commit/8e7d2788e9be7b954d07de731e7b27ad2e2a9e8e)) 1315 * **client:** support custom http clients ([#177](https://github.com/anthropics/anthropic-sdk-go/issues/177)) ([ff7a793](https://github.com/anthropics/anthropic-sdk-go/commit/ff7a793b43b99dc148b30e408edfdc19e19c28b2)) 1316 * **client:** support more time formats ([af2df86](https://github.com/anthropics/anthropic-sdk-go/commit/af2df86f24acbe6b9cdcc4e055c3ff754303e0ef)) 1317 * **client:** support param struct overrides ([#167](https://github.com/anthropics/anthropic-sdk-go/issues/167)) ([e0d5eb0](https://github.com/anthropics/anthropic-sdk-go/commit/e0d5eb098c6441e99d53c6d997c7bcca460a238b)) 1318 * **client:** support unions in query and forms ([#171](https://github.com/anthropics/anthropic-sdk-go/issues/171)) ([6bf1ce3](https://github.com/anthropics/anthropic-sdk-go/commit/6bf1ce36f0155dba20afd4b63bf96c4527e2baa5)) 1319 1320 1321 ### Bug Fixes 1322 1323 * **client:** clean up reader resources ([2234386](https://github.com/anthropics/anthropic-sdk-go/commit/223438673ade3be3435bebf7063fd34ddf3dfb8e)) 1324 * **client:** correctly update body in WithJSONSet ([f531c77](https://github.com/anthropics/anthropic-sdk-go/commit/f531c77c15859b1f2e61d654f4d9956cdfafa082)) 1325 * **client:** deduplicate stop reason type ([#155](https://github.com/anthropics/anthropic-sdk-go/issues/155)) ([0f985ad](https://github.com/anthropics/anthropic-sdk-go/commit/0f985ad54ef47849d7d478c84d34c7350a4349b5)) 1326 * **client:** fix bug where types occasionally wouldn't generate ([8988713](https://github.com/anthropics/anthropic-sdk-go/commit/8988713904ce73d3c82de635d98da48b98532366)) 1327 * **client:** improve core function names ([0a2777f](https://github.com/anthropics/anthropic-sdk-go/commit/0a2777fd597a5eb74bcf6b1da48a9ff1988059de)) 1328 * **client:** improve union variant names ([92718fd](https://github.com/anthropics/anthropic-sdk-go/commit/92718fd4058fd8535fd888a56f83fc2d3ec505ef)) 1329 * **client:** include path for type names in example code ([5bbe836](https://github.com/anthropics/anthropic-sdk-go/commit/5bbe83639793878aa0ea52e8ff06b1d9ee72ed7c)) 1330 * **client:** resolve issue with optional multipart files ([e2af94c](https://github.com/anthropics/anthropic-sdk-go/commit/e2af94c840a8f9da566c781fc99c57084e490ec1)) 1331 * **client:** return error on bad custom url instead of panic ([#169](https://github.com/anthropics/anthropic-sdk-go/issues/169)) ([b086b55](https://github.com/anthropics/anthropic-sdk-go/commit/b086b55f4886474282d4e2ea9ee3495cbf25ec6b)) 1332 * **client:** support multipart encoding array formats ([#170](https://github.com/anthropics/anthropic-sdk-go/issues/170)) ([611a25a](https://github.com/anthropics/anthropic-sdk-go/commit/611a25a427fc5303bb311fa4a2fec836d55b0933)) 1333 * **client:** time format encoding fix ([d589846](https://github.com/anthropics/anthropic-sdk-go/commit/d589846c1a08ad56d639d60736e2b8e190f7f2b1)) 1334 * **client:** unmarshal responses properly ([8344a1c](https://github.com/anthropics/anthropic-sdk-go/commit/8344a1c58dd497abbed8e9e689efca544256eaa8)) 1335 * **client:** unmarshal stream events into fresh memory ([#168](https://github.com/anthropics/anthropic-sdk-go/issues/168)) ([9cc1257](https://github.com/anthropics/anthropic-sdk-go/commit/9cc1257a67340e446ac415ec9ddddded24bb1f9a)) 1336 * handle empty bodies in WithJSONSet ([0bad01e](https://github.com/anthropics/anthropic-sdk-go/commit/0bad01e40a2a4b5b376ba27513d7e16d604459d9)) 1337 * **internal:** fix type changes ([d8ef353](https://github.com/anthropics/anthropic-sdk-go/commit/d8ef3531840ac1dc0541d3b1cf0015d1db29e2b6)) 1338 * **pagination:** handle errors when applying options ([2381476](https://github.com/anthropics/anthropic-sdk-go/commit/2381476e64991e781b696890c98f78001e256b3b)) 1339 1340 1341 ### Chores 1342 1343 * **ci:** add timeout thresholds for CI jobs ([335e9f0](https://github.com/anthropics/anthropic-sdk-go/commit/335e9f0af2275f1af21aa7062afb50bee81771b6)) 1344 * **ci:** only use depot for staging repos ([6818451](https://github.com/anthropics/anthropic-sdk-go/commit/68184515143aa1e4473208f794fa593668c94df4)) 1345 * **ci:** run on more branches and use depot runners ([b0ca09d](https://github.com/anthropics/anthropic-sdk-go/commit/b0ca09d1d39a8de390c47be804847a7647ca3c67)) 1346 * **client:** use new opt conversion ([#184](https://github.com/anthropics/anthropic-sdk-go/issues/184)) ([58dc74f](https://github.com/anthropics/anthropic-sdk-go/commit/58dc74f951aa6a0eb4355a0213c8695bfa7cb0ed)) 1347 * **docs:** doc improvements ([#173](https://github.com/anthropics/anthropic-sdk-go/issues/173)) ([aebe8f6](https://github.com/anthropics/anthropic-sdk-go/commit/aebe8f68afa3de4460cda6e4032c7859e13cda81)) 1348 * **docs:** document pre-request options ([8f5eb18](https://github.com/anthropics/anthropic-sdk-go/commit/8f5eb188146bd46ba990558a7e2348c8697d6405)) 1349 * **docs:** readme improvements ([#176](https://github.com/anthropics/anthropic-sdk-go/issues/176)) ([b5769ff](https://github.com/anthropics/anthropic-sdk-go/commit/b5769ffcf5ef5345659ae848b875227718ea2425)) 1350 * **docs:** update file uploads in README ([#166](https://github.com/anthropics/anthropic-sdk-go/issues/166)) ([a4a36bf](https://github.com/anthropics/anthropic-sdk-go/commit/a4a36bfbefa5a166774c23d8c5428fb55c1b4abe)) 1351 * **docs:** update respjson package name ([28910b5](https://github.com/anthropics/anthropic-sdk-go/commit/28910b57821cab670561a25bee413375187ed747)) 1352 * **internal:** expand CI branch coverage ([#178](https://github.com/anthropics/anthropic-sdk-go/issues/178)) ([900e2df](https://github.com/anthropics/anthropic-sdk-go/commit/900e2df3eb2d3e1309d85fdcf807998f701bea8a)) 1353 * **internal:** reduce CI branch coverage ([343f6c6](https://github.com/anthropics/anthropic-sdk-go/commit/343f6c6c295dc3d39f65aae481bc10969dbb5694)) 1354 * **internal:** remove CI condition ([#160](https://github.com/anthropics/anthropic-sdk-go/issues/160)) ([adfa1e2](https://github.com/anthropics/anthropic-sdk-go/commit/adfa1e2e349842aa88262af70b209d1a59dbb419)) 1355 * **internal:** update config ([#157](https://github.com/anthropics/anthropic-sdk-go/issues/157)) ([46f0194](https://github.com/anthropics/anthropic-sdk-go/commit/46f019497bd9533390c4b9f0ebee6863263ce009)) 1356 * **readme:** improve formatting ([66be9bb](https://github.com/anthropics/anthropic-sdk-go/commit/66be9bbb17ccc9d878e79b3c39605da3e2846297)) 1357 1358 1359 ### Documentation 1360 1361 * remove or fix invalid readme examples ([142576c](https://github.com/anthropics/anthropic-sdk-go/commit/142576c73b4dab5b84a2bf2481506ad642ad31cc)) 1362 * update documentation links to be more uniform ([457122b](https://github.com/anthropics/anthropic-sdk-go/commit/457122b79646dc17fa8752c98dbf4991edffc548)) 1363 1364 ## 0.2.0-beta.3 (2025-03-27) 1365 1366 Full Changelog: [v0.2.0-beta.2...v0.2.0-beta.3](https://github.com/anthropics/anthropic-sdk-go/compare/v0.2.0-beta.2...v0.2.0-beta.3) 1367 1368 ### Chores 1369 1370 * add hash of OpenAPI spec/config inputs to .stats.yml ([#154](https://github.com/anthropics/anthropic-sdk-go/issues/154)) ([76b91b5](https://github.com/anthropics/anthropic-sdk-go/commit/76b91b56fbf42fe8982e7b861885db179b1bdcc5)) 1371 * fix typos ([#152](https://github.com/anthropics/anthropic-sdk-go/issues/152)) ([1cf6a6a](https://github.com/anthropics/anthropic-sdk-go/commit/1cf6a6ae25231b88d2eedbe0758f1281cbe439d8)) 1372 1373 ## 0.2.0-beta.2 (2025-03-25) 1374 1375 Full Changelog: [v0.2.0-beta.1...v0.2.0-beta.2](https://github.com/anthropics/anthropic-sdk-go/compare/v0.2.0-beta.1...v0.2.0-beta.2) 1376 1377 ### Bug Fixes 1378 1379 * **client:** use raw json for tool input ([1013c2b](https://github.com/anthropics/anthropic-sdk-go/commit/1013c2bdb87a27d2420dbe0dcadc57d1fe3589f2)) 1380 1381 1382 ### Chores 1383 1384 * add request options to client tests ([#150](https://github.com/anthropics/anthropic-sdk-go/issues/150)) ([7c70ae1](https://github.com/anthropics/anthropic-sdk-go/commit/7c70ae134a345aff775694abcad255c76e7dfcba)) 1385 1386 ## 0.2.0-beta.1 (2025-03-25) 1387 1388 Full Changelog: [v0.2.0-alpha.13...v0.2.0-beta.1](https://github.com/anthropics/anthropic-sdk-go/compare/v0.2.0-alpha.13...v0.2.0-beta.1) 1389 1390 ### ⚠ BREAKING CHANGES 1391 1392 * **api:** migrate to v2 1393 1394 ### Features 1395 1396 * add SKIP_BREW env var to ./scripts/bootstrap ([#137](https://github.com/anthropics/anthropic-sdk-go/issues/137)) ([4057111](https://github.com/anthropics/anthropic-sdk-go/commit/40571110129d5c66f171ead36f5d725663262bc4)) 1397 * **api:** migrate to v2 ([fcd95eb](https://github.com/anthropics/anthropic-sdk-go/commit/fcd95eb8f45d0ffedcd1e47cd0879d7e66783540)) 1398 * **client:** accept RFC6838 JSON content types ([#139](https://github.com/anthropics/anthropic-sdk-go/issues/139)) ([78d17cd](https://github.com/anthropics/anthropic-sdk-go/commit/78d17cd4122893ba62b1e14714a1da004c128344)) 1399 * **client:** allow custom baseurls without trailing slash ([#135](https://github.com/anthropics/anthropic-sdk-go/issues/135)) ([9b30fce](https://github.com/anthropics/anthropic-sdk-go/commit/9b30fce0a71a35910315e02cd3a2f2afc1fd7962)) 1400 * **client:** improve default client options support ([07f82a6](https://github.com/anthropics/anthropic-sdk-go/commit/07f82a6f9e07bf9aadf4ca150287887cb9e75bc4)) 1401 * **client:** improve default client options support ([#142](https://github.com/anthropics/anthropic-sdk-go/issues/142)) ([f261355](https://github.com/anthropics/anthropic-sdk-go/commit/f261355e497748bcb112eecb67a95d7c7c5075c0)) 1402 * **client:** support v2 ([#147](https://github.com/anthropics/anthropic-sdk-go/issues/147)) ([6b3af98](https://github.com/anthropics/anthropic-sdk-go/commit/6b3af98e02a9b6126bd715d43f83b8adf8b861e8)) 1403 1404 1405 ### Chores 1406 1407 * **docs:** clarify breaking changes ([#146](https://github.com/anthropics/anthropic-sdk-go/issues/146)) ([a2586b4](https://github.com/anthropics/anthropic-sdk-go/commit/a2586b4beb2b9a0ad252e90223fbb471e6c25bc1)) 1408 * **internal:** codegen metadata ([ce0eca2](https://github.com/anthropics/anthropic-sdk-go/commit/ce0eca25c6a83fca9ececccb41faf04e74566e2d)) 1409 * **internal:** remove extra empty newlines ([#143](https://github.com/anthropics/anthropic-sdk-go/issues/143)) ([2ed1584](https://github.com/anthropics/anthropic-sdk-go/commit/2ed1584c7d80fddf2ef5143eabbd33b8f1a4603d)) 1410 1411 1412 ### Refactors 1413 1414 * tidy up dependencies ([#140](https://github.com/anthropics/anthropic-sdk-go/issues/140)) ([289cc1b](https://github.com/anthropics/anthropic-sdk-go/commit/289cc1b007094421305dfc4ef01ae68bb2d50ee5))