Class ElicitRequestParams.StringSchema
- Namespace
- ModelContextProtocol.Protocol
- Assembly
- ModelContextProtocol.Core.dll
Represents a schema for a string type.
public sealed class ElicitRequestParams.StringSchema : ElicitRequestParams.PrimitiveSchemaDefinition
- Inheritance
-
ElicitRequestParams.StringSchema
- Inherited Members
Properties
Description
Gets or sets a description for the string.
[JsonPropertyName("description")]
public string? Description { get; set; }
Property Value
Format
Gets or sets a specific format for the string ("email", "uri", "date", or "date-time").
[JsonPropertyName("format")]
public string? Format { get; set; }
Property Value
MaxLength
Gets or sets the maximum length for the string.
[JsonPropertyName("maxLength")]
public int? MaxLength { get; set; }
Property Value
- int?
MinLength
Gets or sets the minimum length for the string.
[JsonPropertyName("minLength")]
public int? MinLength { get; set; }
Property Value
- int?
Title
Gets or sets a title for the string.
[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".