Share via


AzureFunctionDefinition Class

Definition

The definition of Azure function.

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

Constructors

Name Description
AzureFunctionDefinition()

Initializes a new instance of AzureFunctionDefinition for deserialization.

AzureFunctionDefinition(AzureFunctionDefinitionFunction, AzureFunctionBinding, AzureFunctionBinding, IDictionary<String,BinaryData>)

Initializes a new instance of AzureFunctionDefinition.

AzureFunctionDefinition(AzureFunctionDefinitionFunction, AzureFunctionBinding, AzureFunctionBinding)

Initializes a new instance of AzureFunctionDefinition.

Properties

Name Description
Function

The definition of azure function and its parameters.

InputBinding

Input storage queue. The queue storage trigger runs a function as messages are added to it.

OutputBinding

Output storage queue. The function writes output to this queue when the input items are processed.

Methods

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

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

IJsonModel<AzureFunctionDefinition>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AzureFunctionDefinition>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AzureFunctionDefinition>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<AzureFunctionDefinition>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IUtf8JsonSerializable.Write(Utf8JsonWriter)

Applies to