Class ElicitRequestParams.EnumSchema
- Namespace
- ModelContextProtocol.Protocol
- Assembly
- ModelContextProtocol.Core.dll
Represents a schema for an enum type.
public sealed class ElicitRequestParams.EnumSchema : ElicitRequestParams.PrimitiveSchemaDefinition
- Inheritance
-
ElicitRequestParams.EnumSchema
- Inherited Members
Properties
Description
Gets or sets a description for the enum.
[JsonPropertyName("description")]
public string? Description { get; set; }
Property Value
Enum
Gets or sets the list of allowed string values for the enum.
[JsonPropertyName("enum")]
public IList<string> Enum { get; set; }
Property Value
EnumNames
Gets or sets optional display names corresponding to the enum values.
[JsonPropertyName("enumNames")]
public IList<string>? EnumNames { get; set; }
Property Value
Title
Gets or sets a title for the enum.
[JsonPropertyName("title")]
public string? Title { get; set; }
Property Value
Type
Gets the type of the schema.
[JsonPropertyName("type")]
public string Type { get; }
Property Value
Remarks
This is always "string".