Skip to content

Conversation

ellispinsky
Copy link
Contributor

@ellispinsky ellispinsky commented Oct 13, 2025

Background

Anthropic has released a new tool code_execution_20250825.

Summary

Added Anthropic code execution tool 20250825 with enhanced bash and text editing support.

Manual Verification

  • ran pnpm tsx src/generate-text/anthropic-code-execution-latest.ts and confirmed the tool worked.
  • ran pnpm tsx src/stream-text/anthropic-code-execution-latest.ts and confirmed the tool worked.
  • test ui example http://localhost:3000/chat-anthropic-code-execution with multiple messages

Tasks

  • add snapshot test generate
  • add snapshot test stream
  • map tool calls and call streaming to code execution tool
  • remove output camelcase mapping
  • create and test e2e ui example
  • multi-turn / input mapping
  • figure out text editor input schemas for str_replace and view

Future Work

  • Anthropic file id support

Related Issues

closes #9433

…enhanced Bash support and add new result types for text editor and Bash execution
@ellispinsky
Copy link
Contributor Author

to close issue #9433

@ellispinsky
Copy link
Contributor Author

@gr2m this is my first PR on this repo, can I get some feedback & tips on anything I can do to get things merged quicker?

@lgrammel
Copy link
Collaborator

@ellispinsky I'll take it from here, thanks for the pr.

@lgrammel lgrammel changed the title feat(anthropic): update code execution tool to version 20250825 with … feat(provider/anthropic): add code_execution_20250825 tool Oct 14, 2025
@lgrammel
Copy link
Collaborator

needs to support new fields
image

@lgrammel
Copy link
Collaborator

lgrammel commented Oct 14, 2025

This is way more complex. The tool input/output processing needs to be rewritten and we need to distinguish between the old and the new tool version.

@lgrammel
Copy link
Collaborator

more changes planned, pls do not make any commits

@lgrammel lgrammel self-assigned this Oct 14, 2025
@lgrammel lgrammel merged commit 6f845b4 into vercel:main Oct 14, 2025
17 of 18 checks passed
vercel-ai-sdk bot pushed a commit that referenced this pull request Oct 14, 2025
@vercel-ai-sdk vercel-ai-sdk bot removed the backport label Oct 14, 2025
@vercel-ai-sdk
Copy link
Contributor

vercel-ai-sdk bot commented Oct 14, 2025

⚠️ Backport to release-v5.0 created but has conflicts: #9491

lgrammel added a commit that referenced this pull request Oct 14, 2025
…9491)

This is an automated backport of #9435 to the release-v5.0 branch.

---------

Co-authored-by: ellispinsky <[email protected]>
Co-authored-by: Lars Grammel <[email protected]>
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.

Support Anthropic Code Execution 2025-08-25 tool

2 participants