upload code files and along with code interpreter for LLM analysis#45404
Merged
howieleung merged 3 commits intomainfrom Feb 26, 2026
Merged
upload code files and along with code interpreter for LLM analysis#45404howieleung merged 3 commits intomainfrom
howieleung merged 3 commits intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the azure-ai-projects sample test harness to optionally upload the sample’s Python source files so LLM validation can use the Code Interpreter tool for deeper analysis, alongside a few related test/sample sanitization tweaks.
Changes:
- Add logic in the sample test executor to discover local imported Python files and (in live mode) upload them for Code Interpreter–enabled
responses.createvalidation; also delete uploaded files after validation. - Update sanitization/config values used by tests (sanitized model deployment name, assets tag).
- Minor sample prompt text adjustment.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| sdk/ai/azure-ai-projects/tests/test_base.py | Updates sanitized model deployment name used by test env var loader. |
| sdk/ai/azure-ai-projects/tests/samples/sample_executor.py | Adds local-module file discovery + optional Code Interpreter file upload/delete around LLM validation requests. |
| sdk/ai/azure-ai-projects/samples/agents/tools/sample_agent_openapi.py | Tweaks the example prompt text used for OpenAPI tool sample. |
| sdk/ai/azure-ai-projects/assets.json | Bumps assets tag to point at updated recorded assets. |
dargilco
approved these changes
Feb 26, 2026
howieleung
added a commit
that referenced
this pull request
Feb 26, 2026
…45404) * upload code files and along with code interpreter for LLM analysis * fix recording * fix fine tuning recording sanitization
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.
Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines