We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent caca6fb commit 599ce74Copy full SHA for 599ce74
src/ModelContextProtocol.Core/Protocol/ContentBlock.cs
@@ -479,14 +479,15 @@ public string Text
479
public sealed class Utf8TextContentBlock : ContentBlock
480
{
481
/// <inheritdoc/>
482
+ [JsonPropertyName("type")]
483
public override string Type => "text";
484
485
/// <summary>Gets or sets the UTF-8 encoded text content.</summary>
486
[JsonIgnore]
487
public required ReadOnlyMemory<byte> Utf8Text { get; set; }
488
489
/// <summary>Gets the UTF-16 string representation of <see cref="Utf8Text"/>.</summary>
- [JsonIgnore]
490
+ [JsonPropertyName("text")]
491
public string Text
492
493
get
0 commit comments