Skip to content

Commit 05e906c

Browse files
committed
Fix up doc comments
1 parent 5860b78 commit 05e906c

3 files changed

Lines changed: 4 additions & 17 deletions

File tree

src/ModelContextProtocol.Core/Protocol/BlobResourceContents.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public sealed class BlobResourceContents : ResourceContents
3434
/// Creates an <see cref="BlobResourceContents"/> from raw data.
3535
/// </summary>
3636
/// <param name="bytes">The raw unencoded data.</param>
37-
/// <param name="uri">The URI of the data.</param>
37+
/// <param name="uri">The URI of the blob resource.</param>
3838
/// <param name="mimeType">The optional MIME type of the data.</param>
3939
/// <returns>A new <see cref="BlobResourceContents"/> instance.</returns>
4040
/// <exception cref="InvalidOperationException"></exception>
@@ -69,17 +69,13 @@ public required ReadOnlyMemory<byte> Blob
6969
}
7070

7171
/// <summary>
72-
/// Gets or sets the decoded data represented by <see cref="Blob"/>.
72+
/// Gets the decoded data represented by <see cref="Blob"/>.
7373
/// </summary>
7474
/// <remarks>
7575
/// <para>
7676
/// When getting, this member will decode the value in <see cref="Blob"/> and cache the result.
7777
/// Subsequent accesses return the cached value unless <see cref="Blob"/> is modified.
7878
/// </para>
79-
/// <para>
80-
/// When setting, the binary data is stored and <see cref="Blob"/> is updated
81-
/// with the base64-encoded UTF-8 representation.
82-
/// </para>
8379
/// </remarks>
8480
[JsonIgnore]
8581
public ReadOnlyMemory<byte> DecodedData

src/ModelContextProtocol.Core/Protocol/ContentBlock.cs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -425,17 +425,13 @@ public required ReadOnlyMemory<byte> Data
425425
}
426426

427427
/// <summary>
428-
/// Gets or sets the decoded image data represented by <see cref="Data"/>.
428+
/// Gets the decoded image data represented by <see cref="Data"/>.
429429
/// </summary>
430430
/// <remarks>
431431
/// <para>
432432
/// When getting, this member will decode the value in <see cref="Data"/> and cache the result.
433433
/// Subsequent accesses return the cached value unless <see cref="Data"/> is modified.
434434
/// </para>
435-
/// <para>
436-
/// When setting, the binary data is stored and <see cref="Data"/> is updated
437-
/// with the base64-encoded UTF-8 representation.
438-
/// </para>
439435
/// </remarks>
440436
[JsonIgnore]
441437
public ReadOnlyMemory<byte> DecodedData
@@ -514,17 +510,13 @@ public required ReadOnlyMemory<byte> Data
514510
}
515511

516512
/// <summary>
517-
/// Gets or sets the decoded audio data represented by <see cref="Data"/>.
513+
/// Gets the decoded audio data represented by <see cref="Data"/>.
518514
/// </summary>
519515
/// <remarks>
520516
/// <para>
521517
/// When getting, this member will decode the value in <see cref="Data"/> and cache the result.
522518
/// Subsequent accesses return the cached value unless <see cref="Data"/> is modified.
523519
/// </para>
524-
/// <para>
525-
/// When setting, the binary data is stored and <see cref="Data"/> is updated
526-
/// with the base64-encoded UTF-8 representation.
527-
/// </para>
528520
/// </remarks>
529521
[JsonIgnore]
530522
public ReadOnlyMemory<byte> DecodedData

src/ModelContextProtocol.Core/Protocol/ResourceContents.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ public override void Write(Utf8JsonWriter writer, ResourceContents value, JsonSe
163163
Debug.Assert(value is BlobResourceContents or TextResourceContents);
164164
if (value is BlobResourceContents blobResource)
165165
{
166-
// Write the UTF-8 bytes directly as a string value
167166
writer.WriteString("blob", blobResource.Blob.Span);
168167
}
169168
else if (value is TextResourceContents textResource)

0 commit comments

Comments
 (0)