Add ModelContextProtocol.Core package (#428)
This commit is contained in:
parent
57458241b9
commit
703b0fe50b
1 changed files with 239 additions and 94 deletions
|
|
@ -0,0 +1,19 @@
|
|||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace ModelContextProtocol.Protocol;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the parameters used with a <see cref="RequestMethods.ResourcesRead"/> request from a client to get a resource provided by a server.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The server will respond with a <see cref="ReadResourceResult"/> containing the resulting resource data.
|
||||
/// See the <see href="https://github.com/modelcontextprotocol/specification/blob/main/schema/">schema</see> for details.
|
||||
/// </remarks>
|
||||
public class ReadResourceRequestParams : RequestParams
|
||||
{
|
||||
/// <summary>
|
||||
/// The URI of the resource to read. The URI can use any protocol; it is up to the server how to interpret it.
|
||||
/// </summary>
|
||||
[JsonPropertyName("uri")]
|
||||
public required string Uri { get; init; }
|
||||
}
|
||||
Loading…
Reference in a new issue