Implement IReadOnlyList on InMemoryChatMessageStore (#3205)

This commit is contained in:
westey
2026-01-13 19:47:23 +00:00
committed by GitHub
Unverified
parent 655a59a75f
commit 04657c207a
@@ -29,7 +29,7 @@ namespace Microsoft.Agents.AI;
/// </remarks>
[DebuggerDisplay("Count = {Count}")]
[DebuggerTypeProxy(typeof(DebugView))]
public sealed class InMemoryChatMessageStore : ChatMessageStore, IList<ChatMessage>
public sealed class InMemoryChatMessageStore : ChatMessageStore, IList<ChatMessage>, IReadOnlyList<ChatMessage>
{
private List<ChatMessage> _messages;