chore(deps): bump github.com/anthropics/anthropic-sdk-go from 0.2.0-alpha.13 to 0.2.0-beta.2#9
Merged
tdabasinskas merged 10 commits intomainfrom Mar 27, 2025
Conversation
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]>
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]>
ca31030 to
3d00a5f
Compare
…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
previously approved these changes
Mar 27, 2025
8594cd1 to
84e5676
Compare
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.
84e5676 to
f5281d2
Compare
tdabasinskas
approved these changes
Mar 27, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
Changelog
Sourced from github.com/anthropics/anthropic-sdk-go's changelog.
Commits
e9141c6release: 0.2.0-beta.2bc6ee97fix(client): use raw json for tool inputea4caa6chore: add request options to client tests (#150)fcf331brelease: 0.2.0-beta.1e9a3e23feat(client): support v2 (#147)00effffchore(docs): clarify breaking changes (#146)73cb44fchore(internal): codegen metadata4f345a7feat(api)!: migrate to v2f16dfdechore(internal): remove extra empty newlines (#143)8586e44feat(client): improve default client options supportDependabot 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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)