Skip to content

Conversation

ymuichiro
Copy link
Contributor

issue: #13234

Summary

  • honor FunctionChoiceBehavior filters when retrieving kernel function metadata

Contribution Checklist

@ymuichiro ymuichiro requested a review from a team as a code owner October 8, 2025 17:43
@Copilot Copilot AI review requested due to automatic review settings October 8, 2025 17:43
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR ensures that FunctionChoiceBehavior filters are properly respected when retrieving kernel function metadata in OpenAI responses agent tools. Previously, the code was ignoring these filters and always returning all available functions.

  • Replaced the TODO comment with proper implementation of FunctionChoiceBehavior filter handling
  • Added early returns for cases where kernel functions are disabled or no plugins exist
  • Used conditional logic to apply filters when retrieving function metadata

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@ymuichiro ymuichiro force-pushed the feat/respect-function-choice-filters branch from 1b57d35 to 30d70c1 Compare October 8, 2025 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant