Update to anthropics/anthropic-sdk-go@main#1
Update to anthropics/anthropic-sdk-go@main#1andreynering merged 81 commits intocharmbracelet:fantasyfrom
Conversation
…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
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
|
@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. |
|
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: LMK if you'd like me to do this as part of my changes, happy to! |
|
@kylecarbs Unfortunately, The reason is that |
|
@andreynering just ran into that when trying to do the replace on our own repo, so I agree with you. |
The `fantasy` branch was updated from upstream. See: * charmbracelet/anthropic-sdk-go#1 * #147
The `fantasy` branch was updated from upstream. See: * charmbracelet/anthropic-sdk-go#1 * #147
CONTRIBUTING.md.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