feat: add get_thread() method to BaseGroupChat#7685
Open
yahyasaqban-lab wants to merge 1 commit into
Open
Conversation
Adds a public method to retrieve the current message thread from a group chat team via a new RPC event (GroupChatGetThread). Changes: - Add GroupChatGetThread and GroupChatGetThreadResponse event types - Add handle_get_thread RPC handler in BaseGroupChatManager - Add get_thread() public method on BaseGroupChat Part of microsoft#6085
nexoracontrol-ops
approved these changes
May 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
For
BaseGroupChat, there is currently no public method to retrieve all messages exchanged so far in a session. Users have to track messages externally. This PR adds a simpleget_thread()method.Changes
New Events (
_events.py)GroupChatGetThread— request event for retrieving the current message threadGroupChatGetThreadResponse— response event containing the list of messagesBaseGroupChatManager (
_base_group_chat_manager.py)handle_get_threadRPC handler that returns the current_message_threadas aGroupChatGetThreadResponseBaseGroupChat (
_base_group_chat.py)get_thread()public async method that sends aGroupChatGetThreadrequest to the group chat manager and returns the message listUsage
Fixes #6085