Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump github.com/anthropics/anthropic-sdk-go from 0.2.0-alpha.13 to 0.2.0-beta.2 #9

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 26, 2025

Bumps github.com/anthropics/anthropic-sdk-go from 0.2.0-alpha.13 to 0.2.0-beta.2.

Release notes

Sourced from github.com/anthropics/anthropic-sdk-go's releases.

v0.2.0-beta.2

0.2.0-beta.2 (2025-03-25)

Full Changelog: v0.2.0-beta.1...v0.2.0-beta.2

Bug Fixes

  • client: use raw json for tool input (1013c2b)

Chores

v0.2.0-beta.1

0.2.0-beta.1 (2025-03-25)

Full Changelog: v0.2.0-alpha.13...v0.2.0-beta.1

⚠ BREAKING CHANGES

  • api: migrate to v2

Features

  • add SKIP_BREW env var to ./scripts/bootstrap (#137) (4057111)
  • api: migrate to v2 (fcd95eb)
  • client: accept RFC6838 JSON content types (#139) (78d17cd)
  • client: allow custom baseurls without trailing slash (#135) (9b30fce)
  • client: improve default client options support (07f82a6)
  • client: improve default client options support (#142) (f261355)
  • client: support v2 (#147) (6b3af98)

Chores

Refactors

Changelog

Sourced from github.com/anthropics/anthropic-sdk-go's changelog.

0.2.0-beta.2 (2025-03-25)

Full Changelog: v0.2.0-beta.1...v0.2.0-beta.2

Bug Fixes

  • client: use raw json for tool input (1013c2b)

Chores

0.2.0-beta.1 (2025-03-25)

Full Changelog: v0.2.0-alpha.13...v0.2.0-beta.1

⚠ BREAKING CHANGES

  • api: migrate to v2

Features

  • add SKIP_BREW env var to ./scripts/bootstrap (#137) (4057111)
  • api: migrate to v2 (fcd95eb)
  • client: accept RFC6838 JSON content types (#139) (78d17cd)
  • client: allow custom baseurls without trailing slash (#135) (9b30fce)
  • client: improve default client options support (07f82a6)
  • client: improve default client options support (#142) (f261355)
  • client: support v2 (#147) (6b3af98)

Chores

Refactors

Commits
  • e9141c6 release: 0.2.0-beta.2
  • bc6ee97 fix(client): use raw json for tool input
  • ea4caa6 chore: add request options to client tests (#150)
  • fcf331b release: 0.2.0-beta.1
  • e9a3e23 feat(client): support v2 (#147)
  • 00effff chore(docs): clarify breaking changes (#146)
  • 73cb44f chore(internal): codegen metadata
  • 4f345a7 feat(api)!: migrate to v2
  • f16dfde chore(internal): remove extra empty newlines (#143)
  • 8586e44 feat(client): improve default client options support
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/anthropics/anthropic-sdk-go](https://github.com/anthropics/anthropic-sdk-go) from 0.2.0-alpha.13 to 0.2.0-beta.2.
- [Release notes](https://github.com/anthropics/anthropic-sdk-go/releases)
- [Changelog](https://github.com/anthropics/anthropic-sdk-go/blob/main/CHANGELOG.md)
- [Commits](anthropics/anthropic-sdk-go@v0.2.0-alpha.13...v0.2.0-beta.2)

---
updated-dependencies:
- dependency-name: github.com/anthropics/anthropic-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Mar 26, 2025
@dependabot dependabot bot requested a review from a team as a code owner March 26, 2025 07:40
Bumps [github.com/anthropics/anthropic-sdk-go](https://github.com/anthropics/anthropic-sdk-go) from 0.2.0-alpha.13 to 0.2.0-beta.2.
- [Release notes](https://github.com/anthropics/anthropic-sdk-go/releases)
- [Changelog](https://github.com/anthropics/anthropic-sdk-go/blob/main/CHANGELOG.md)
- [Commits](anthropics/anthropic-sdk-go@v0.2.0-alpha.13...v0.2.0-beta.2)

---
updated-dependencies:
- dependency-name: github.com/anthropics/anthropic-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/anthropics/anthropic-sdk-go-0.2.0-beta.2 branch from ca31030 to 3d00a5f Compare March 27, 2025 13:05
…es/github.com/anthropics/anthropic-sdk-go-0.2.0-beta.2' into dependabot/go_modules/github.com/anthropics/anthropic-sdk-go-0.2.0-beta.2
Update the Agent struct to use an interface type for the anthropic client instead of a concrete pointer type. This improves testability by allowing mock implementations to be injected.

Also remove the nil check when creating a new client since we can now directly assign the interface implementation.
The Anthropic SDK API has changed, requiring updates to how we create message parameters and tool choices. This commit removes the use of the deprecated `anthropic.F()` function and updates the parameter structure to match the new SDK format.
The Anthropic SDK has changed its type structure, requiring updates to our code:

- Changed `block.AsUnion()` to `block.Type`
- Updated `convertTools` to use the new type structure with `ToolUnionParam` and `OfTool`
- Removed unnecessary `anthropic.F()` wrappers
- Updated how tool schemas are constructed
Switch from type assertion to string type checking for anthropic content blocks. This change ensures we correctly handle the different block types in agent responses.
Remove a debug logging statement that was marked as temporary with a TODO comment. This logging is no longer needed as the UI has been updated.
The Anthropic client API has changed its structure for tools and client initialization. This updates our tests to match the new API structure:

- Check for zero value of client instead of nil
- Update tool param access to use the new nested structure (OfTool property)
- Simplify tool param testing code
tdabasinskas
tdabasinskas previously approved these changes Mar 27, 2025
@tdabasinskas tdabasinskas force-pushed the dependabot/go_modules/github.com/anthropics/anthropic-sdk-go-0.2.0-beta.2 branch from 8594cd1 to 84e5676 Compare March 27, 2025 13:54
Changed the anthropic client from a value type to a pointer type to better handle client initialization. This change allows for lazy initialization of the client when needed during Run() if not already provided.

Added a check to initialize the client at runtime if not already set, which helps prevent nil pointer dereference errors when the agent is created without an API key initially.
@tdabasinskas tdabasinskas force-pushed the dependabot/go_modules/github.com/anthropics/anthropic-sdk-go-0.2.0-beta.2 branch from 84e5676 to f5281d2 Compare March 27, 2025 13:55
@tdabasinskas tdabasinskas enabled auto-merge March 27, 2025 13:55
@tdabasinskas tdabasinskas disabled auto-merge March 27, 2025 13:57
@tdabasinskas tdabasinskas merged commit 2264382 into main Mar 27, 2025
7 checks passed
@tdabasinskas tdabasinskas deleted the dependabot/go_modules/github.com/anthropics/anthropic-sdk-go-0.2.0-beta.2 branch March 27, 2025 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant