Skip to content

feat: Add get_thread method to BaseGroupChat (Issue #6085) - #8023

Open
Shotsan (shotsan) wants to merge 1 commit into
microsoft:mainfrom
shotsan:feature/issue-6085-get-thread
Open

feat: Add get_thread method to BaseGroupChat (Issue #6085)#8023
Shotsan (shotsan) wants to merge 1 commit into
microsoft:mainfrom
shotsan:feature/issue-6085-get-thread

Conversation

@shotsan

Copy link
Copy Markdown

Description

Fixes #6085

This PR implements the get_thread method for BaseGroupChat as requested in #6085.

Changes:

  1. Events: Added GroupChatGetThread request event and GroupChatThreadResponse to properly encapsulate the message list as a serializable Pydantic model. This resolves type-checking issues where autogen_core's @rpc validator natively rejects raw List return signatures.
  2. Manager: Added handle_get_thread RPC handler to BaseGroupChatManager.
  3. Group Chat: Added get_thread to BaseGroupChat. Included startup and shutdown lifecycle management of the embedded runtime to ensure the event loop is active when the method intercepts the request.
  4. Tests: Added test_round_robin_group_chat_get_thread and verified both single_threaded and embedded configurations.

@shotsan

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree [company=""]

@shotsan

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@shotsan
Shotsan (shotsan) force-pushed the feature/issue-6085-get-thread branch from 58f7233 to 6e2a934 Compare August 5, 2026 18:55
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.

Get current message thread from a group chat team.

2 participants