forked from modelcontextprotocol/csharp-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReadResourceResult.cs
More file actions
23 lines (21 loc) · 954 Bytes
/
ReadResourceResult.cs
File metadata and controls
23 lines (21 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System.Text.Json.Serialization;
namespace ModelContextProtocol.Protocol;
/// <summary>
/// Represents a server's response to a <see cref="RequestMethods.ResourcesRead"/> request from the client.
/// </summary>
/// <remarks>
/// See the <see href="https://github.com/modelcontextprotocol/specification/blob/main/schema/">schema</see> for details.
/// </remarks>
public class ReadResourceResult
{
/// <summary>
/// Gets or sets a list of <see cref="ResourceContents"/> objects that this resource contains.
/// </summary>
/// <remarks>
/// This property contains the actual content of the requested resource, which can be
/// either text-based (<see cref="TextResourceContents"/>) or binary (<see cref="BlobResourceContents"/>).
/// The type of content included depends on the resource being accessed.
/// </remarks>
[JsonPropertyName("contents")]
public List<ResourceContents> Contents { get; set; } = [];
}