Repository navigation
Python: Fix stale run commands in sample headers - #9601
Draft
Naveen Chatlapalli (1aifanatic) wants to merge 1 commit into
Draft
Naveen Chatlapalli (1aifanatic) wants to merge 1 commit into
Naveen Chatlapalli (1aifanatic) wants to merge 1 commit into
Conversation
Three samples' header comments pointed at files that no longer exist (renamed or moved out of samples/demos). Point them at the files themselves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Naveen Chatlapalli (1aifanatic)
deployed
to
github-app-auth
October 22, 2026 12:54 — with
GitHub Actions
Active
Naveen Chatlapalli (1aifanatic)
deployed
to
github-app-auth
October 22, 2026 12:54 — with
GitHub Actions
Active
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
All three corrected paths match their containing files, and the comment-only changes have no unresolved issues.
No open issues 🎉
What changed in this PR
Corrects stale run commands in three Python sample headers so each command points to its containing file.
Changes:
- Fixes filenames in the AutoGen migration and Azure embeddings sample comments.
- Updates the ChatKit header comment to use
05-end-to-endinstead ofdemos. - Changes comments only; executable code is unchanged.
| File | Description |
|---|---|
python/samples/autogen-migration/single_agent/03_agent_thread_and_stream.py |
Corrects the filename in the run command. |
python/samples/05-end-to-end/chatkit-integration/app.py |
Corrects the sample directory in the run command. |
python/samples/02-agents/embeddings/openai_embeddings_on_azure.py |
Corrects the filename in the run command. |
Review effort: Balanced
This branch was successfully deployed
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 & Context
Three Python samples have a "Run with" header comment that points to a file that does not exist, so copying the command fails:
samples/autogen-migration/single_agent/03_agent_thread_and_stream.py→.../03_assistant_agent_thread_and_stream.pysamples/02-agents/embeddings/openai_embeddings_on_azure.py→.../azure_openai_embeddings.pysamples/05-end-to-end/chatkit-integration/app.py→samples/demos/chatkit-integration/app.pyDescription & Review Guide
I found these by checking every
uv run samples/...path in sample headers against the tree. The M365 sample had the same stalesamples/demospath, and it is fixed in its own PR for #9595. The ChatKit change touches only the header comment, so it does not overlap with #9579.Related Issue
N/A - trivial change: each command points to a file that does not exist, and the correct path is the file containing the comment, so the desired result is not in dispute.
AI Assistance
AI assistance details: Claude Code helped write the script that found the stale paths, make the edits, and draft this description.
Contribution Checklist
breaking changelabel (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.🤖 Generated with Claude Code