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

QnAMakerClient class

Extends

构造函数

QnAMakerClient(ServiceClientCredentials, string, ServiceClientOptions)

初始化 QnAMakerClient 类的新实例。

属性

alterations
endpointKeys
endpointSettings
knowledgebase
operations

继承属性

credentials
endpoint

继承的方法

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

发送使用提供的 OperationSpec 填充的 HTTP 请求。

sendRequest(RequestPrepareOptions | WebResourceLike)

发送提供的 httpRequest。

构造函数详细信息

QnAMakerClient(ServiceClientCredentials, string, ServiceClientOptions)

初始化 QnAMakerClient 类的新实例。

new QnAMakerClient(credentials: ServiceClientCredentials, endpoint: string, options?: ServiceClientOptions)

参数

credentials
ServiceClientCredentials

唯一标识客户端订阅的订阅凭据。

endpoint

string

支持的认知服务终结点 (例如,https://< qnamaker-resource-name

.api.cognitiveservices.azure.com) 。

options
ServiceClientOptions

参数选项

属性详细信息

alterations

alterations: Alterations

属性值

endpointKeys

endpointKeys: EndpointKeys

属性值

endpointSettings

endpointSettings: EndpointSettings

属性值

knowledgebase

knowledgebase: Knowledgebase

属性值

operations

operations: Operations

属性值

继承属性详细信息

credentials

credentials: ServiceClientCredentials

属性值

继承自QnAMakerClientContext.credentials

endpoint

endpoint: string

属性值

string

继承自QnAMakerClientContext.endpoint

继承的方法详细信息

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

发送使用提供的 OperationSpec 填充的 HTTP 请求。

function sendOperationRequest(operationArguments: OperationArguments, operationSpec: OperationSpec, callback?: ServiceCallback<any>): Promise<RestResponse>

参数

operationArguments
OperationArguments

将从中填充 HTTP 请求的模板化值的参数。

operationSpec
OperationSpec

用于填充 httpRequest 的 OperationSpec。

callback

ServiceCallback<any>

收到响应时要调用的回调。

返回

Promise<RestResponse>

继承自QnAMakerClientContext.sendOperationRequest

sendRequest(RequestPrepareOptions | WebResourceLike)

发送提供的 httpRequest。

function sendRequest(options: RequestPrepareOptions | WebResourceLike): Promise<HttpOperationResponse>

参数

返回

继承自QnAMakerClientContext.sendRequest