Skip to content

Commit

Permalink
Add a [DebuggerDisplay] to GeneratedEmbeddings (#5657)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentoub authored Nov 18, 2024
1 parent 2977765 commit 475f317
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@

using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using Microsoft.Shared.Diagnostics;

namespace Microsoft.Extensions.AI;

/// <summary>Represents the result of an operation to generate embeddings.</summary>
/// <typeparam name="TEmbedding">Specifies the type of the generated embeddings.</typeparam>
[DebuggerDisplay("Count = {Count}")]
public sealed class GeneratedEmbeddings<TEmbedding> : IList<TEmbedding>, IReadOnlyList<TEmbedding>
where TEmbedding : Embedding
{
Expand Down

0 comments on commit 475f317

Please sign in to comment.