Share via


AgentReference Class

Definition

The AgentReference.

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

Constructors

Name Description
AgentReference()

Initializes a new instance of AgentReference for deserialization.

AgentReference(AgentReferenceType, String, String, IDictionary<String,BinaryData>)

Initializes a new instance of AgentReference.

AgentReference(String)

Initializes a new instance of AgentReference.

Properties

Name Description
Name

The name of the agent.

Type

Gets the type.

Version

The version identifier of the agent.

Methods

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

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

IJsonModel<AgentReference>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AgentReference>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AgentReference>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<AgentReference>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IUtf8JsonSerializable.Write(Utf8JsonWriter)

Extension Methods

Name Description
ToAgentId(AgentReference)

Converts an agent reference to an agent ID.

Applies to