通过


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ResponsesAzureFunctionDefinitionFunction Class

Definition

The ResponsesAzureFunctionDefinitionFunction.

public class ResponsesAzureFunctionDefinitionFunction : System.ClientModel.Primitives.IJsonModel<Azure.AI.Extensions.OpenAI.ResponsesAzureFunctionDefinitionFunction>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Extensions.OpenAI.ResponsesAzureFunctionDefinitionFunction>
type ResponsesAzureFunctionDefinitionFunction = class
    interface IJsonModel<ResponsesAzureFunctionDefinitionFunction>
    interface IPersistableModel<ResponsesAzureFunctionDefinitionFunction>
Public Class ResponsesAzureFunctionDefinitionFunction
Implements IJsonModel(Of ResponsesAzureFunctionDefinitionFunction), IPersistableModel(Of ResponsesAzureFunctionDefinitionFunction)
Inheritance
ResponsesAzureFunctionDefinitionFunction
Implements

Constructors

Name Description
ResponsesAzureFunctionDefinitionFunction(String, IDictionary<String,BinaryData>)

Initializes a new instance of ResponsesAzureFunctionDefinitionFunction.

Properties

Name Description
Description

A description of what the function does, used by the model to choose when and how to call the function.

Name

The name of the function to be called.

Parameters

The parameters the functions accepts, described as a JSON Schema object.

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:

  • BinaryData.FromObjectAsJson("foo"). : Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""). : Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }). : Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"). : Creates a payload of { "key": "value" }.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<ResponsesAzureFunctionDefinitionFunction>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<ResponsesAzureFunctionDefinitionFunction>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<ResponsesAzureFunctionDefinitionFunction>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<ResponsesAzureFunctionDefinitionFunction>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<ResponsesAzureFunctionDefinitionFunction>.Write(ModelReaderWriterOptions)

Applies to