forked from modelcontextprotocol/csharp-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContextInclusion.cs
More file actions
31 lines (27 loc) · 997 Bytes
/
ContextInclusion.cs
File metadata and controls
31 lines (27 loc) · 997 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System.Text.Json.Serialization;
namespace ModelContextProtocol.Protocol;
/// <summary>
/// Specifies the context inclusion options for a request in the Model Context Protocol (MCP).
/// </summary>
/// <remarks>
/// See the <see href="https://github.com/modelcontextprotocol/specification/blob/main/schema/">schema</see> for details.
/// </remarks>
[JsonConverter(typeof(CustomizableJsonStringEnumConverter<ContextInclusion>))]
public enum ContextInclusion
{
/// <summary>
/// Indicates that no context should be included.
/// </summary>
[JsonStringEnumMemberName("none")]
None,
/// <summary>
/// Indicates that context from the server that sent the request should be included.
/// </summary>
[JsonStringEnumMemberName("thisServer")]
ThisServer,
/// <summary>
/// Indicates that context from all servers that the client is connected to should be included.
/// </summary>
[JsonStringEnumMemberName("allServers")]
AllServers
}