Python: Fix GroupChat orchestrator message cleanup issue (#3712)

* Fix GroupChat orchestrator message cleanup issue

Apply clean_conversation_for_handoff to GroupChatOrchestrator and
AgentBasedGroupChatOrchestrator _handle_response methods to remove
tool-related content that causes API errors from empty messages.

Fixes #3705

* Move orchestration related files to orchestrations package.

* Fix imports

---------

Co-authored-by: alliscode <bentho@microsoft.com>
Co-authored-by: Evan Mattson <evan.mattson@microsoft.com>
This commit is contained in:
Ben Thomas
2026-02-06 03:50:37 +00:00
committed by GitHub
co-authored by alliscode Evan Mattson
parent f96772f6e8
commit c609b14f63
20 changed files with 131 additions and 174 deletions
@@ -15,7 +15,6 @@ from agent_framework import (
ChatMessage,
Content,
Executor,
GroupChatRequestMessage,
RequestInfoEvent,
Workflow,
WorkflowCheckpoint,
@@ -29,6 +28,7 @@ from agent_framework import (
)
from agent_framework._workflows._checkpoint import InMemoryCheckpointStorage
from agent_framework.orchestrations import (
GroupChatRequestMessage,
MagenticBuilder,
MagenticContext,
MagenticManagerBase,