Skip to content

Commit 40a85d1

Browse files
authoredMar 7, 2025
.Net: Remove EditorBrowsable(EditorBrowsableState.Never) from ChatMessageContent.Content property (microsoft#10847)
### Motivation, Context and Description This PR removes the `EditorBrowsable(EditorBrowsableState.Never)` attribute from the `ChatMessageContent.Content` property because it is confusing and can be handy to set text content with a one-liner: `cmc.Content = "some content"`.
1 parent d4363af commit 40a85d1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed
 

‎dotnet/src/SemanticKernel.Abstractions/Contents/ChatMessageContent.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft. All rights reserved.
22

33
using System.Collections.Generic;
4-
using System.ComponentModel;
54
using System.Diagnostics.CodeAnalysis;
65
using System.Linq;
76
using System.Text;
@@ -34,7 +33,6 @@ public string? AuthorName
3433
/// <summary>
3534
/// A convenience property to get or set the text of the first item in the <see cref="Items" /> collection of <see cref="TextContent"/> type.
3635
/// </summary>
37-
[EditorBrowsable(EditorBrowsableState.Never)]
3836
[JsonIgnore]
3937
public string? Content
4038
{

0 commit comments

Comments
 (0)
Please sign in to comment.