Dela via


QnAMakerClient class

Extends

Konstruktorer

QnAMakerClient(ServiceClientCredentials, string, ServiceClientOptions)

Initierar en ny instans av klassen QnAMakerClient.

Egenskaper

alterations
endpointKeys
endpointSettings
knowledgebase
operations

Ärvda egenskaper

credentials
endpoint

Ärvda metoder

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

Skicka en HTTP-begäran som fylls i med hjälp av angiven OperationSpec.

sendRequest(RequestPrepareOptions | WebResourceLike)

Skicka angivet httpRequest.

Konstruktorinformation

QnAMakerClient(ServiceClientCredentials, string, ServiceClientOptions)

Initierar en ny instans av klassen QnAMakerClient.

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

Parametrar

credentials
ServiceClientCredentials

Autentiseringsuppgifter för prenumeration som unikt identifierar klientprenumeration.

endpoint

string

Cognitive Services-slutpunkt som stöds (t.ex. https://< qnamaker-resource-name

.api.cognitiveservices.azure.com).

options
ServiceClientOptions

Parameteralternativen

Egenskapsinformation

alterations

alterations: Alterations

Egenskapsvärde

endpointKeys

endpointKeys: EndpointKeys

Egenskapsvärde

endpointSettings

endpointSettings: EndpointSettings

Egenskapsvärde

knowledgebase

knowledgebase: Knowledgebase

Egenskapsvärde

operations

operations: Operations

Egenskapsvärde

Information om ärvda egenskaper

credentials

credentials: ServiceClientCredentials

Egenskapsvärde

Ärvd frånQnAMakerClientContext.credentials

endpoint

endpoint: string

Egenskapsvärde

string

Ärvd frånQnAMakerClientContext.endpoint

Ärvd metodinformation

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

Skicka en HTTP-begäran som fylls i med hjälp av angiven OperationSpec.

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

Parametrar

operationArguments
OperationArguments

Argumenten som HTTP-begärans mallade värden fylls i från.

operationSpec
OperationSpec

Den OperationSpec som ska användas för att fylla i httpRequest.

callback

ServiceCallback<any>

Återanropet att anropa när svaret tas emot.

Returer

Promise<RestResponse>

Ärvd frånQnAMakerClientContext.sendOperationRequest

sendRequest(RequestPrepareOptions | WebResourceLike)

Skicka angivet httpRequest.

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

Parametrar

Returer

Ärvd frånQnAMakerClientContext.sendRequest