Python: Added Samples for HostedCodeInterpreterTool with files#1583
Merged
giles17 merged 2 commits intomicrosoft:mainfrom Oct 21, 2025
Merged
Python: Added Samples for HostedCodeInterpreterTool with files#1583giles17 merged 2 commits intomicrosoft:mainfrom
giles17 merged 2 commits intomicrosoft:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds two new sample files demonstrating how to use HostedCodeInterpreterTool with file uploads for both Azure OpenAI and OpenAI services, resolving issue #1518.
Key Changes:
- Added sample for OpenAI Responses Client with code interpreter and file uploads
- Added sample for Azure OpenAI Responses Client with code interpreter and file uploads
- Added print statement to existing file search example for consistency
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| python/samples/getting_started/agents/openai/openai_responses_client_with_code_interpreter_files.py | New sample demonstrating OpenAI Responses Client with HostedCodeInterpreterTool and file uploads |
| python/samples/getting_started/agents/azure_openai/azure_responses_client_code_interpreter_files.py | New sample demonstrating Azure OpenAI Responses Client with HostedCodeInterpreterTool and file uploads |
| python/samples/getting_started/agents/openai/openai_assistants_with_file_search.py | Added print statement for consistency with other samples |
...samples/getting_started/agents/openai/openai_responses_client_with_code_interpreter_files.py
Outdated
Show resolved
Hide resolved
...samples/getting_started/agents/azure_openai/azure_responses_client_code_interpreter_files.py
Outdated
Show resolved
Hide resolved
dmytrostruk
approved these changes
Oct 20, 2025
victordibia
approved these changes
Oct 21, 2025
ReubenBond
pushed a commit
to ReubenBond/agent-framework
that referenced
this pull request
Oct 28, 2025
…soft#1583) * code interpreter with files * import fix
arisng
pushed a commit
to arisng/agent-framework
that referenced
this pull request
Feb 2, 2026
…soft#1583) * code interpreter with files * import fix
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
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.
Motivation and Context
This PR adds new sample files demonstrating how to use HostedCodeInterpreterTool with file uploads for both Azure OpenAI and OpenAI services.
Resolves #1518
Description
Contribution Checklist