Share via


StructuredOutputDefinition Constructor

Definition

Initializes a new instance of StructuredOutputDefinition.

public StructuredOutputDefinition(string name, string description, BinaryData schema, bool? strict);
new Azure.AI.Projects.OpenAI.StructuredOutputDefinition : string * string * BinaryData * Nullable<bool> -> Azure.AI.Projects.OpenAI.StructuredOutputDefinition
Public Sub New (name As String, description As String, schema As BinaryData, strict As Nullable(Of Boolean))

Parameters

name
String

The name of the structured output.

description
String

A description of the output to emit. Used by the model to determine when to emit the output.

schema
BinaryData

The JSON schema for the structured output.

strict
Nullable<Boolean>

Whether to enforce strict validation. Default true.

Exceptions

name, description or schema is null.

Applies to