Skip to content

Python: add ChatMessageStore backward-compat alias for HistoryProvider (fixes #5700)#6189

Open
hanhan761 wants to merge 1 commit into
microsoft:mainfrom
hanhan761:fix-5700-chatmessagestore-import
Open

Python: add ChatMessageStore backward-compat alias for HistoryProvider (fixes #5700)#6189
hanhan761 wants to merge 1 commit into
microsoft:mainfrom
hanhan761:fix-5700-chatmessagestore-import

Conversation

@hanhan761
Copy link
Copy Markdown

Summary

Add a backward-compatible ChatMessageStore alias for HistoryProvider in the public API exports.

Issue

Fixes #5700

Background

ChatMessageStore was removed in #3850 (Feb 2026) when the thread/memory layer was reworked into the context-provider pipeline. The replacement is HistoryProvider. However, users attempting to import ChatMessageStore (as documented in some upgrade guides) receive an ImportError.

Changes

  • Added ChatMessageStore = HistoryProvider alias in agent_framework/__init__.py
  • Added ChatMessageStore to __all__

Verification

from agent_framework import ChatMessageStore, HistoryProvider
assert ChatMessageStore is HistoryProvider
assert ChatMessageStore in __import__(agent_framework).__all__

Copilot AI review requested due to automatic review settings May 30, 2026 07:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a backward-compatible alias ChatMessageStore for HistoryProvider and exposes it in the package's public API.

Changes:

  • Introduce ChatMessageStore = HistoryProvider alias.
  • Add "ChatMessageStore" to the module exports.

Comment on lines 155 to 157
)
ChatMessageStore = HistoryProvider
from ._settings import SecretString, load_settings
Comment on lines +375 to 376
"ChatMessageStore",
"ChatOptions",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python: [Bug]: can't import ChatMessageStore in 1.2.2

3 participants