You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
.Net: Python: Bug: AggregatorTerminationStrategy is not a TerminationStrategy and cannot be used with AgentGroupChat #14591
AggregatorTerminationStrategy (python/semantic_kernel/agents/strategies/termination/aggregator_termination_strategy.py) cannot be used as a termination strategy for AgentGroupChat. It derives from KernelBaseModel instead of TerminationStrategy, and it exposes should_terminate_async instead of the should_terminate / should_agent_terminate methods that every other termination strategy has and that AgentGroupChat calls.
AgentGroupChat.termination_strategy is typed TerminationStrategy, so pydantic rejects the aggregator, and the class is exported from semantic_kernel.agents.strategies but has no way to be plugged in.
pydantic_core._pydantic_core.ValidationError: 1 validation error for AgentGroupChat
termination_strategy
Input should be a valid dictionary or instance of TerminationStrategy [type=model_type, input_value=AggregatorTerminationStra...onCondition.ALL: 'All'>), input_type=AggregatorTerminationStrategy]
The existing unit tests only call should_terminate_async directly, so they never exercise it through a group chat.
Expected behavior
AggregatorTerminationStrategy should be a TerminationStrategy (as in the .NET AggregatorTerminationStrategy), so it can be passed to AgentGroupChat, and it can be scoped with agents and limited with maximum_iterations like the other strategies.
Proposed fix
Make the class derive from TerminationStrategy and move the aggregation logic into should_agent_terminate. Keep should_terminate_async as a thin wrapper that calls it, so existing callers do not break.
changed the title [-]Python: Bug: AggregatorTerminationStrategy is not a TerminationStrategy and cannot be used with AgentGroupChat[/-][+].Net: Python: Bug: AggregatorTerminationStrategy is not a TerminationStrategy and cannot be used with AgentGroupChat[/+]on Oct 13, 2026
Activity
[-]Python: Bug: AggregatorTerminationStrategy is not a TerminationStrategy and cannot be used with AgentGroupChat[/-][+].Net: Python: Bug: AggregatorTerminationStrategy is not a TerminationStrategy and cannot be used with AgentGroupChat[/+]