-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Merged
tdabasinskas
merged 10 commits into
main
from
dependabot/go_modules/github.com/anthropics/anthropic-sdk-go-0.2.0-beta.2
Mar 27, 2025
Conversation
This file contains 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
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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
e9141c6
release: 0.2.0-beta.2bc6ee97
fix(client): use raw json for tool inputea4caa6
chore: add request options to client tests (#150)fcf331b
release: 0.2.0-beta.1e9a3e23
feat(client): support v2 (#147)00effff
chore(docs): clarify breaking changes (#146)73cb44f
chore(internal): codegen metadata4f345a7
feat(api)!: migrate to v2f16dfde
chore(internal): remove extra empty newlines (#143)8586e44
feat(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 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)