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

Description

Gets or sets a description for the enum.

[JsonPropertyName("description")]
public string? Description { get; set; }

Property Value

string

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>

Title

Gets or sets a title for the enum.

[JsonPropertyName("title")]
public string? Title { get; set; }

Property Value

string

Type

Gets the type of the schema.

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

Property Value

string

Remarks

This is always "string".