StructuredOutputDefinition Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A structured output that can be produced by the agent.
public class StructuredOutputDefinition : Azure.AI.AgentServer.Contracts.Generated.Common.IUtf8JsonSerializable, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.StructuredOutputDefinition>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.StructuredOutputDefinition>
type StructuredOutputDefinition = class
interface IUtf8JsonSerializable
interface IJsonModel<StructuredOutputDefinition>
interface IPersistableModel<StructuredOutputDefinition>
Public Class StructuredOutputDefinition
Implements IJsonModel(Of StructuredOutputDefinition), IPersistableModel(Of StructuredOutputDefinition), IUtf8JsonSerializable
- Inheritance
-
StructuredOutputDefinition
- Implements
Constructors
| Name | Description |
|---|---|
| StructuredOutputDefinition() |
Initializes a new instance of StructuredOutputDefinition for deserialization. |
| StructuredOutputDefinition(String, String, IDictionary<String,BinaryData>, Nullable<Boolean>, IDictionary<String,BinaryData>) |
Initializes a new instance of StructuredOutputDefinition. |
| StructuredOutputDefinition(String, String, IDictionary<String,BinaryData>, Nullable<Boolean>) |
Initializes a new instance of StructuredOutputDefinition. |
Properties
| Name | Description |
|---|---|
| Description |
A description of the output to emit. Used by the model to determine when to emit the output. |
| Name |
The name of the structured output. |
| Schema |
The JSON schema for the structured output. To assign an object to the value of this property use FromObjectAsJson<T>(T, JsonSerializerOptions). To assign an already formatted json string to this property use FromString(String). Examples:
|
| Strict |
Whether to enforce strict validation. Default |
Methods
| Name | Description |
|---|---|
| DeserializeStructuredOutputDefinition(JsonElement, ModelReaderWriterOptions) | |
| FromResponse(Response) |
Deserializes the model from a raw response. |
| JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) | |
| ToRequestContent() |
Convert into a RequestContent. |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IJsonModel<StructuredOutputDefinition>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
| IJsonModel<StructuredOutputDefinition>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
| IPersistableModel<StructuredOutputDefinition>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
| IPersistableModel<StructuredOutputDefinition>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
| IPersistableModel<StructuredOutputDefinition>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |
| IUtf8JsonSerializable.Write(Utf8JsonWriter) | |