Skip to content

.Net: Bug: ChatCompletionAgent without Description hangs indefinitely #12987

@andrewabest

Description

@andrewabest

Describe the bug
When used in an Orchestration (tested with Parallel and Sequential), a ChatCompletionAgent without a description will hang indefinitely or time out (if timeout specified) without a response.

Log output when hung:

trce: Microsoft.SemanticKernel.Agents.Orchestration.Sequential.SequentialOrchestration[0]
      REGISTER SequentialOrchestration Start: SequentialOrchestration_5b2f6297ec9549a98ebb7c47cb21e1e2/default
info: Microsoft.SemanticKernel.Agents.Orchestration.Sequential.SequentialOrchestration[0]
      REGISTER ACTOR SequentialOrchestration MEMBER #2: SequentialOrchestration_5b2f6297ec9549a98ebb7c47cb21e1e2_Agent_2
info: Microsoft.SemanticKernel.Agents.Orchestration.Sequential.SequentialOrchestration[0]
      REGISTER ACTOR SequentialOrchestration MEMBER #1: SequentialOrchestration_5b2f6297ec9549a98ebb7c47cb21e1e2_Agent_1
trce: Microsoft.SemanticKernel.Agents.Orchestration.Sequential.SequentialOrchestration[0]
      REGISTER SequentialOrchestration Complete: SequentialOrchestration_5b2f6297ec9549a98ebb7c47cb21e1e2/default
info: Microsoft.SemanticKernel.Agents.Orchestration.Sequential.SequentialOrchestration[0]
      INVOKE SequentialOrchestration: SequentialOrchestration_5b2f6297ec9549a98ebb7c47cb21e1e2/default
trce: Microsoft.SemanticKernel.Agents.Orchestration.Sequential.SequentialOrchestration[0]
      YIELD SequentialOrchestration: SequentialOrchestration_5b2f6297ec9549a98ebb7c47cb21e1e2/default
info: Microsoft.SemanticKernel.Agents.Orchestration.AgentOrchestration.RequestActor[0]
      INIT SequentialOrchestration: SequentialOrchestration_5b2f6297ec9549a98ebb7c47cb21e1e2_Boot/default
info: Microsoft.SemanticKernel.Agents.Orchestration.AgentOrchestration.RequestActor[0]
      START SequentialOrchestration: SequentialOrchestration_5b2f6297ec9549a98ebb7c47cb21e1e2_Boot/default

To Reproduce
Use https://github.com/microsoft/semantic-kernel/blob/main/dotnet/samples/GettingStartedWithAgents/Orchestration/Step01_Concurrent.cs and remove the description from one or both of the agents.

Expected behavior
If description is a required field of ChatCompletionAgent, it should either ideally be a non-nullable constructor parameter, or at the very least a clear exception should be thrown upon invocation if description has not been provided.

Platform

  • Language: C#
  • Source: NuGet package 1.62.0
  • AI model: o4-mini
  • IDE: repro in LinqPad
  • OS: repro on Mac

Metadata

Metadata

Assignees

Labels

.NETIssue or Pull requests regarding .NET codebugSomething isn't workingmulti-agentIssues for multi-agent orchestration

Type

Projects

Status

Sprint: In Progress

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions