Skip to content

Commit 599ce74

Browse files
committed
add appropriate attributes to Utf8TextContentBlock
1 parent caca6fb commit 599ce74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ModelContextProtocol.Core/Protocol/ContentBlock.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,14 +479,15 @@ public string Text
479479
public sealed class Utf8TextContentBlock : ContentBlock
480480
{
481481
/// <inheritdoc/>
482+
[JsonPropertyName("type")]
482483
public override string Type => "text";
483484

484485
/// <summary>Gets or sets the UTF-8 encoded text content.</summary>
485486
[JsonIgnore]
486487
public required ReadOnlyMemory<byte> Utf8Text { get; set; }
487488

488489
/// <summary>Gets the UTF-16 string representation of <see cref="Utf8Text"/>.</summary>
489-
[JsonIgnore]
490+
[JsonPropertyName("text")]
490491
public string Text
491492
{
492493
get

0 commit comments

Comments
 (0)