Share via


ItemContentRefusal Class

Definition

A refusal from the model.

public class ItemContentRefusal : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemContent, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemContentRefusal>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemContentRefusal>
type ItemContentRefusal = class
    inherit ItemContent
    interface IUtf8JsonSerializable
    interface IJsonModel<ItemContentRefusal>
    interface IPersistableModel<ItemContentRefusal>
Public Class ItemContentRefusal
Inherits ItemContent
Implements IJsonModel(Of ItemContentRefusal), IPersistableModel(Of ItemContentRefusal)
Inheritance
ItemContentRefusal
Implements

Constructors

Name Description
ItemContentRefusal()

Initializes a new instance of ItemContentRefusal for deserialization.

ItemContentRefusal(ItemContentType, IDictionary<String,BinaryData>, String)

Initializes a new instance of ItemContentRefusal.

ItemContentRefusal(String)

Initializes a new instance of ItemContentRefusal.

Properties

Name Description
Refusal

The refusal explanationfrom the model.

Type

Gets or sets the type.

(Inherited from ItemContent)

Methods

Name Description
DeserializeItemContentRefusal(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<ItemContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from ItemContent)
IJsonModel<ItemContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from ItemContent)
IJsonModel<ItemContentRefusal>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ItemContentRefusal>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ItemContent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from ItemContent)
IPersistableModel<ItemContent>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from ItemContent)
IPersistableModel<ItemContent>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from ItemContent)
IPersistableModel<ItemContentRefusal>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ItemContentRefusal>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ItemContentRefusal>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IUtf8JsonSerializable.Write(Utf8JsonWriter)

Applies to