13 public Dictionary<string, object>?
Experimental {
get;
internal set; }
41 public static bool TryParse(Dictionary<string, object> Generic,
46 if (Generic.TryGetValue(
"experimental", out
object? Obj) &&
52 if (Generic.TryGetValue(
"roots", out Obj) &&
53 Obj is Dictionary<string, object>
Roots &&
56 Result.Roots = RootsParsed;
59 if (Generic.TryGetValue(
"sampling", out Obj) &&
60 Obj is Dictionary<string, object>
Sampling &&
63 Result.Sampling = SamplingParsed;
66 if (Generic.TryGetValue(
"elicitation", out Obj) &&
70 Result.Elicitation = ElicitationParsed;
73 if (Generic.TryGetValue(
"tasks", out Obj) &&
74 Obj is Dictionary<string, object>
Tasks &&
77 Result.Tasks = TasksParsed;
Capabilities of the client.
SamplingCapabilities? Sampling
Present if the client supports sampling from an LLM.
static bool TryParse(Dictionary< string, object > Generic, out ClientCapabilities Typed)
Tries to parse a generic structure into a typed structure.
ElicitationCapabilities? Elicitation
Present if the client supports elicitation from the server.
Dictionary< string, object >? Experimental
Experimental, non-standard capabilities that the client supports.
RootsCapabilities? Roots
Present if the client supports listing roots.
TasksCapabilities? Tasks
Present if the client supports task-augmented requests.
Elicitation capabilities structure
static bool TryParse(Dictionary< string, object > Generic, out ElicitationCapabilities Typed)
Tries to parse a generic structure into a typed structure.
Root capabilities structure
static bool TryParse(Dictionary< string, object > Generic, out RootsCapabilities Typed)
Tries to parse a generic structure into a typed structure.
Sampling capabilities structure
static bool TryParse(Dictionary< string, object > Generic, out SamplingCapabilities Typed)
Tries to parse a generic structure into a typed structure.
Tasks capabilities structure
static bool TryParse(Dictionary< string, object > Generic, out TasksCapabilities Typed)
Tries to parse a generic structure into a typed structure.