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

OpenApiFunctionDefinition(String, BinaryData, OpenApiAuthDetails) Constructor

Definition

Initializes a new instance of OpenApiFunctionDefinition.

public OpenApiFunctionDefinition(string name, BinaryData spec, Azure.AI.Agents.Persistent.OpenApiAuthDetails openApiAuthentication);
new Azure.AI.Agents.Persistent.OpenApiFunctionDefinition : string * BinaryData * Azure.AI.Agents.Persistent.OpenApiAuthDetails -> Azure.AI.Agents.Persistent.OpenApiFunctionDefinition
Public Sub New (name As String, spec As BinaryData, openApiAuthentication As OpenApiAuthDetails)

Parameters

name
String

The name of the function to be called.

spec
BinaryData

The openapi function shape, described as a JSON Schema object.

openApiAuthentication
OpenApiAuthDetails

Open API authentication details Please note OpenApiAuthDetails is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include OpenApiAnonymousAuthDetails, OpenApiConnectionAuthDetails and OpenApiManagedAuthDetails.

Exceptions

name, spec or openApiAuthentication is null.

Applies to