Skip to content

Python: Fix non-string KernelArguments being converted to strings in prompt template function calls - #13292

Merged
Evan Mattson (moonbox3) merged 3 commits into
microsoft:mainfrom
moonbox3:fix-13199
Oct 30, 2025
Merged

Evan Mattson (moonbox3) merged 3 commits into
microsoft:mainfrom
moonbox3:fix-13199

Conversation

@moonbox3

Copy link
Copy Markdown
Collaborator

Motivation and Context

Fixes #13199 - Non-string kernel arguments are now preserved when passed to functions in prompt templates. Adds unit tests.

Contribution Checklist

@moonbox3
Evan Mattson (moonbox3) requested a review from a team as a code owner October 24, 2025 05:12
@markwallace-microsoft Mark Wallace (markwallace-microsoft) added the python Pull requests for the Python Semantic Kernel label Oct 24, 2025
@markwallace-microsoft

Mark Wallace (markwallace-microsoft) commented Oct 24, 2025 •

Copy link
Copy Markdown
Contributor

Python Test Coverage

Python Test Coverage Report •
FileStmtsMissCoverMissing
template_engine/blocks
   code_block.py84198%119
   var_block.py41197%98
TOTAL27309456183% 

Python Unit Test Overview

Tests Skipped Failures Errors Time
3763 23 💤 0 ❌ 0 🔥 1m 39s ⏱️

@moonbox3
Evan Mattson (moonbox3) added this pull request to the merge queue Oct 28, 2025
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 28, 2025
@moonbox3
Evan Mattson (moonbox3) added this pull request to the merge queue Oct 29, 2025
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 29, 2025
@moonbox3
Evan Mattson (moonbox3) added this pull request to the merge queue Oct 29, 2025
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 29, 2025
@moonbox3
Evan Mattson (moonbox3) added this pull request to the merge queue Oct 30, 2025
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 30, 2025
@moonbox3
Evan Mattson (moonbox3) added this pull request to the merge queue Oct 30, 2025
Merged via the queue into microsoft:main with commit 05d659d Oct 30, 2025
42 of 48 checks passed
@moonbox3
Evan Mattson (moonbox3) deleted the fix-13199 branch October 30, 2025 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Pull requests for the Python Semantic Kernel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python: Bug: [Python] - Using Non-String KernelArguments in Prompt Template function parameters fails

4 participants