-
Notifications
You must be signed in to change notification settings - Fork 3.3k
feat(provider/anthropic): add return file_id property for anthropic code-execution-20250825 to download output files
#9669
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
Merged
lgrammel
merged 16 commits into
vercel:main
from
tsuzaki430:tsuz/anthropic-code-execute-file-id
Oct 23, 2025
Merged
feat(provider/anthropic): add return file_id property for anthropic code-execution-20250825 to download output files
#9669
lgrammel
merged 16 commits into
vercel:main
from
tsuzaki430:tsuz/anthropic-code-execute-file-id
Oct 23, 2025
Conversation
This file contains hidden or 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
Collaborator
Author
|
Hello , |
12 tasks
file_id property for anthropic code-execution-20250825 to download output files.file_id property for anthropic code-execution-20250825 to download output files
lgrammel
reviewed
Oct 23, 2025
Collaborator
|
This is great! I'll update the changeset and merge. |
…com/tsuzaki430/ai into tsuz/anthropic-code-execute-file-id
Collaborator
Author
|
Hello , thank you for the review😊 |
lgrammel
approved these changes
Oct 23, 2025
examples/next-openai/app/api/code-execution-files/anthropic/[file]/route.ts
Show resolved
Hide resolved
Contributor
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Background
The Anthropic code execution bash tool provides a list of the generated files. This feature was missing from #9435 (although present in the zod schemas). It enables downloading generated files from the Anthropic API.
Summary
file_idin code-execution-20250825Example
Use code execution to have the AI create an Excel file. Get the executed python code.

prompt:
Write a Python script to calculate fibonacci number and then execute it to find the 10th fibonacci number finally output data to excel file and python code.Manual Verification
package/anthropic
anthropic-code-execution-20250825.2for file_id return pattern.examples/ai-core
examples/next-openai
Checklist
pnpm changesetin the project root)pnpm prettier-fixin the project root)Related Issues
Fixes gap from #9435