Skip to content

Commit b130370

Browse files
committed
Add [Description] to DataContent.Uri
So that if a DataContent has schema generated for it, it's obvious in the schema that the "uri" is specifically a data URI.
1 parent acf1d45 commit b130370

File tree

1 file changed

+4
-0
lines changed
  • src/Libraries/Microsoft.Extensions.AI.Abstractions/Contents

1 file changed

+4
-0
lines changed

src/Libraries/Microsoft.Extensions.AI.Abstractions/Contents/DataContent.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#if NET
66
using System.Buffers;
77
using System.Buffers.Text;
8+
using System.ComponentModel;
89
#endif
910
using System.Diagnostics;
1011
using System.Diagnostics.CodeAnalysis;
@@ -142,6 +143,9 @@ public DataContent(ReadOnlyMemory<byte> data, string mediaType)
142143
/// or from a <see cref="System.Uri"/>.
143144
/// </remarks>
144145
[StringSyntax(StringSyntaxAttribute.Uri)]
146+
#if NET
147+
[Description("A data URI representing the content.")]
148+
#endif
145149
public string Uri
146150
{
147151
get

0 commit comments

Comments
 (0)