次の方法で共有


Knowledgebase class

ナレッジ ベースを表すクラス。

コンストラクター

Knowledgebase(QnAMakerClientContext)

ナレッジ ベースを作成します。

メソッド

create(CreateKbDTO, RequestOptionsBase)
create(CreateKbDTO, RequestOptionsBase, ServiceCallback<Operation>)
create(CreateKbDTO, ServiceCallback<Operation>)
deleteMethod(string, RequestOptionsBase)
deleteMethod(string, RequestOptionsBase, ServiceCallback<void>)
deleteMethod(string, ServiceCallback<void>)
download(string, EnvironmentType, KnowledgebaseDownloadOptionalParams)
download(string, EnvironmentType, KnowledgebaseDownloadOptionalParams, ServiceCallback<QnADocumentsDTO>)
download(string, EnvironmentType, ServiceCallback<QnADocumentsDTO>)
generateAnswer(string, QueryDTO, RequestOptionsBase)
generateAnswer(string, QueryDTO, RequestOptionsBase, ServiceCallback<QnASearchResultList>)
generateAnswer(string, QueryDTO, ServiceCallback<QnASearchResultList>)
getDetails(string, RequestOptionsBase)
getDetails(string, RequestOptionsBase, ServiceCallback<KnowledgebaseDTO>)
getDetails(string, ServiceCallback<KnowledgebaseDTO>)
listAll(RequestOptionsBase)
listAll(RequestOptionsBase, ServiceCallback<KnowledgebasesDTO>)
listAll(ServiceCallback<KnowledgebasesDTO>)
publish(string, RequestOptionsBase)
publish(string, RequestOptionsBase, ServiceCallback<void>)
publish(string, ServiceCallback<void>)
replace(string, ReplaceKbDTO, RequestOptionsBase)
replace(string, ReplaceKbDTO, RequestOptionsBase, ServiceCallback<void>)
replace(string, ReplaceKbDTO, ServiceCallback<void>)
train(string, FeedbackRecordsDTO, RequestOptionsBase)
train(string, FeedbackRecordsDTO, RequestOptionsBase, ServiceCallback<void>)
train(string, FeedbackRecordsDTO, ServiceCallback<void>)
update(string, UpdateKbOperationDTO, RequestOptionsBase)
update(string, UpdateKbOperationDTO, RequestOptionsBase, ServiceCallback<Operation>)
update(string, UpdateKbOperationDTO, ServiceCallback<Operation>)

コンストラクターの詳細

Knowledgebase(QnAMakerClientContext)

ナレッジ ベースを作成します。

new Knowledgebase(client: QnAMakerClientContext)

パラメーター

client
QnAMakerClientContext

サービス クライアントへの参照。

メソッドの詳細

create(CreateKbDTO, RequestOptionsBase)

function create(createKbPayload: CreateKbDTO, options?: RequestOptionsBase): Promise<KnowledgebaseCreateResponse>

パラメーター

createKbPayload
CreateKbDTO

要求の本文を投稿します。

options
RequestOptionsBase

省略可能なパラメーター

戻り値

Promise<Models.KnowledgebaseCreateResponse>

create(CreateKbDTO, RequestOptionsBase, ServiceCallback<Operation>)

function create(createKbPayload: CreateKbDTO, options: RequestOptionsBase, callback: ServiceCallback<Operation>)

パラメーター

createKbPayload
CreateKbDTO

要求の本文を投稿します。

options
RequestOptionsBase

省略可能なパラメーター

callback

ServiceCallback<Operation>

コールバック。

create(CreateKbDTO, ServiceCallback<Operation>)

function create(createKbPayload: CreateKbDTO, callback: ServiceCallback<Operation>)

パラメーター

createKbPayload
CreateKbDTO

要求の本文を投稿します。

callback

ServiceCallback<Operation>

コールバック。

deleteMethod(string, RequestOptionsBase)

function deleteMethod(kbId: string, options?: RequestOptionsBase): Promise<RestResponse>

パラメーター

kbId

string

ナレッジ ベース ID。

options
RequestOptionsBase

省略可能なパラメーター

戻り値

Promise<RestResponse>

Promise<msRest.RestResponse>

deleteMethod(string, RequestOptionsBase, ServiceCallback<void>)

function deleteMethod(kbId: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

パラメーター

kbId

string

ナレッジ ベース ID。

options
RequestOptionsBase

省略可能なパラメーター

callback

ServiceCallback<void>

コールバック。

deleteMethod(string, ServiceCallback<void>)

function deleteMethod(kbId: string, callback: ServiceCallback<void>)

パラメーター

kbId

string

ナレッジ ベース ID。

callback

ServiceCallback<void>

コールバック。

download(string, EnvironmentType, KnowledgebaseDownloadOptionalParams)

function download(kbId: string, environment: EnvironmentType, options?: KnowledgebaseDownloadOptionalParams): Promise<KnowledgebaseDownloadResponse>

パラメーター

kbId

string

ナレッジ ベース ID。

environment
EnvironmentType

環境が Test か Prod かを指定します。使用可能な値には、'Prod'、'Test' が含まれます。

options
KnowledgebaseDownloadOptionalParams

省略可能なパラメーター

戻り値

Promise<Models.KnowledgebaseDownloadResponse>

download(string, EnvironmentType, KnowledgebaseDownloadOptionalParams, ServiceCallback<QnADocumentsDTO>)

function download(kbId: string, environment: EnvironmentType, options: KnowledgebaseDownloadOptionalParams, callback: ServiceCallback<QnADocumentsDTO>)

パラメーター

kbId

string

ナレッジ ベース ID。

environment
EnvironmentType

環境が Test か Prod かを指定します。使用可能な値には、'Prod'、'Test' が含まれます。

options
KnowledgebaseDownloadOptionalParams

省略可能なパラメーター

callback

ServiceCallback<QnADocumentsDTO>

コールバック。

download(string, EnvironmentType, ServiceCallback<QnADocumentsDTO>)

function download(kbId: string, environment: EnvironmentType, callback: ServiceCallback<QnADocumentsDTO>)

パラメーター

kbId

string

ナレッジ ベース ID。

environment
EnvironmentType

環境が Test か Prod かを指定します。使用可能な値には、'Prod'、'Test' が含まれます。

callback

ServiceCallback<QnADocumentsDTO>

コールバック。

generateAnswer(string, QueryDTO, RequestOptionsBase)

function generateAnswer(kbId: string, generateAnswerPayload: QueryDTO, options?: RequestOptionsBase): Promise<KnowledgebaseGenerateAnswerResponse>

パラメーター

kbId

string

ナレッジ ベース ID。

generateAnswerPayload
QueryDTO

要求の本文を投稿します。

options
RequestOptionsBase

省略可能なパラメーター

戻り値

Promise<Models.KnowledgebaseGenerateAnswerResponse>

generateAnswer(string, QueryDTO, RequestOptionsBase, ServiceCallback<QnASearchResultList>)

function generateAnswer(kbId: string, generateAnswerPayload: QueryDTO, options: RequestOptionsBase, callback: ServiceCallback<QnASearchResultList>)

パラメーター

kbId

string

ナレッジ ベース ID。

generateAnswerPayload
QueryDTO

要求の本文を投稿します。

options
RequestOptionsBase

省略可能なパラメーター

callback

ServiceCallback<QnASearchResultList>

コールバック。

generateAnswer(string, QueryDTO, ServiceCallback<QnASearchResultList>)

function generateAnswer(kbId: string, generateAnswerPayload: QueryDTO, callback: ServiceCallback<QnASearchResultList>)

パラメーター

kbId

string

ナレッジ ベース ID。

generateAnswerPayload
QueryDTO

要求の本文を投稿します。

callback

ServiceCallback<QnASearchResultList>

コールバック。

getDetails(string, RequestOptionsBase)

function getDetails(kbId: string, options?: RequestOptionsBase): Promise<KnowledgebaseGetDetailsResponse>

パラメーター

kbId

string

ナレッジ ベース ID。

options
RequestOptionsBase

省略可能なパラメーター

戻り値

Promise<Models.KnowledgebaseGetDetailsResponse>

getDetails(string, RequestOptionsBase, ServiceCallback<KnowledgebaseDTO>)

function getDetails(kbId: string, options: RequestOptionsBase, callback: ServiceCallback<KnowledgebaseDTO>)

パラメーター

kbId

string

ナレッジ ベース ID。

options
RequestOptionsBase

省略可能なパラメーター

callback

ServiceCallback<KnowledgebaseDTO>

コールバック。

getDetails(string, ServiceCallback<KnowledgebaseDTO>)

function getDetails(kbId: string, callback: ServiceCallback<KnowledgebaseDTO>)

パラメーター

kbId

string

ナレッジ ベース ID。

callback

ServiceCallback<KnowledgebaseDTO>

コールバック。

listAll(RequestOptionsBase)

function listAll(options?: RequestOptionsBase): Promise<KnowledgebaseListAllResponse>

パラメーター

options
RequestOptionsBase

省略可能なパラメーター

戻り値

Promise<Models.KnowledgebaseListAllResponse>

listAll(RequestOptionsBase, ServiceCallback<KnowledgebasesDTO>)

function listAll(options: RequestOptionsBase, callback: ServiceCallback<KnowledgebasesDTO>)

パラメーター

options
RequestOptionsBase

省略可能なパラメーター

callback

ServiceCallback<KnowledgebasesDTO>

コールバック。

listAll(ServiceCallback<KnowledgebasesDTO>)

function listAll(callback: ServiceCallback<KnowledgebasesDTO>)

パラメーター

callback

ServiceCallback<KnowledgebasesDTO>

コールバック。

publish(string, RequestOptionsBase)

function publish(kbId: string, options?: RequestOptionsBase): Promise<RestResponse>

パラメーター

kbId

string

ナレッジ ベース ID。

options
RequestOptionsBase

省略可能なパラメーター

戻り値

Promise<RestResponse>

Promise<msRest.RestResponse>

publish(string, RequestOptionsBase, ServiceCallback<void>)

function publish(kbId: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

パラメーター

kbId

string

ナレッジ ベース ID。

options
RequestOptionsBase

省略可能なパラメーター

callback

ServiceCallback<void>

コールバック。

publish(string, ServiceCallback<void>)

function publish(kbId: string, callback: ServiceCallback<void>)

パラメーター

kbId

string

ナレッジ ベース ID。

callback

ServiceCallback<void>

コールバック。

replace(string, ReplaceKbDTO, RequestOptionsBase)

function replace(kbId: string, replaceKb: ReplaceKbDTO, options?: RequestOptionsBase): Promise<RestResponse>

パラメーター

kbId

string

ナレッジ ベース ID。

replaceKb
ReplaceKbDTO

アップロードする qnas の一覧を含む ReplaceKbDTO のインスタンス

options
RequestOptionsBase

省略可能なパラメーター

戻り値

Promise<RestResponse>

Promise<msRest.RestResponse>

replace(string, ReplaceKbDTO, RequestOptionsBase, ServiceCallback<void>)

function replace(kbId: string, replaceKb: ReplaceKbDTO, options: RequestOptionsBase, callback: ServiceCallback<void>)

パラメーター

kbId

string

ナレッジ ベース ID。

replaceKb
ReplaceKbDTO

アップロードする qnas の一覧を含む ReplaceKbDTO のインスタンス

options
RequestOptionsBase

省略可能なパラメーター

callback

ServiceCallback<void>

コールバック。

replace(string, ReplaceKbDTO, ServiceCallback<void>)

function replace(kbId: string, replaceKb: ReplaceKbDTO, callback: ServiceCallback<void>)

パラメーター

kbId

string

ナレッジ ベース ID。

replaceKb
ReplaceKbDTO

アップロードする qnas の一覧を含む ReplaceKbDTO のインスタンス

callback

ServiceCallback<void>

コールバック。

train(string, FeedbackRecordsDTO, RequestOptionsBase)

function train(kbId: string, trainPayload: FeedbackRecordsDTO, options?: RequestOptionsBase): Promise<RestResponse>

パラメーター

kbId

string

ナレッジ ベース ID。

trainPayload
FeedbackRecordsDTO

要求の本文を投稿します。

options
RequestOptionsBase

省略可能なパラメーター

戻り値

Promise<RestResponse>

Promise<msRest.RestResponse>

train(string, FeedbackRecordsDTO, RequestOptionsBase, ServiceCallback<void>)

function train(kbId: string, trainPayload: FeedbackRecordsDTO, options: RequestOptionsBase, callback: ServiceCallback<void>)

パラメーター

kbId

string

ナレッジ ベース ID。

trainPayload
FeedbackRecordsDTO

要求の本文を投稿します。

options
RequestOptionsBase

省略可能なパラメーター

callback

ServiceCallback<void>

コールバック。

train(string, FeedbackRecordsDTO, ServiceCallback<void>)

function train(kbId: string, trainPayload: FeedbackRecordsDTO, callback: ServiceCallback<void>)

パラメーター

kbId

string

ナレッジ ベース ID。

trainPayload
FeedbackRecordsDTO

要求の本文を投稿します。

callback

ServiceCallback<void>

コールバック。

update(string, UpdateKbOperationDTO, RequestOptionsBase)

function update(kbId: string, updateKb: UpdateKbOperationDTO, options?: RequestOptionsBase): Promise<KnowledgebaseUpdateResponse>

パラメーター

kbId

string

ナレッジ ベース ID。

updateKb
UpdateKbOperationDTO

要求の本文を投稿します。

options
RequestOptionsBase

省略可能なパラメーター

戻り値

Promise<Models.KnowledgebaseUpdateResponse>

update(string, UpdateKbOperationDTO, RequestOptionsBase, ServiceCallback<Operation>)

function update(kbId: string, updateKb: UpdateKbOperationDTO, options: RequestOptionsBase, callback: ServiceCallback<Operation>)

パラメーター

kbId

string

ナレッジ ベース ID。

updateKb
UpdateKbOperationDTO

要求の本文を投稿します。

options
RequestOptionsBase

省略可能なパラメーター

callback

ServiceCallback<Operation>

コールバック。

update(string, UpdateKbOperationDTO, ServiceCallback<Operation>)

function update(kbId: string, updateKb: UpdateKbOperationDTO, callback: ServiceCallback<Operation>)

パラメーター

kbId

string

ナレッジ ベース ID。

updateKb
UpdateKbOperationDTO

要求の本文を投稿します。

callback

ServiceCallback<Operation>

コールバック。