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

.Net: Bug: Semantic Kernel Orchestration: ReasoningEffort setting becomes lost when invoking

Open Hargravejason opened this issue 7 months ago • 3 comments

Describe the bug When involving orchestration, HandOff in my example, ReasoningEffort setting is lost.

To Reproduce Steps to reproduce the behavior:

  1. Create agent with GPT 5.4 and assign ReasoningEffort as "high"
  2. Create HandOff orchestration using created agent from step 1
  3. Invoke orchestration
  4. Observe HTTP request sent, reasoning_effort field is missing

Expected behavior When using orchestration, I would expect to maintain reasoning level set on the agent, and that it is not lost during orchestration processing.

Screenshots Agent HTTP request without orchestration:

Image

Agent HTTP request with orchestration:

Image

Platform

  • Language: C#
  • Source: 1.75.0
  • AI model: gpt-5.4-mini (version:2026-03-17)
  • IDE: Visual Studio 2026 April Release
  • OS: Windows 11

Additional context See attached sample code.

Program.txt

Hargravejason avatar Apr 29 '26 17:04 Hargravejason

I can take this as a focused orchestration settings-preservation fix. I reproduced the root cause on current main: HandoffActor creates a call-level default PromptExecutionSettings containing only FunctionChoiceBehavior, and the existing KernelArguments merge gives that default entry precedence over the agent's derived settings, dropping ReasoningEffort and other connector-specific properties. I plan to clone each configured agent execution setting, override only the handoff-required FunctionChoiceBehavior on the clone, and add a keyless HTTP regression test that asserts reasoning_effort remains in the orchestration request. I searched open and closed PRs by #13935 and ReasoningEffort/orchestration wording and found no implementation.

KXHXK avatar Aug 12 '26 23:08 KXHXK

Update: I found that #13946 already implements this issue's fix, including cloning provider-specific execution settings, preserving agent arguments, and an HTTP regression test for reasoning_effort. It did not appear in the issue timeline or my initial exact searches, but it fully covers the scope I described, so I will not open a duplicate PR. Apologies for the extra claim comment, and thanks to @tejakusireddy for the existing implementation.

KXHXK avatar Aug 13 '26 00:08 KXHXK

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Nov 11 '26 01:11 github-actions[bot]