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

.Net: Respect custom ToolChoice and ParallelToolCallsEnabled options in OpenAIResponseAgent

Open DeepAQ opened this issue 3 months ago • 0 comments

Motivation and Context

Fixes #13253 by respecting custom ToolChoice and ParallelToolCallsEnabled options in OpenAIResponseAgent.

Description

Previously, when creating ResponseCreationOptions for OpenAIResponseAgent with kernel plugins, ToolChoice will be set to Auto and ParallelToolCallsEnabled will be set to true regardless of the options provided when creating the agent.

This change fixes the problem by setting the default options only when they are not provided, respecting the custom options.

Contribution Checklist

DeepAQ avatar Oct 21 '25 03:10 DeepAQ