Skip to content

Update to anthropics/anthropic-sdk-go@main#1

Merged
andreynering merged 81 commits intocharmbracelet:fantasyfrom
coder:fantasy
Feb 23, 2026
Merged

Update to anthropics/anthropic-sdk-go@main#1
andreynering merged 81 commits intocharmbracelet:fantasyfrom
coder:fantasy

Conversation

@kylecarbs
Copy link
Copy Markdown

New diff to upstream main: anthropics/anthropic-sdk-go@main...kylecarbs:anthropic-sdk-go:fantasy.

Old diff to upstream main: anthropics/anthropic-sdk-go@main...charmbracelet:anthropic-sdk-go:fantasy

stainless-app bot and others added 30 commits October 16, 2025 15:50
…nches--main--changes--next

release: 1.15.0
…nches--main--changes--next

release: 1.16.0
… Features, Autocompaction, and Computer Use v5
copy from next without all message utils

add utils

revert diffs for betamessage

migrate param utils
add more to param converters
clean up test

clean up test
stainless-app bot and others added 21 commits February 10, 2026 20:34
Releasing claude-sonnet-4-6 and GAing advanced tool use features.
Removes a duplicate `type ServerToolUseBlock struct {` line and adds
the missing `Name` field to `ServerToolUseBlockParam` that was lost
in the same codegen error.
Makes new tool versions available as top level tool types:
- WebSearchTool_20260209
- WebFetchTool_20260209
- ServerToolCaller_20260120
- CodeExecutionTool_20260120

Enables new code execution version `code_execution_20260120` as an 'allowed_caller'.
Adds `BetaToolRunner` which automatically handles the conversation loop between the assistant generating tool calls, executing those tool calls, and sending results back until a final answer is produced.

Includes streaming support, concurrent tool execution, configurable iteration limits, and a `toolrunner` package with helper constructors for defining tools from JSON schema, map, or struct types.
# Conflicts:
#	bedrock/bedrock.go
#	beta.go
#	betamessage.go
#	client.go
#	message.go
#	shared/constant/constants.go
@kylecarbs
Copy link
Copy Markdown
Author

@andreynering all of the tests pass locally for me.

I believe this fully preserved all behavior prior (manual review and Codex believe so as well), but LMK if you see any issues.

After this merges I'll update charmbracelet/fantasy#147 to use this ref instead.

@kylecarbs
Copy link
Copy Markdown
Author

kylecarbs commented Feb 23, 2026

Also @andreynering it might be wise to not change the import path. It would reduce a significant portion of the diff, and in fantasy we can just add a replace line:

replace github.com/anthropics/anthropic-sdk-go => github.com/charmbracelet/anthropic-sdk-go fantasy

LMK if you'd like me to do this as part of my changes, happy to!

@andreynering
Copy link
Copy Markdown
Member

@kylecarbs Unfortunately, replace doesn't work for us here. Yes, I tried at the time.

The reason is that replace is only considered when building locally, but ignored by go get or go install.

@kylecarbs
Copy link
Copy Markdown
Author

@andreynering just ran into that when trying to do the replace on our own repo, so I agree with you.

@andreynering andreynering merged commit 63879b0 into charmbracelet:fantasy Feb 23, 2026
andreynering added a commit to charmbracelet/fantasy that referenced this pull request Feb 23, 2026
The `fantasy` branch was updated from upstream.

See:

* charmbracelet/anthropic-sdk-go#1
* #147
andreynering added a commit to charmbracelet/fantasy that referenced this pull request Feb 23, 2026
The `fantasy` branch was updated from upstream.

See:

* charmbracelet/anthropic-sdk-go#1
* #147
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants