Share via


CreatedBy Class

Definition

The CreatedBy.

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

Constructors

Name Description
CreatedBy()

Initializes a new instance of CreatedBy.

CreatedBy(AgentId, String, IDictionary<String,BinaryData>)

Initializes a new instance of CreatedBy.

Properties

Name Description
Agent

The agent that created the item.

ResponseId

The response on which the item is created.

Methods

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

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

IJsonModel<CreatedBy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CreatedBy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CreatedBy>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<CreatedBy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IUtf8JsonSerializable.Write(Utf8JsonWriter)

Applies to