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