Skip to content

feat(agentchat): add source_verifier to GraphFlow and GraphFlowManager#7877

Draft
maxpetrusenkoagent wants to merge 1 commit into
microsoft:mainfrom
maxpetrusenkoagent:hermes/oss-pr-2026-06-23-autogen-7440
Draft

feat(agentchat): add source_verifier to GraphFlow and GraphFlowManager#7877
maxpetrusenkoagent wants to merge 1 commit into
microsoft:mainfrom
maxpetrusenkoagent:hermes/oss-pr-2026-06-23-autogen-7440

Conversation

@maxpetrusenkoagent

@maxpetrusenkoagent maxpetrusenkoagent commented Jun 23, 2026

Copy link
Copy Markdown

Summary

Adds source_verifier parameter to GraphFlow._create_group_chat_manager_factory and GraphFlowManager.__init__, completing the source_verifier chain across all group chat implementations.

Problem

The source_verifier parameter was added to BaseGroupChat, BaseGroupChatManager, RoundRobinGroupChat, SelectorGroupChat, and SwarmGroupChat, but was missing from GraphFlow and GraphFlowManager. This caused a TypeError when GraphFlow was used:

TypeError: GraphFlow._create_group_chat_manager_factory() got an unexpected keyword argument 'source_verifier'

Fix

  1. Added source_verifier parameter to GraphFlowManager.__init__ and passed it to BaseGroupChatManager.__init__.
  2. Added source_verifier parameter to GraphFlow._create_group_chat_manager_factory and passed it to the GraphFlowManager factory.

Testing

All 186 group chat tests pass (87 base + 76 graph + 23 nested).

Closes #7440


Created with: Hermes Agent

Adds source_verifier parameter to GraphFlow._create_group_chat_manager_factory
and GraphFlowManager.__init__, completing the source_verifier chain across
all group chat implementations (RoundRobinGroupChat, SelectorGroupChat,
SwarmGroupChat, GraphFlow).

Without this fix, GraphFlow raises TypeError when the base class passes
source_verifier to the factory method.

Closes microsoft#7440

Signed-off-by: maxpetrusenkoagent <max.petrusenko.agent@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proposal: Agent Identity Verification for GroupChat Participants

1 participant