semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

Python: Respect FunctionChoiceBehavior filters in OpenAI responses agent tools

Open ymuichiro opened this issue 2 months ago • 3 comments

issue: https://github.com/microsoft/semantic-kernel/issues/13234

Summary

  • honor FunctionChoiceBehavior filters when retrieving kernel function metadata

Contribution Checklist

ymuichiro avatar Oct 08 '25 17:10 ymuichiro

@ymuichiro Thanks for the contribution. Please have a look at a failing test, thanks: https://github.com/microsoft/semantic-kernel/actions/runs/18583595889/job/52983055182?pr=13235#step:5:445

moonbox3 avatar Oct 17 '25 05:10 moonbox3

@moonbox3 Fixed! I suspected the problem was in the test code, so I only changed the test code.

ymuichiro avatar Oct 17 '25 06:10 ymuichiro

Python Test Coverage

Python Test Coverage Report •
FileStmtsMissCoverMissing
agents/open_ai
   responses_agent_thread_actions.py44012870%177, 194, 207, 218–219, 227, 234, 247, 407–408, 410, 424, 429, 436, 451–452, 462, 469, 471–472, 481, 488, 490–491, 502, 509, 511–512, 522, 529, 534–535, 539, 551, 585–587, 590, 608–609, 620–622, 626, 630–631, 635–637, 648–650, 672, 674–675, 682–683, 685–686, 688, 690–691, 693–694, 792, 797, 805–806, 808, 814, 819, 824–826, 832–834, 839–840, 842–847, 849, 853–854, 856, 860, 864, 869–870, 875, 878–879, 939–942, 965, 1011–1014, 1055–1056, 1060–1062, 1064, 1089–1090, 1092–1096, 1098, 1108–1109, 1117, 1121, 1128, 1134, 1210, 1213, 1216
TOTAL27296456283% 

Python Unit Test Overview

Tests Skipped Failures Errors Time
3759 23 :zzz: 0 :x: 0 :fire: 1m 35s :stopwatch:

markwallace-microsoft avatar Oct 17 '25 07:10 markwallace-microsoft