github anthropics/anthropic-sdk-go v0.2.0-beta.4

latest releases: v1.11.0, v1.10.0, v1.9.1...
pre-release3 months ago

0.2.0-beta.4 (2025-05-18)

Full Changelog: v0.2.0-beta.3...v0.2.0-beta.4

⚠ BREAKING CHANGES

  • client: clearer array variant names
  • client: rename resp package
  • client: improve core function names
  • client: improve union variant names
  • client: improve param subunions & deduplicate types

Features

  • api: adds web search capabilities to the Claude API (9ca314a)
  • api: extract ContentBlockDelta events into their own schemas (#165) (6d75486)
  • api: manual updates (d405f97)
  • api: manual updates (e1326cd)
  • api: manual updates (a92a382)
  • api: manual updates (59bd507)
  • client: add dynamic streaming buffer to handle large lines (510e099)
  • client: add escape hatch to omit required param fields (#175) (6df8184)
  • client: add helper method to generate constant structs (015e8bc)
  • client: add support for endpoint-specific base URLs in python (44645c9)
  • client: add support for reading base URL from environment variable (835e632)
  • client: clearer array variant names (1fdea8f)
  • client: experimental support for unmarshalling into param structs (94c8fa4)
  • client: improve param subunions & deduplicate types (8daacf6)
  • client: make response union's AsAny method type safe (#174) (f410ed0)
  • client: rename resp package (8e7d278)
  • client: support custom http clients (#177) (ff7a793)
  • client: support more time formats (af2df86)
  • client: support param struct overrides (#167) (e0d5eb0)
  • client: support unions in query and forms (#171) (6bf1ce3)

Bug Fixes

  • client: clean up reader resources (2234386)
  • client: correctly update body in WithJSONSet (f531c77)
  • client: deduplicate stop reason type (#155) (0f985ad)
  • client: fix bug where types occasionally wouldn't generate (8988713)
  • client: improve core function names (0a2777f)
  • client: improve union variant names (92718fd)
  • client: include path for type names in example code (5bbe836)
  • client: resolve issue with optional multipart files (e2af94c)
  • client: return error on bad custom url instead of panic (#169) (b086b55)
  • client: support multipart encoding array formats (#170) (611a25a)
  • client: time format encoding fix (d589846)
  • client: unmarshal responses properly (8344a1c)
  • client: unmarshal stream events into fresh memory (#168) (9cc1257)
  • handle empty bodies in WithJSONSet (0bad01e)
  • internal: fix type changes (d8ef353)
  • pagination: handle errors when applying options (2381476)

Chores

  • ci: add timeout thresholds for CI jobs (335e9f0)
  • ci: only use depot for staging repos (6818451)
  • ci: run on more branches and use depot runners (b0ca09d)
  • client: use new opt conversion (#184) (58dc74f)
  • docs: doc improvements (#173) (aebe8f6)
  • docs: document pre-request options (8f5eb18)
  • docs: readme improvements (#176) (b5769ff)
  • docs: update file uploads in README (#166) (a4a36bf)
  • docs: update respjson package name (28910b5)
  • internal: expand CI branch coverage (#178) (900e2df)
  • internal: reduce CI branch coverage (343f6c6)
  • internal: remove CI condition (#160) (adfa1e2)
  • internal: update config (#157) (46f0194)
  • readme: improve formatting (66be9bb)

Documentation

  • remove or fix invalid readme examples (142576c)
  • update documentation links to be more uniform (457122b)

Don't miss a new anthropic-sdk-go release

NewReleases is sending notifications on new releases.