Class StructuredOutputSchema
JSON output schema for structured content repsonses. This schema dictates the format that an AI should use when responding to your instructions.
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "StructuredOutputSchema")]
public class StructuredOutputSchema : IValidatableObject
Constructors
View SourceStructuredOutputSchema(List<StructuredOutputSchema>, object, string, List<string>, object, string, StructuredOutputSchema, long?, long?, long?, long?, string, Dictionary<string, StructuredOutputSchema>, List<string>, List<string>, long?, long?, decimal?, decimal?, bool?, string, TypeEnum?)
Initializes a new instance of the StructuredOutputSchema class.
Declaration
public StructuredOutputSchema(List<StructuredOutputSchema> anyOf = null, object varDefault = null, string description = null, List<string> varEnum = null, object example = null, string format = null, StructuredOutputSchema items = null, long? maxItems = null, long? minItems = null, long? maxLength = null, long? minLength = null, string pattern = null, Dictionary<string, StructuredOutputSchema> properties = null, List<string> propertyOrdering = null, List<string> required = null, long? maxProperties = null, long? minProperties = null, decimal? maximum = null, decimal? minimum = null, bool? nullable = null, string title = null, StructuredOutputSchema.TypeEnum? type = null)
Parameters
Type | Name | Description |
---|---|---|
List<StructuredOutputSchema> | anyOf | anyOf. |
object | varDefault | varDefault. |
string | description | Provide a description of the schema to help the AI understand the schema.. |
List<string> | varEnum | When using type string and format enum pass a collection of enum values here.. |
object | example | example. |
string | format | Format for string types. Can be null, date-time or enum.. |
StructuredOutputSchema | items | items. |
long? | maxItems | maxItems. |
long? | minItems | minItems. |
long? | maxLength | maxLength. |
long? | minLength | minLength. |
string | pattern | pattern. |
Dictionary<string, StructuredOutputSchema> | properties | Properties of an OBJECT schema. These are key value pairs where the key is the property name and the value is the schema for that property.. |
List<string> | propertyOrdering | Pass an array of property names to specify the order of properties in the generated JSON object if required.. |
List<string> | required | required. |
long? | maxProperties | maxProperties. |
long? | minProperties | minProperties. |
decimal? | maximum | maximum. |
decimal? | minimum | minimum. |
bool? | nullable | nullable. |
string | title | title. |
StructuredOutputSchema.TypeEnum? | type | Primitive JSON schema types with a fallback CUSTOM for unknown values.. |
Properties
View SourceAnyOf
Gets or Sets AnyOf
Declaration
[DataMember(Name = "anyOf", EmitDefaultValue = true)]
public List<StructuredOutputSchema> AnyOf { get; set; }
Property Value
Type | Description |
---|---|
List<StructuredOutputSchema> |
Default
Gets or Sets Default
Declaration
[DataMember(Name = "default", EmitDefaultValue = true)]
public object Default { get; set; }
Property Value
Type | Description |
---|---|
object |
Description
Provide a description of the schema to help the AI understand the schema.
Declaration
[DataMember(Name = "description", EmitDefaultValue = true)]
public string Description { get; set; }
Property Value
Type | Description |
---|---|
string | Provide a description of the schema to help the AI understand the schema. |
Enum
When using type string and format enum pass a collection of enum values here.
Declaration
[DataMember(Name = "enum", EmitDefaultValue = true)]
public List<string> Enum { get; set; }
Property Value
Type | Description |
---|---|
List<string> | When using type string and format enum pass a collection of enum values here. |
Example
Gets or Sets Example
Declaration
[DataMember(Name = "example", EmitDefaultValue = true)]
public object Example { get; set; }
Property Value
Type | Description |
---|---|
object |
Format
Format for string types. Can be null, date-time or enum.
Declaration
[DataMember(Name = "format", EmitDefaultValue = true)]
public string Format { get; set; }
Property Value
Type | Description |
---|---|
string | Format for string types. Can be null, date-time or enum. |
Items
Gets or Sets Items
Declaration
[DataMember(Name = "items", EmitDefaultValue = false)]
public StructuredOutputSchema Items { get; set; }
Property Value
Type | Description |
---|---|
StructuredOutputSchema |
MaxItems
Gets or Sets MaxItems
Declaration
[DataMember(Name = "maxItems", EmitDefaultValue = true)]
public long? MaxItems { get; set; }
Property Value
Type | Description |
---|---|
long? |
MaxLength
Gets or Sets MaxLength
Declaration
[DataMember(Name = "maxLength", EmitDefaultValue = true)]
public long? MaxLength { get; set; }
Property Value
Type | Description |
---|---|
long? |
MaxProperties
Gets or Sets MaxProperties
Declaration
[DataMember(Name = "maxProperties", EmitDefaultValue = true)]
public long? MaxProperties { get; set; }
Property Value
Type | Description |
---|---|
long? |
Maximum
Gets or Sets Maximum
Declaration
[DataMember(Name = "maximum", EmitDefaultValue = true)]
public decimal? Maximum { get; set; }
Property Value
Type | Description |
---|---|
decimal? |
MinItems
Gets or Sets MinItems
Declaration
[DataMember(Name = "minItems", EmitDefaultValue = true)]
public long? MinItems { get; set; }
Property Value
Type | Description |
---|---|
long? |
MinLength
Gets or Sets MinLength
Declaration
[DataMember(Name = "minLength", EmitDefaultValue = true)]
public long? MinLength { get; set; }
Property Value
Type | Description |
---|---|
long? |
MinProperties
Gets or Sets MinProperties
Declaration
[DataMember(Name = "minProperties", EmitDefaultValue = true)]
public long? MinProperties { get; set; }
Property Value
Type | Description |
---|---|
long? |
Minimum
Gets or Sets Minimum
Declaration
[DataMember(Name = "minimum", EmitDefaultValue = true)]
public decimal? Minimum { get; set; }
Property Value
Type | Description |
---|---|
decimal? |
Nullable
Gets or Sets Nullable
Declaration
[DataMember(Name = "nullable", EmitDefaultValue = true)]
public bool? Nullable { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Pattern
Gets or Sets Pattern
Declaration
[DataMember(Name = "pattern", EmitDefaultValue = true)]
public string Pattern { get; set; }
Property Value
Type | Description |
---|---|
string |
Properties
Properties of an OBJECT schema. These are key value pairs where the key is the property name and the value is the schema for that property.
Declaration
[DataMember(Name = "properties", EmitDefaultValue = true)]
public Dictionary<string, StructuredOutputSchema> Properties { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, StructuredOutputSchema> | Properties of an OBJECT schema. These are key value pairs where the key is the property name and the value is the schema for that property. |
PropertyOrdering
Pass an array of property names to specify the order of properties in the generated JSON object if required.
Declaration
[DataMember(Name = "propertyOrdering", EmitDefaultValue = true)]
public List<string> PropertyOrdering { get; set; }
Property Value
Type | Description |
---|---|
List<string> | Pass an array of property names to specify the order of properties in the generated JSON object if required. |
Required
Gets or Sets Required
Declaration
[DataMember(Name = "required", EmitDefaultValue = true)]
public List<string> Required { get; set; }
Property Value
Type | Description |
---|---|
List<string> |
Title
Gets or Sets Title
Declaration
[DataMember(Name = "title", EmitDefaultValue = true)]
public string Title { get; set; }
Property Value
Type | Description |
---|---|
string |
Type
Primitive JSON schema types with a fallback CUSTOM for unknown values.
Declaration
[DataMember(Name = "type", EmitDefaultValue = true)]
public StructuredOutputSchema.TypeEnum? Type { get; set; }
Property Value
Type | Description |
---|---|
StructuredOutputSchema.TypeEnum? | Primitive JSON schema types with a fallback CUSTOM for unknown values. |
Methods
View SourceToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
string | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | String presentation of the object |