Skip to content

Python: Fix SK migration samples#5047

Merged
eavanvalkenburg merged 3 commits into
mainfrom
taochen/fix-sk-migration-samples
Apr 2, 2026
Merged

Python: Fix SK migration samples#5047
eavanvalkenburg merged 3 commits into
mainfrom
taochen/fix-sk-migration-samples

Conversation

@TaoChenOSU

@TaoChenOSU TaoChenOSU commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

Motivation and Context

Fix SK migration samples

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

@TaoChenOSU TaoChenOSU self-assigned this Apr 1, 2026
Copilot AI review requested due to automatic review settings April 1, 2026 23:50
@TaoChenOSU TaoChenOSU added the python Usage: [Issues, PRs], Target: Python label Apr 1, 2026
@github-actions github-actions Bot changed the title Fix SK migration samples Python: Fix SK migration samples Apr 1, 2026
@TaoChenOSU
TaoChenOSU enabled auto-merge April 1, 2026 23:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Semantic Kernel (SK) migration samples and CI sample-validation environment to align with SK’s current OpenAI Responses agent settings API, so the SK-side examples run successfully alongside Agent Framework (AF) equivalents.

Changes:

  • Update SK Responses samples to use responses_model_id and ai_model_id instead of the older responses_model / ai_model fields.
  • Extend the python-sample-validation workflow job environment with SK-specific OpenAI/Azure OpenAI variables needed by the SK samples.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
python/samples/semantic-kernel-migration/openai_responses/01_basic_responses_agent.py Switches SK Responses model configuration to the *_model_id naming.
python/samples/semantic-kernel-migration/openai_responses/02_responses_agent_with_tool.py Same model-setting update for the tool/plugin SK Responses sample.
python/samples/semantic-kernel-migration/openai_responses/03_responses_agent_structured_output.py Same model-setting update for the structured-output SK Responses sample.
.github/workflows/python-sample-validation.yml Adds SK-focused env vars/comments for semantic-kernel migration sample validation.

@TaoChenOSU
TaoChenOSU added this pull request to the merge queue Apr 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 2, 2026
@eavanvalkenburg
eavanvalkenburg added this pull request to the merge queue Apr 2, 2026
Merged via the queue into main with commit 3d87cec Apr 2, 2026
30 checks passed
alliscode pushed a commit to alliscode/agent-framework that referenced this pull request Apr 3, 2026
* Fix SK migration samples

* Fix env vars for SK

* Hard code model for sheel tool samples
@moonbox3 moonbox3 removed the samples label Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Usage: [Issues, PRs], Target: Python

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants