From 475f317bc558b1b0da859efde26848d720ea5a47 Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Mon, 18 Nov 2024 07:44:10 -0500 Subject: [PATCH] Add a [DebuggerDisplay] to GeneratedEmbeddings (#5657) --- .../Embeddings/GeneratedEmbeddings.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Libraries/Microsoft.Extensions.AI.Abstractions/Embeddings/GeneratedEmbeddings.cs b/src/Libraries/Microsoft.Extensions.AI.Abstractions/Embeddings/GeneratedEmbeddings.cs index e983dd3b64..23470a8875 100644 --- a/src/Libraries/Microsoft.Extensions.AI.Abstractions/Embeddings/GeneratedEmbeddings.cs +++ b/src/Libraries/Microsoft.Extensions.AI.Abstractions/Embeddings/GeneratedEmbeddings.cs @@ -3,12 +3,14 @@ using System.Collections; using System.Collections.Generic; +using System.Diagnostics; using Microsoft.Shared.Diagnostics; namespace Microsoft.Extensions.AI; /// Represents the result of an operation to generate embeddings. /// Specifies the type of the generated embeddings. +[DebuggerDisplay("Count = {Count}")] public sealed class GeneratedEmbeddings : IList, IReadOnlyList where TEmbedding : Embedding {