-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Labels
.NETIssue or Pull requests regarding .NET codeIssue or Pull requests regarding .NET codebugSomething isn't workingSomething isn't workingmulti-agentIssues for multi-agent orchestrationIssues for multi-agent orchestration
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
.NETIssue or Pull requests regarding .NET codeIssue or Pull requests regarding .NET codebugSomething isn't workingSomething isn't workingmulti-agentIssues for multi-agent orchestrationIssues for multi-agent orchestration
Type
Projects
Status
Sprint: In Progress
Status
Done