You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2164cdf
Browse filesBrowse the repository at this point in the historyBrowse files
feat(anthropic): add the new code_execution tool (#12900)
## Background
#12794
anthropic silently released a new code execution tool (which is
suggested for programmatic tool calling)
ref here:
https://platform.claude.com/docs/en/agents-and-tools/tool-use/programmatic-tool-calling
## Summary
adds the new tool to the registry, updates the api schema, makes sure
the the conversion from prompts to responses is correctly mapped
## Manual Verification
verified by running the examples
-
`examples/ai-functions/src/generate-text/anthropic/code-execution-20260120.ts`
-
`examples/ai-functions/src/stream-text/anthropic/code-execution-20260120.ts`
-
`examples/ai-functions/src/generate-text/anthropic/programmatic-tool-calling.ts`
- `http://localhost:3000/chat/anthropic-programmatic-tool-calling`
## Checklist
- [x] Tests have been added / updated (for bug fixes / features)
- [x] Documentation has been added / updated (for bug fixes / features)
- [x] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)
## Related Issues
fixe #12794
0 commit comments