Runtime class
Class representing a Runtime.
Constructors
Runtime(Qn |
Create a Runtime. |
Methods
Constructor Details
Runtime(QnAMakerRuntimeClientContext)
Create a Runtime.
new Runtime(client: QnAMakerRuntimeClientContext)
Parameters
- client
- QnAMakerRuntimeClientContext
Reference to the service client.
Method Details
generateAnswer(string, QueryDTO, RequestOptionsBase)
function generateAnswer(kbId: string, generateAnswerPayload: QueryDTO, options?: RequestOptionsBase): Promise<RuntimeGenerateAnswerResponse>
Parameters
- kbId
-
string
Knowledgebase id.
- generateAnswerPayload
- QueryDTO
Post body of the request.
- options
- RequestOptionsBase
The optional parameters
Returns
Promise<RuntimeGenerateAnswerResponse>
Promise<Models.RuntimeGenerateAnswerResponse>
generateAnswer(string, QueryDTO, RequestOptionsBase, ServiceCallback<QnASearchResultList>)
function generateAnswer(kbId: string, generateAnswerPayload: QueryDTO, options: RequestOptionsBase, callback: ServiceCallback<QnASearchResultList>)
Parameters
- kbId
-
string
Knowledgebase id.
- generateAnswerPayload
- QueryDTO
Post body of the request.
- options
- RequestOptionsBase
The optional parameters
- callback
The callback
generateAnswer(string, QueryDTO, ServiceCallback<QnASearchResultList>)
function generateAnswer(kbId: string, generateAnswerPayload: QueryDTO, callback: ServiceCallback<QnASearchResultList>)
Parameters
- kbId
-
string
Knowledgebase id.
- generateAnswerPayload
- QueryDTO
Post body of the request.
- callback
The callback
train(string, FeedbackRecordsDTO, RequestOptionsBase)
function train(kbId: string, trainPayload: FeedbackRecordsDTO, options?: RequestOptionsBase): Promise<RestResponse>
Parameters
- kbId
-
string
Knowledgebase id.
- trainPayload
- FeedbackRecordsDTO
Post body of the request.
- options
- RequestOptionsBase
The optional parameters
Returns
Promise<RestResponse>
Promise<msRest.RestResponse>
train(string, FeedbackRecordsDTO, RequestOptionsBase, ServiceCallback<void>)
function train(kbId: string, trainPayload: FeedbackRecordsDTO, options: RequestOptionsBase, callback: ServiceCallback<void>)
Parameters
- kbId
-
string
Knowledgebase id.
- trainPayload
- FeedbackRecordsDTO
Post body of the request.
- options
- RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<void>
The callback
train(string, FeedbackRecordsDTO, ServiceCallback<void>)
function train(kbId: string, trainPayload: FeedbackRecordsDTO, callback: ServiceCallback<void>)
Parameters
- kbId
-
string
Knowledgebase id.
- trainPayload
- FeedbackRecordsDTO
Post body of the request.
- callback
-
ServiceCallback<void>
The callback