Table of Contents

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

Enum

Gets or sets the list of allowed string values for the enum.

[JsonPropertyName("enum")]
public IList<string> Enum { get; set; }

Property Value

IList<string>

EnumNames

Gets or sets optional display names corresponding to the enum values.

[JsonPropertyName("enumNames")]
public IList<string>? EnumNames { get; set; }

Property Value

IList<string>

Type

Gets the type of the schema.

[JsonPropertyName("type")]
public override string Type { get; set; }

Property Value

string