Skip to content

Python: New Feature: Respect FunctionChoiceBehavior filters when building agent tool list #13234

@ymuichiro

Description

@ymuichiro

Summary

  • remove the TODO around FunctionChoiceBehavior filters in ResponsesAgentThreadActions._get_tools
  • skip kernel function exposure when enable_kernel_functions is disabled
  • request filtered kernel function metadata when filters are provided

Motivation

OpenAI responses agents should only surface functions that match the caller’s FunctionChoiceBehavior. The previous implementation ignored filters and could expose unintended tools.

  • python
  • semantic kernel 1.37.0

Metadata

Metadata

Assignees

Labels

ai connectorAnything related to AI connectorspythonPull requests for the Python Semantic KernelstaleIssue is stale because it has been open for a while and has no activity

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions